File tree 3 files changed +22
-7
lines changed
3 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 19
19
" mcp"
20
20
],
21
21
"exports" : {
22
- "./*" : " ./dist/*"
22
+ "./*" : {
23
+ "import" : " ./dist/esm/*" ,
24
+ "require" : " ./dist/cjs/*"
25
+ }
23
26
},
24
27
"typesVersions" : {
25
28
"*" : {
26
29
"*" : [
27
- " ./dist/*"
30
+ " ./dist/esm/ *"
28
31
]
29
32
}
30
33
},
31
34
"files" : [
32
35
" dist"
33
36
],
34
37
"scripts" : {
35
- "build" : " tsc -p tsconfig.prod.json" ,
36
- "prepack" : " tsc -p tsconfig.prod.json" ,
38
+ "build" : " npm run build:esm && npm run build:cjs" ,
39
+ "build:esm" : " tsc -p tsconfig.prod.json && echo '{\" type\" : \" module\" }' > dist/esm/package.json" ,
40
+ "build:cjs" : " tsc -p tsconfig.cjs.json && echo '{\" type\" : \" commonjs\" }' > dist/cjs/package.json" ,
41
+ "prepack" : " npm run build:esm && npm run build:cjs" ,
37
42
"lint" : " eslint src/" ,
38
43
"test" : " jest" ,
39
44
"start" : " npm run server" ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ./tsconfig.json" ,
3
+ "compilerOptions" : {
4
+ "module" : " commonjs" ,
5
+ "moduleResolution" : " node" ,
6
+ "outDir" : " ./dist/cjs"
7
+ },
8
+ "exclude" : [" **/*.test.ts" ]
9
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " ./tsconfig.json" ,
3
- "exclude" : [
4
- " **/*.test.ts" ,
5
- ]
3
+ "compilerOptions" : {
4
+ "outDir" : " ./dist/esm"
5
+ },
6
+ "exclude" : [" **/*.test.ts" ]
6
7
}
You can’t perform that action at this time.
0 commit comments