Skip to content

Commit

Permalink
Generate dts for extra bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
guansss committed Jul 24, 2022
1 parent e431b09 commit 500514c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,24 @@
"main": "dist/index.js",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./dist/index.es.js",
"require": "./dist/index.js"
},
"./cubism2": {
"types": "./types/index.d.ts",
"import": "./dist/cubism2.es.js",
"require": "./dist/cubism2.js"
},
"./cubism4": {
"types": "./types/index.d.ts",
"import": "./dist/cubism4.es.js",
"require": "./dist/cubism4.js"
},
"./extra": {
"types": "./types/extra.d.ts",
"import": "./dist/extra.es.js",
"require": "./dist/extra.js"
}
},
"repository": {
Expand All @@ -31,7 +39,7 @@
"test:debug": "node scripts/build-tests.js && npx floss --path=test.build -d",
"build": "rimraf dist && node scripts/build.js",
"pretype": "node scripts/patch-dts-generator.js",
"type": "rimraf types && dts-bundle-generator src/index.ts --no-check --project=tsconfig.build.json -o=types/index.d.ts",
"type": "rimraf types && dts-bundle-generator src/index.ts --no-check --project=tsconfig.build.json -o=types/index.d.ts && dts-bundle-generator src/extra.ts --no-check --project=tsconfig.build.json -o=types/extra.d.ts ",
"posttype": "node scripts/patch-types.js",
"doc": "rimraf \"docs/!(.git|.nojekyll)\" && node scripts/gen-docs.js",
"deploy": "cd docs && git add -A && git commit -m \"Update docs\" && git push",
Expand Down
3 changes: 3 additions & 0 deletions src/extra.ts
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/// <reference path="types/helpers.d.ts"/>
/// <reference path="types/env.d.ts"/>

export * from './tools/HitAreaFrames';

0 comments on commit 500514c

Please sign in to comment.