Skip to content

Commit efb5b1e

Browse files
committed
Use 'dts-bundle-generator' to emit rolled up type declaration
1 parent 84b941e commit efb5b1e

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/workflows/main.yml

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
npm run build:esm
4646
echo '{"type": "commonjs"}' > dist/commonjs/package.json
4747
echo '{"type": "module"}' > dist/module/package.json
48+
npm i --no-save dts-bundle-generator
49+
npx dts-bundle-generator -o dist/index.d.ts src/index.ts
4850
mkdir dest
4951
npm pack --pack-destination=dest
5052
- name: Typedoc

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"@typescript-eslint/eslint-plugin": "^6",
5959
"@typescript-eslint/parser": "^6",
6060
"colors": "^1",
61+
"dts-bundle-generator": "^9.3.1",
6162
"eslint": "^8",
6263
"eslint-config-standard": "^17",
6364
"eslint-plugin-import": "^2",

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"strict": true,
88
"sourceMap": true,
99
"inlineSourceMap": false,
10-
"declaration": true,
10+
"declaration": false,
1111
"noImplicitAny": true,
1212
"isolatedModules": true,
1313
"noUnusedParameters": true,

0 commit comments

Comments
 (0)