Skip to content

Commit

Permalink
Replace ts-node with tsimp
Browse files Browse the repository at this point in the history
Closes #1770
  • Loading branch information
wojtekmaj committed Apr 27, 2024
1 parent 39aaadd commit 01b2b97
Show file tree
Hide file tree
Showing 6 changed files with 187 additions and 289 deletions.
1 change: 1 addition & 0 deletions sample/create-react-app-5/.gitignore
@@ -1,3 +1,4 @@
.tsimp
build
node_modules
public/cmaps
Expand Down
8 changes: 4 additions & 4 deletions sample/create-react-app-5/package.json
Expand Up @@ -8,9 +8,9 @@
"scripts": {
"build": "yarn copy && react-scripts build",
"copy": "yarn copy-cmaps && yarn copy-standard-fonts && yarn copy-worker",
"copy-cmaps": "node --loader ts-node/esm ./scripts/copy-cmaps.ts",
"copy-standard-fonts": "node --loader ts-node/esm ./scripts/copy-standard-fonts.ts",
"copy-worker": "node --loader ts-node/esm ./scripts/copy-worker.ts",
"copy-cmaps": "node --import tsimp/import ./scripts/copy-cmaps.ts",
"copy-standard-fonts": "node --import tsimp/import ./scripts/copy-standard-fonts.ts",
"copy-worker": "node --import tsimp/import ./scripts/copy-worker.ts",
"dev": "yarn copy && react-scripts start",
"eject": "react-scripts eject",
"test": "react-scripts test"
Expand All @@ -29,7 +29,7 @@
},
"devDependencies": {
"@types/node": "*",
"ts-node": "^10.9.1",
"tsimp": "^2.0.11",
"typescript": "^5.0.0"
},
"resolutions": {
Expand Down

0 comments on commit 01b2b97

Please sign in to comment.