Skip to content

Commit

Permalink
Typecheck on build
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Oct 30, 2024
1 parent 6cdb7ba commit 4e2462a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions move-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@ const replaceInFileSync = (file,from,to) => {
fs.writeFileSync(file, newData, {encoding:"utf8"})
}


fs.rmSync(path.join(__dirname,"lib/flagsmith/index-es.d.ts"))
fs.rmSync(path.join(__dirname,"lib/flagsmith-es/index-es.d.ts"))

fs.rmSync(path.join(__dirname,"lib/flagsmith/isomorphic-es.d.ts"))
fs.rmSync(path.join(__dirname,"lib/flagsmith-es/isomorphic-es.d.ts"))

fs.rmSync(path.join(__dirname,"lib/react-native-flagsmith/index-es.d.ts"))
fs.rmSync(path.join(__dirname,"lib/react-native-flagsmith/isomorphic-es.d.ts"))


// Copy source files to lib/flagsmith/src
fs.copyFileSync(path.join(__dirname,"index.ts"),path.join(__dirname,"lib/flagsmith/src/index.ts"))
fs.copyFileSync(path.join(__dirname,"flagsmith-core.ts"),path.join(__dirname,"lib/flagsmith/src/flagsmith-core.ts"))
Expand All @@ -26,10 +15,6 @@ fs.copyFileSync(path.join(__dirname,"isomorphic.ts"),path.join(__dirname,"lib/fl
fs.copyFileSync(path.join(__dirname,"react.tsx"),path.join(__dirname,"lib/flagsmith/src/react.tsx"))
fs.copyFileSync(path.join(__dirname,"react.tsx"),path.join(__dirname,"lib/react-native-flagsmith/src/react.tsx"))
fs.copyFileSync(path.join(__dirname,"react.d.ts"),path.join(__dirname,"lib/react-native-flagsmith/src/react.d.ts"))
//Remove not needed flagsmith-core.d.ts
fs.rmSync(path.join(__dirname,"lib/flagsmith/flagsmith-core.d.ts"))
fs.rmSync(path.join(__dirname,"lib/react-native-flagsmith/flagsmith-core.d.ts"))
fs.rmSync(path.join(__dirname,"lib/flagsmith-es/flagsmith-core.d.ts"))

// Copy source files to lib/react-native-flagsmith/src
fs.copyFileSync(path.join(__dirname,"index.react-native.ts"),path.join(__dirname,"lib/react-native-flagsmith/src/index.react-native.ts"))
Expand Down

0 comments on commit 4e2462a

Please sign in to comment.