Skip to content

Commit 1455c01

Browse files
Update typescript to fix build
1 parent eeca83d commit 1455c01

5 files changed

Lines changed: 29 additions & 22 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
node-version: [18.x, 20.x, 22.x]
12+
node-version: [18.x, 22.x]
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Node.js specs ${{ matrix.node-version }}

package-lock.json

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

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"esnext": "./dist/index.js",
99
"bin": "./bin/cli.js",
1010
"scripts": {
11-
"build": "npm run ts && npm run rollup",
11+
"build": "npm run clean && npm run ts && npm run rollup",
12+
"clean": "rm -rf ./dist",
1213
"perf": "./node_modules/.bin/matcha perf.js",
1314
"rollup": "./node_modules/.bin/rollup -c",
1415
"test": "./node_modules/.bin/istanbul cover node_modules/mocha/bin/_mocha -- -R spec",
@@ -33,7 +34,7 @@
3334
},
3435
"homepage": "https://github.com/ulid/javascript#readme",
3536
"devDependencies": {
36-
"@types/node": "^8.10.66",
37+
"@types/node": "^10.17.60",
3738
"babel-core": "^6.26.3",
3839
"babel-plugin-external-helpers": "^6.22.0",
3940
"babel-preset-env": "^1.7.0",
@@ -45,6 +46,6 @@
4546
"rollup-plugin-babel": "^3.0.7",
4647
"rollup-plugin-typescript": "^0.8.1",
4748
"typedoc": "^0.9.0",
48-
"typescript": "^2.9.2"
49+
"typescript": "^5.7.3"
4950
}
5051
}

tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@
33
"lib": [
44
"ES5", "ES6", "ES7", "DOM"
55
],
6+
"esModuleInterop": true,
67
"types": [ "Node" ],
78
"declaration": true,
89
"target": "ES6",
910
"module": "ES6",
1011
"outDir": "./dist"
1112
},
12-
"compileOnSave": true,
13+
"include": [
14+
"./lib/**/*"
15+
],
16+
"exclude":[
17+
"node_modules"
18+
],
1319
"strict": true
1420
}

yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
resolved "https://registry.npmjs.org/@types/minimatch/-/minimatch-2.0.29.tgz"
3535
integrity sha512-HMjwFKEsu7AWge4XGwDf+aB1LbQ+YHlRZth1YfmzXft5+5DROWamftev/ZLTtjvp3//yY4Iqc0pFQrqJwTiKYg==
3636

37-
"@types/node@*", "@types/node@^8.10.66":
38-
version "8.10.66"
39-
resolved "https://registry.npmjs.org/@types/node/-/node-8.10.66.tgz"
40-
integrity sha512-tktOkFUA4kXx2hhhrB8bIFb5TbwzS4uOhKEmwiD+NoiL0qtP2OQ9mFldbgD4dV1djrlBYP6eBuQZiWjuHUpqFw==
37+
"@types/node@*", "@types/node@^10.17.60":
38+
version "10.17.60"
39+
resolved "https://registry.npmjs.org/@types/node/-/node-10.17.60.tgz"
40+
integrity sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==
4141

4242
"@types/shelljs@0.7.0":
4343
version "0.7.0"
@@ -1371,10 +1371,10 @@ typescript@^1.8.9:
13711371
resolved "https://registry.npmjs.org/typescript/-/typescript-1.8.10.tgz"
13721372
integrity sha512-amAjhGr2ZKUcd3OpqmSWbyz57bveJcwLdVp4XY31zR3Lylq0ZG8MHAX4IpoJ5AypkdkKkMRRVoqY6lKWrR9uPQ==
13731373

1374-
typescript@^2.9.2:
1375-
version "2.9.2"
1376-
resolved "https://registry.npmjs.org/typescript/-/typescript-2.9.2.tgz"
1377-
integrity sha512-Gr4p6nFNaoufRIY4NMdpQRNmgxVIGMs4Fcu/ujdYk3nAZqk7supzBE9idmvfZIlH/Cuj//dvi+019qEue9lV0w==
1374+
typescript@^5.7.3:
1375+
version "5.7.3"
1376+
resolved "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz"
1377+
integrity sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==
13781378

13791379
typescript@2.4.1:
13801380
version "2.4.1"

0 commit comments

Comments
 (0)