File tree 3 files changed +15
-4
lines changed
3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 45
45
npm run build:esm
46
46
echo '{"type": "commonjs"}' > dist/commonjs/package.json
47
47
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
48
50
mkdir dest
49
51
npm pack --pack-destination=dest
50
52
- name : Typedoc
Original file line number Diff line number Diff line change 13
13
"homepage" : " https://github.com/malthe/ts-postgres" ,
14
14
"author" :
" Malthe Borch <[email protected] >" ,
15
15
"main" : " ./dist/module/index.js" ,
16
- "types" : " ./dist/module/ index.d.ts" ,
16
+ "types" : " ./dist/index.d.ts" ,
17
17
"exports" : {
18
- "require" : " ./dist/commonjs/index.js" ,
19
- "import" : " ./dist/module/index.js"
18
+ "." : {
19
+ "require" : {
20
+ "types" : " ./dist/index.d.ts" ,
21
+ "default" : " ./dist/commonjs/index.js"
22
+ },
23
+ "import" : {
24
+ "types" : " ./dist/index.d.ts" ,
25
+ "default" : " ./dist/module/index.js"
26
+ }
27
+ }
20
28
},
21
29
"files" : [
22
30
" /dist"
58
66
"@typescript-eslint/eslint-plugin" : " ^6" ,
59
67
"@typescript-eslint/parser" : " ^6" ,
60
68
"colors" : " ^1" ,
69
+ "dts-bundle-generator" : " ^9.3.1" ,
61
70
"eslint" : " ^8" ,
62
71
"eslint-config-standard" : " ^17" ,
63
72
"eslint-plugin-import" : " ^2" ,
Original file line number Diff line number Diff line change 7
7
"strict" : true ,
8
8
"sourceMap" : true ,
9
9
"inlineSourceMap" : false ,
10
- "declaration" : true ,
10
+ "declaration" : false ,
11
11
"noImplicitAny" : true ,
12
12
"isolatedModules" : true ,
13
13
"noUnusedParameters" : true ,
You can’t perform that action at this time.
0 commit comments