File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 9
9
"license" : " MIT" ,
10
10
"type" : " module" ,
11
11
"main" : " ./dist/index.js" ,
12
+ "module" : " ./dist/index.js" ,
13
+ "types" : " ./dist/index.d.ts" ,
14
+ "exports" : {
15
+ "." : {
16
+ "require" : " ./dist/index.cjs" ,
17
+ "import" : " ./dist/index.js" ,
18
+ "types" : " ./dist/index.d.ts"
19
+ },
20
+ "*" : " ./*"
21
+ },
12
22
"homepage" : " https://openapi-ts.pages.dev" ,
13
23
"repository" : {
14
24
"type" : " git" ,
32
42
" svelte"
33
43
],
34
44
"scripts" : {
35
- "build" : " pnpm run build:clean && pnpm run build:ts && pnpm run build:ts-min" ,
45
+ "build" : " pnpm run build:clean && pnpm run build:ts && pnpm run build:ts-min && pnpm run build:cjs " ,
36
46
"build:clean" : " del dist" ,
37
47
"build:ts" : " tsc -p tsconfig.build.json" ,
38
48
"build:ts-min" : " esbuild --bundle src/index.ts --format=esm --minify --outfile=dist/index.min.js && cp dist/index.d.ts dist/index.min.d.ts" ,
49
+ "build:cjs" : " esbuild --bundle src/index.ts --format=cjs --outfile=dist/index.cjs" ,
39
50
"lint" : " pnpm run lint:js" ,
40
51
"lint:js" : " prettier --check \" {src,test}/**/*\" " ,
41
52
"test" : " pnpm run test:ts && npm run test:js" ,
You can’t perform that action at this time.
0 commit comments