File tree 7 files changed +15
-12
lines changed
7 files changed +15
-12
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 @@ -40,7 +40,6 @@ import {
40
40
} from './protocol.js' ;
41
41
42
42
import {
43
- BufferEncoding ,
44
43
DataFormat ,
45
44
DataType ,
46
45
ValueTypeReader ,
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import type { Configuration } from './client.js';
14
14
export {
15
15
DataFormat ,
16
16
DataType ,
17
- type BufferEncoding ,
18
17
type Point ,
19
18
type ValueTypeReader ,
20
19
} from './types.js' ;
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import { sum } from './utils.js';
8
8
import {
9
9
arrayDataTypeMapping ,
10
10
isPoint ,
11
- BufferEncoding ,
12
11
DataFormat ,
13
12
DataType ,
14
13
ValueTypeReader ,
Original file line number Diff line number Diff line change 1
1
import { Buffer } from 'node:buffer' ;
2
2
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
-
8
3
export const enum DataType {
9
4
Bool = 16 ,
10
5
Bytea = 17 ,
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