Skip to content

Commit

Permalink
Replace tsimp with native --experimental-strip-types
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Aug 24, 2024
1 parent 8d489d1 commit 4c79756
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 187 deletions.
7 changes: 3 additions & 4 deletions sample/create-react-app-5/package.json
Original file line number Diff line number Diff line change
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 --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",
"copy-cmaps": "node --experimental-strip-types ./scripts/copy-cmaps.ts",
"copy-standard-fonts": "node --experimental-strip-types ./scripts/copy-standard-fonts.ts",
"copy-worker": "node --experimental-strip-types ./scripts/copy-worker.ts",
"dev": "yarn copy && react-scripts start",
"eject": "react-scripts eject",
"test": "react-scripts test"
Expand All @@ -29,7 +29,6 @@
},
"devDependencies": {
"@types/node": "*",
"tsimp": "^2.0.11",
"typescript": "^5.0.0"
},
"resolutions": {
Expand Down
91 changes: 4 additions & 87 deletions sample/create-react-app-5/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1866,22 +1866,6 @@ __metadata:
languageName: node
linkType: hard

"@isaacs/cached@npm:^1.0.1":
version: 1.0.1
resolution: "@isaacs/cached@npm:1.0.1"
dependencies:
"@isaacs/catcher": "npm:^1.0.0"
checksum: 10c0/1c15dc2a60873f2c73f4b04ed59ecfc8d9679976ff09af1b5b45e7273a590a4f86a339cc4c785c2d22309277ca47293611af20dd7d41550cdcfb53e06a04ac65
languageName: node
linkType: hard

"@isaacs/catcher@npm:^1.0.0, @isaacs/catcher@npm:^1.0.4":
version: 1.0.4
resolution: "@isaacs/catcher@npm:1.0.4"
checksum: 10c0/d8b77e2c6b84a6301d390d0b2badea1b4a321f2e8ba662645b045efc42f20a54a6c760f3181fab4ed0d90da58f2cb084a93490a892c53b4da21ec05278b8ba4f
languageName: node
linkType: hard

"@isaacs/cliui@npm:^8.0.2":
version: 8.0.2
resolution: "@isaacs/cliui@npm:8.0.2"
Expand Down Expand Up @@ -6036,7 +6020,7 @@ __metadata:
languageName: node
linkType: hard

"foreground-child@npm:^3.1.0, foreground-child@npm:^3.1.1":
"foreground-child@npm:^3.1.0":
version: 3.1.1
resolution: "foreground-child@npm:3.1.1"
dependencies:
Expand Down Expand Up @@ -6283,7 +6267,7 @@ __metadata:
languageName: node
linkType: hard

"glob@npm:^10.2.2, glob@npm:^10.3.10, glob@npm:^10.3.7":
"glob@npm:^10.2.2, glob@npm:^10.3.10":
version: 10.3.10
resolution: "glob@npm:10.3.10"
dependencies:
Expand Down Expand Up @@ -8352,15 +8336,6 @@ __metadata:
languageName: node
linkType: hard

"mkdirp@npm:^3.0.1":
version: 3.0.1
resolution: "mkdirp@npm:3.0.1"
bin:
mkdirp: dist/cjs/src/bin.js
checksum: 10c0/9f2b975e9246351f5e3a40dcfac99fcd0baa31fbfab615fe059fb11e51f10e4803c63de1f384c54d656e4db31d000e4767e9ef076a22e12a641357602e31d57d
languageName: node
linkType: hard

"mkdirp@npm:~0.5.1":
version: 0.5.6
resolution: "mkdirp@npm:0.5.6"
Expand Down Expand Up @@ -8983,7 +8958,7 @@ __metadata:
languageName: node
linkType: hard

"pirates@npm:^4.0.1, pirates@npm:^4.0.4, pirates@npm:^4.0.6":
"pirates@npm:^4.0.1, pirates@npm:^4.0.4":
version: 4.0.6
resolution: "pirates@npm:4.0.6"
checksum: 10c0/00d5fa51f8dded94d7429700fb91a0c1ead00ae2c7fd27089f0c5b63e6eca36197fe46384631872690a66f390c5e27198e99006ab77ae472692ab9c2ca903f36
Expand Down Expand Up @@ -10144,7 +10119,6 @@ __metadata:
react-dom: "npm:^18.2.0"
react-pdf: "npm:latest"
react-scripts: "npm:^5.0.0"
tsimp: "npm:^2.0.11"
typescript: "npm:^5.0.0"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -10562,17 +10536,6 @@ __metadata:
languageName: node
linkType: hard

"rimraf@npm:^5.0.5":
version: 5.0.5
resolution: "rimraf@npm:5.0.5"
dependencies:
glob: "npm:^10.3.7"
bin:
rimraf: dist/esm/bin.mjs
checksum: 10c0/d50dbe724f33835decd88395b25ed35995077c60a50ae78ded06e0185418914e555817aad1b4243edbff2254548c2f6ad6f70cc850040bebb4da9e8cc016f586
languageName: node
linkType: hard

"rollup-plugin-terser@npm:^7.0.0":
version: 7.0.2
resolution: "rollup-plugin-terser@npm:7.0.2"
Expand Down Expand Up @@ -10893,7 +10856,7 @@ __metadata:
languageName: node
linkType: hard

"signal-exit@npm:^4.0.1, signal-exit@npm:^4.1.0":
"signal-exit@npm:^4.0.1":
version: 4.1.0
resolution: "signal-exit@npm:4.1.0"
checksum: 10c0/41602dce540e46d599edba9d9860193398d135f7ff72cab629db5171516cfae628d21e7bfccde1bbfdf11c48726bc2a6d1a8fb8701125852fbfda7cf19c6aa83
Expand Down Expand Up @@ -10946,24 +10909,6 @@ __metadata:
languageName: node
linkType: hard

"sock-daemon@npm:^1.4.2":
version: 1.4.2
resolution: "sock-daemon@npm:1.4.2"
dependencies:
rimraf: "npm:^5.0.5"
signal-exit: "npm:^4.1.0"
socket-post-message: "npm:^1.0.3"
checksum: 10c0/1b5e0b02fdd8cd5454fc7de80557c11aac5d88085d0cee80ead08b8f4df5e3c0a4b50ebb2ae2113dab94f36dc88b5d3b7d4b1c2c8e53bbcfbddfc741abf3bd00
languageName: node
linkType: hard

"socket-post-message@npm:^1.0.3":
version: 1.0.3
resolution: "socket-post-message@npm:1.0.3"
checksum: 10c0/d3ffb51dad97754856aaa6709e036196f4b8b674f00366b71591ead122bcdbc073827f67d17c8b03c9a28c921b2c7cb277c581f6ca318d472034eae7afc169d1
languageName: node
linkType: hard

"sockjs@npm:^0.3.24":
version: 0.3.24
resolution: "sockjs@npm:0.3.24"
Expand Down Expand Up @@ -11687,27 +11632,6 @@ __metadata:
languageName: node
linkType: hard

"tsimp@npm:^2.0.11":
version: 2.0.11
resolution: "tsimp@npm:2.0.11"
dependencies:
"@isaacs/cached": "npm:^1.0.1"
"@isaacs/catcher": "npm:^1.0.4"
foreground-child: "npm:^3.1.1"
mkdirp: "npm:^3.0.1"
pirates: "npm:^4.0.6"
rimraf: "npm:^5.0.5"
signal-exit: "npm:^4.1.0"
sock-daemon: "npm:^1.4.2"
walk-up-path: "npm:^3.0.1"
peerDependencies:
typescript: ^5.1.0
bin:
tsimp: dist/esm/bin.mjs
checksum: 10c0/20743dc21ce31678050582903bfcd2d600fa17305f70162cb4127f2fd208116354549a921574f6c26cdfca5cb07c24526094e5519bb294f2ddd13c06cd2f43eb
languageName: node
linkType: hard

"tslib@npm:^1.8.1":
version: 1.14.1
resolution: "tslib@npm:1.14.1"
Expand Down Expand Up @@ -12018,13 +11942,6 @@ __metadata:
languageName: node
linkType: hard

"walk-up-path@npm:^3.0.1":
version: 3.0.1
resolution: "walk-up-path@npm:3.0.1"
checksum: 10c0/3184738e0cf33698dd58b0ee4418285b9c811e58698f52c1f025435a85c25cbc5a63fee599f1a79cb29ca7ef09a44ec9417b16bfd906b1a37c305f7aa20ee5bc
languageName: node
linkType: hard

"walker@npm:^1.0.7":
version: 1.0.8
resolution: "walker@npm:1.0.8"
Expand Down
5 changes: 2 additions & 3 deletions sample/parcel2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"scripts": {
"build": "yarn copy && parcel build index.html --public-url ./",
"copy": "yarn copy-cmaps && yarn copy-standard-fonts",
"copy-cmaps": "node --import tsimp/import ./scripts/copy-cmaps.ts",
"copy-standard-fonts": "node --import tsimp/import ./scripts/copy-standard-fonts.ts",
"copy-cmaps": "node --experimental-strip-types ./scripts/copy-cmaps.ts",
"copy-standard-fonts": "node --experimental-strip-types ./scripts/copy-standard-fonts.ts",
"dev": "yarn copy && parcel index.html"
},
"author": {
Expand All @@ -27,7 +27,6 @@
"buffer": "^5.5.0",
"parcel": "^2.0.0",
"process": "^0.11.10",
"tsimp": "^2.0.11",
"typescript": "^5.0.0"
}
}
96 changes: 3 additions & 93 deletions sample/parcel2/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,6 @@ __metadata:
languageName: node
linkType: hard

"@isaacs/cached@npm:^1.0.1":
version: 1.0.1
resolution: "@isaacs/cached@npm:1.0.1"
dependencies:
"@isaacs/catcher": "npm:^1.0.0"
checksum: 10c0/1c15dc2a60873f2c73f4b04ed59ecfc8d9679976ff09af1b5b45e7273a590a4f86a339cc4c785c2d22309277ca47293611af20dd7d41550cdcfb53e06a04ac65
languageName: node
linkType: hard

"@isaacs/catcher@npm:^1.0.0, @isaacs/catcher@npm:^1.0.4":
version: 1.0.4
resolution: "@isaacs/catcher@npm:1.0.4"
checksum: 10c0/d8b77e2c6b84a6301d390d0b2badea1b4a321f2e8ba662645b045efc42f20a54a6c760f3181fab4ed0d90da58f2cb084a93490a892c53b4da21ec05278b8ba4f
languageName: node
linkType: hard

"@isaacs/cliui@npm:^8.0.2":
version: 8.0.2
resolution: "@isaacs/cliui@npm:8.0.2"
Expand Down Expand Up @@ -1642,7 +1626,7 @@ __metadata:
languageName: node
linkType: hard

"foreground-child@npm:^3.1.0, foreground-child@npm:^3.1.1":
"foreground-child@npm:^3.1.0":
version: 3.1.1
resolution: "foreground-child@npm:3.1.1"
dependencies:
Expand Down Expand Up @@ -1701,7 +1685,7 @@ __metadata:
languageName: node
linkType: hard

"glob@npm:^10.2.2, glob@npm:^10.3.10, glob@npm:^10.3.7":
"glob@npm:^10.2.2, glob@npm:^10.3.10":
version: 10.3.10
resolution: "glob@npm:10.3.10"
dependencies:
Expand Down Expand Up @@ -2374,15 +2358,6 @@ __metadata:
languageName: node
linkType: hard

"mkdirp@npm:^3.0.1":
version: 3.0.1
resolution: "mkdirp@npm:3.0.1"
bin:
mkdirp: dist/cjs/src/bin.js
checksum: 10c0/9f2b975e9246351f5e3a40dcfac99fcd0baa31fbfab615fe059fb11e51f10e4803c63de1f384c54d656e4db31d000e4767e9ef076a22e12a641357602e31d57d
languageName: node
linkType: hard

"ms@npm:2.1.2":
version: 2.1.2
resolution: "ms@npm:2.1.2"
Expand Down Expand Up @@ -2735,13 +2710,6 @@ __metadata:
languageName: node
linkType: hard

"pirates@npm:^4.0.6":
version: 4.0.6
resolution: "pirates@npm:4.0.6"
checksum: 10c0/00d5fa51f8dded94d7429700fb91a0c1ead00ae2c7fd27089f0c5b63e6eca36197fe46384631872690a66f390c5e27198e99006ab77ae472692ab9c2ca903f36
languageName: node
linkType: hard

"postcss-value-parser@npm:^4.2.0":
version: 4.2.0
resolution: "postcss-value-parser@npm:4.2.0"
Expand Down Expand Up @@ -2841,7 +2809,6 @@ __metadata:
react: "npm:^18.2.0"
react-dom: "npm:^18.2.0"
react-pdf: "npm:latest"
tsimp: "npm:^2.0.11"
typescript: "npm:^5.0.0"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -2928,17 +2895,6 @@ __metadata:
languageName: node
linkType: hard

"rimraf@npm:^5.0.5":
version: 5.0.5
resolution: "rimraf@npm:5.0.5"
dependencies:
glob: "npm:^10.3.7"
bin:
rimraf: dist/esm/bin.mjs
checksum: 10c0/d50dbe724f33835decd88395b25ed35995077c60a50ae78ded06e0185418914e555817aad1b4243edbff2254548c2f6ad6f70cc850040bebb4da9e8cc016f586
languageName: node
linkType: hard

"safe-buffer@npm:^5.0.1, safe-buffer@npm:~5.2.0":
version: 5.2.1
resolution: "safe-buffer@npm:5.2.1"
Expand Down Expand Up @@ -3021,7 +2977,7 @@ __metadata:
languageName: node
linkType: hard

"signal-exit@npm:^4.0.1, signal-exit@npm:^4.1.0":
"signal-exit@npm:^4.0.1":
version: 4.1.0
resolution: "signal-exit@npm:4.1.0"
checksum: 10c0/41602dce540e46d599edba9d9860193398d135f7ff72cab629db5171516cfae628d21e7bfccde1bbfdf11c48726bc2a6d1a8fb8701125852fbfda7cf19c6aa83
Expand Down Expand Up @@ -3053,24 +3009,6 @@ __metadata:
languageName: node
linkType: hard

"sock-daemon@npm:^1.4.2":
version: 1.4.2
resolution: "sock-daemon@npm:1.4.2"
dependencies:
rimraf: "npm:^5.0.5"
signal-exit: "npm:^4.1.0"
socket-post-message: "npm:^1.0.3"
checksum: 10c0/1b5e0b02fdd8cd5454fc7de80557c11aac5d88085d0cee80ead08b8f4df5e3c0a4b50ebb2ae2113dab94f36dc88b5d3b7d4b1c2c8e53bbcfbddfc741abf3bd00
languageName: node
linkType: hard

"socket-post-message@npm:^1.0.3":
version: 1.0.3
resolution: "socket-post-message@npm:1.0.3"
checksum: 10c0/d3ffb51dad97754856aaa6709e036196f4b8b674f00366b71591ead122bcdbc073827f67d17c8b03c9a28c921b2c7cb277c581f6ca318d472034eae7afc169d1
languageName: node
linkType: hard

"socks-proxy-agent@npm:^8.0.1":
version: 8.0.2
resolution: "socks-proxy-agent@npm:8.0.2"
Expand Down Expand Up @@ -3288,27 +3226,6 @@ __metadata:
languageName: node
linkType: hard

"tsimp@npm:^2.0.11":
version: 2.0.11
resolution: "tsimp@npm:2.0.11"
dependencies:
"@isaacs/cached": "npm:^1.0.1"
"@isaacs/catcher": "npm:^1.0.4"
foreground-child: "npm:^3.1.1"
mkdirp: "npm:^3.0.1"
pirates: "npm:^4.0.6"
rimraf: "npm:^5.0.5"
signal-exit: "npm:^4.1.0"
sock-daemon: "npm:^1.4.2"
walk-up-path: "npm:^3.0.1"
peerDependencies:
typescript: ^5.1.0
bin:
tsimp: dist/esm/bin.mjs
checksum: 10c0/20743dc21ce31678050582903bfcd2d600fa17305f70162cb4127f2fd208116354549a921574f6c26cdfca5cb07c24526094e5519bb294f2ddd13c06cd2f43eb
languageName: node
linkType: hard

"tslib@npm:^2.4.0":
version: 2.5.0
resolution: "tslib@npm:2.5.0"
Expand Down Expand Up @@ -3403,13 +3320,6 @@ __metadata:
languageName: node
linkType: hard

"walk-up-path@npm:^3.0.1":
version: 3.0.1
resolution: "walk-up-path@npm:3.0.1"
checksum: 10c0/3184738e0cf33698dd58b0ee4418285b9c811e58698f52c1f025435a85c25cbc5a63fee599f1a79cb29ca7ef09a44ec9417b16bfd906b1a37c305f7aa20ee5bc
languageName: node
linkType: hard

"warning@npm:^4.0.0":
version: 4.0.3
resolution: "warning@npm:4.0.3"
Expand Down

0 comments on commit 4c79756

Please sign in to comment.