Skip to content

Commit

Permalink
Generate typescript types to package dist
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornharrtell committed Nov 16, 2024
1 parent 9e32d92 commit 13cc0b9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"mocha": "10.8.2",
"mocha-lcov-reporter": "1.3.0",
"nyc": "17.1.0",
"rollup": "4.27.2"
"rollup": "4.27.2",
"typescript": "^5.6.3"
},
"dependencies": {
"fastpriorityqueue": "^0.7.5"
Expand Down Expand Up @@ -57,6 +58,7 @@
"test-perf": "0x -- node $(which _mocha) --timeout 10s --recursive test/auto/node test/manual",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"build-jsdoc": "jsdoc -c doc/jsdoc.json",
"gen-types": "tsc",
"build": "rollup -c rollup.config.js -o dist/jsts.min.js"
}
}
12 changes: 12 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"declaration": true,
"emitDeclarationOnly": true,
"allowJs": true,
"checkJs": true,
"skipLibCheck": true,
"noEmitOnError": false,
"outDir": "dist/types"
},
"include": ["src/**/*"]
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2335,6 +2335,11 @@ typedarray-to-buffer@^3.1.5:
dependencies:
is-typedarray "^1.0.0"

typescript@^5.6.3:
version "5.6.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b"
integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==

uc.micro@^2.0.0, uc.micro@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-2.1.0.tgz#f8d3f7d0ec4c3dea35a7e3c8efa4cb8b45c9e7ee"
Expand Down

0 comments on commit 13cc0b9

Please sign in to comment.