Skip to content

Commit 84a8503

Browse files
committed
use tsgo (7.0-preview) to compile TypeScript files
1 parent 0e02917 commit 84a8503

File tree

3 files changed

+129
-4
lines changed

3 files changed

+129
-4
lines changed

package-lock.json

Lines changed: 127 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"sideEffects": false,
1313
"scripts": {
1414
"build": "npm publish --dry-run",
15-
"prepare": "npm run clean && webpack --bail && tsc --build tsconfig.dist.cjs.json tsconfig.dist.esm.json && tsimp tools/fix-ext.mts --mjs dist.esm/*.js dist.esm/*/*.js && tsimp tools/fix-ext.mts --cjs dist.cjs/*.js dist.cjs/*/*.js",
15+
"prepare": "npm run clean && webpack --bail && tsgo --build tsconfig.dist.cjs.json tsconfig.dist.esm.json && tsimp tools/fix-ext.mts --mjs dist.esm/*.js dist.esm/*/*.js && tsimp tools/fix-ext.mts --cjs dist.cjs/*.js dist.cjs/*/*.js",
1616
"prepublishOnly": "npm run test:dist",
1717
"clean": "rimraf build dist dist.*",
1818
"test": "mocha 'test/**/*.test.ts'",
@@ -60,6 +60,7 @@
6060
"@types/node": "latest",
6161
"@typescript-eslint/eslint-plugin": "latest",
6262
"@typescript-eslint/parser": "latest",
63+
"@typescript/native-preview": "^7.0.0-dev.20251225.1",
6364
"assert": "latest",
6465
"benchmark": "latest",
6566
"buffer": "latest",
@@ -85,7 +86,6 @@
8586
"ts-loader": "latest",
8687
"ts-node": "latest",
8788
"tsimp": "latest",
88-
"typescript": "latest",
8989
"webpack": "latest",
9090
"webpack-cli": "latest"
9191
},

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646

4747
/* Module Resolution Options */
4848
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
49-
"baseUrl": "./", /* Base directory to resolve non-absolute module names. */
5049
// "paths": {
5150
// "@msgpack/msgpack": ["./src"]
5251
// }, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */

0 commit comments

Comments
 (0)