File tree Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 18
18
"exports" : {
19
19
"." : {
20
20
"import" : " ./build/client.js" ,
21
+ "require" : " ./build/cjs/client.js" ,
21
22
"types" : " ./build/client.d.ts"
22
23
},
23
24
"./auth" : {
24
25
"import" : " ./build/authMethods.js" ,
26
+ "require" : " ./build/cjs/authMethods.js" ,
25
27
"types" : " ./build/authMethods.d.ts"
26
28
}
27
29
},
39
41
"scripts" : {
40
42
"fix" : " gts fix" ,
41
43
"lint" : " gts check" ,
42
- "compile" : " tsc -p ." ,
44
+ "compile" : " npm run compile:esm && npm run compile:cjs" ,
45
+ "compile:esm" : " tsc -p tsconfig.esm.json" ,
46
+ "compile:cjs" : " tsc -p tsconfig.cjs.json" ,
43
47
"prepare" : " npm run compile" ,
44
48
"test:unit" : " cross-env NODE_OPTIONS=--experimental-vm-modules jest --config jest.config.json" ,
45
49
"test:e2e" : " cross-env NODE_OPTIONS=--experimental-vm-modules jest --config jest.e2e.config.json --runInBand" ,
64
68
"google-auth-library" : " ^9.15.1" ,
65
69
"zod" : " ^3.24.4"
66
70
}
67
- }
71
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ./tsconfig.esm.json" ,
3
+ "compilerOptions" : {
4
+ "module" : " nodenext" ,
5
+ "outDir" : " ./build/cjs" ,
6
+ "declaration" : false ,
7
+ "target" : " ES2019" ,
8
+ }
9
+ }
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " ./tsconfig.json" ,
2
+ "extends" : " ./tsconfig.esm. json" ,
3
3
"compilerOptions" : {
4
4
"rootDir" : " ." ,
5
5
"outDir" : " build" ,
You can’t perform that action at this time.
0 commit comments