Skip to content

Commit

Permalink
feat: generate ts declaration files (#11)
Browse files Browse the repository at this point in the history
* chore: generate ts declarations with tsc

* ts-declarations script

---------

Co-authored-by: Antoine BERNIER <[email protected]>
  • Loading branch information
filahf and abernier authored Sep 25, 2024
1 parent efd6cb4 commit d8709a9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rm -rf dist && make && npm run copy",
"build": "rm -rf dist && make && npm run ts-declarations && npm run copy",
"ts-declarations": "tsc dist/**/*.js --declaration --allowJs --emitDeclarationOnly --outDir dist --skipLibCheck",
"copy": "copyfiles package.json README.md LICENSE dist && json -I -f dist/package.json -e \"this.private=false; this.devDependencies=undefined; this.optionalDependencies=undefined; this.scripts=undefined; this.husky=undefined; this.prettier=undefined; this.jest=undefined; this['lint-staged']=undefined;\"",
"release": "semantic-release"
},
"devDependencies": {
"@gltf-transform/cli": "^3.4.0",
"copyfiles": "^2.3.0",
"json": "^11.0.0",
"semantic-release": "^20.1.1"
"semantic-release": "^20.1.1",
"typescript": "^5.6.2"
},
"repository": {
"type": "git",
Expand All @@ -30,5 +32,6 @@
"bugs": {
"url": "https://github.com/pmndrs/assets/issues"
},
"homepage": "https://github.com/pmndrs/assets#readme"
"homepage": "https://github.com/pmndrs/assets#readme",
"packageManager": "[email protected]"
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4836,6 +4836,11 @@ type-fest@^3.0.0:
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-3.11.1.tgz#d8e62c7f42e14537d5b8796de5450d541f3a33a7"
integrity sha512-aCuRNRERRVh33lgQaJRlUxZqzfhzwTrsE98Mc3o3VXqmiaQdHacgUtJ0esp+7MvZ92qhtzKPeusaX6vIEcoreA==

typescript@^5.6.2:
version "5.6.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.2.tgz#d1de67b6bef77c41823f822df8f0b3bcff60a5a0"
integrity sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==

uglify-js@^3.1.4:
version "3.17.4"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c"
Expand Down

0 comments on commit d8709a9

Please sign in to comment.