Skip to content

Commit 13cc0b9

Browse files
committed
Generate typescript types to package dist
1 parent 9e32d92 commit 13cc0b9

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"mocha": "10.8.2",
2828
"mocha-lcov-reporter": "1.3.0",
2929
"nyc": "17.1.0",
30-
"rollup": "4.27.2"
30+
"rollup": "4.27.2",
31+
"typescript": "^5.6.3"
3132
},
3233
"dependencies": {
3334
"fastpriorityqueue": "^0.7.5"
@@ -57,6 +58,7 @@
5758
"test-perf": "0x -- node $(which _mocha) --timeout 10s --recursive test/auto/node test/manual",
5859
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
5960
"build-jsdoc": "jsdoc -c doc/jsdoc.json",
61+
"gen-types": "tsc",
6062
"build": "rollup -c rollup.config.js -o dist/jsts.min.js"
6163
}
6264
}

tsconfig.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"compilerOptions": {
3+
"declaration": true,
4+
"emitDeclarationOnly": true,
5+
"allowJs": true,
6+
"checkJs": true,
7+
"skipLibCheck": true,
8+
"noEmitOnError": false,
9+
"outDir": "dist/types"
10+
},
11+
"include": ["src/**/*"]
12+
}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2335,6 +2335,11 @@ typedarray-to-buffer@^3.1.5:
23352335
dependencies:
23362336
is-typedarray "^1.0.0"
23372337

2338+
typescript@^5.6.3:
2339+
version "5.6.3"
2340+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b"
2341+
integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==
2342+
23382343
uc.micro@^2.0.0, uc.micro@^2.1.0:
23392344
version "2.1.0"
23402345
resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-2.1.0.tgz#f8d3f7d0ec4c3dea35a7e3c8efa4cb8b45c9e7ee"

0 commit comments

Comments
 (0)