File tree Expand file tree Collapse file tree 7 files changed +15
-12
lines changed
Expand file tree Collapse file tree 7 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1313 "homepage" : " https://github.com/malthe/ts-postgres" ,
1414 "author" :
" Malthe Borch <[email protected] >" ,
1515 "main" : " ./dist/module/index.js" ,
16- "types" : " ./dist/module/ index.d.ts" ,
16+ "types" : " ./dist/index.d.ts" ,
1717 "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+ }
2028 },
2129 "files" : [
2230 " /dist"
5866 "@typescript-eslint/eslint-plugin" : " ^6" ,
5967 "@typescript-eslint/parser" : " ^6" ,
6068 "colors" : " ^1" ,
69+ "dts-bundle-generator" : " ^9.3.1" ,
6170 "eslint" : " ^8" ,
6271 "eslint-config-standard" : " ^17" ,
6372 "eslint-plugin-import" : " ^2" ,
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ import {
4040} from './protocol.js' ;
4141
4242import {
43- BufferEncoding ,
4443 DataFormat ,
4544 DataType ,
4645 ValueTypeReader ,
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import type { Configuration } from './client.js';
1414export {
1515 DataFormat ,
1616 DataType ,
17- type BufferEncoding ,
1817 type Point ,
1918 type ValueTypeReader ,
2019} from './types.js' ;
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import { sum } from './utils.js';
88import {
99 arrayDataTypeMapping ,
1010 isPoint ,
11- BufferEncoding ,
1211 DataFormat ,
1312 DataType ,
1413 ValueTypeReader ,
Original file line number Diff line number Diff line change 11import { Buffer } from 'node:buffer' ;
22
3- // This type isn't really exposed, but we can tease it out using some type gymnastics.
4- export type BufferEncoding = NonNullable <
5- Required < Parameters < Buffer [ 'toString' ] > [ 0 ] >
6- > ;
7-
83export const enum DataType {
94 Bool = 16 ,
105 Bytea = 17 ,
Original file line number Diff line number Diff line change 77 "strict" : true ,
88 "sourceMap" : true ,
99 "inlineSourceMap" : false ,
10- "declaration" : true ,
10+ "declaration" : false ,
1111 "noImplicitAny" : true ,
1212 "isolatedModules" : true ,
1313 "noUnusedParameters" : true ,
You can’t perform that action at this time.
0 commit comments