File tree Expand file tree Collapse file tree 5 files changed +32
-5
lines changed
smithy-typescript-ssdk-libs/server-apigateway Expand file tree Collapse file tree 5 files changed +32
-5
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0-alpha.7" ,
4
4
"description" : " Base components for Smithy services behind APIGateway" ,
5
5
"main" : " ./dist/cjs/index.js" ,
6
+ "module" : " ./dist/es/index.js" ,
6
7
"types" : " ./dist/types/index.d.ts" ,
7
8
"scripts" : {
8
9
"prepublishOnly" : " yarn build" ,
9
10
"pretest" : " yarn build" ,
10
- "build" : " tsc -p tsconfig.json" ,
11
+ "build" : " concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'" ,
12
+ "build:cjs" : " tsc -p tsconfig.cjs.json" ,
13
+ "build:es" : " tsc -p tsconfig.es.json" ,
14
+ "build:types" : " tsc -p tsconfig.types.json" ,
11
15
"postbuild" : " rimraf dist/types/ts3.4 && downlevel-dts dist/types dist/types/ts3.4" ,
12
16
"test" : " jest --passWithNoTests" ,
13
17
"clean" : " rimraf dist" ,
30
34
"devDependencies" : {
31
35
"@types/jest" : " ^26.0.4" ,
32
36
"@types/node" : " ^14.14.37" ,
37
+ "concurrently" : " ^7.6.0" ,
33
38
"downlevel-dts" : " ^0.7.0" ,
34
39
"jest" : " ^26.1.0" ,
35
40
"typescript" : " ~4.2.2" ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ./tsconfig" ,
3
+ "compilerOptions" : {
4
+ "outDir" : " dist/cjs"
5
+ }
6
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ./tsconfig" ,
3
+ "compilerOptions" : {
4
+ "module" : " esnext" ,
5
+ "outDir" : " dist/es"
6
+ }
7
+ }
Original file line number Diff line number Diff line change 1
1
{
2
+ "extends" : " ../tsconfig.json" ,
2
3
"compilerOptions" : {
3
4
"stripInternal" : true ,
4
- "declarationDir" : " ./dist/types" ,
5
- "rootDir" : " ./src" ,
6
- "outDir" : " ./dist/cjs" ,
5
+ "removeComments" : true ,
6
+ "rootDir" : " src" ,
7
7
"baseUrl" : " ."
8
8
},
9
- "extends" : " ../tsconfig.json" ,
10
9
"include" : [" src/" ]
11
10
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ./tsconfig" ,
3
+ "compilerOptions" : {
4
+ "removeComments" : false ,
5
+ "declaration" : true ,
6
+ "declarationDir" : " dist/types" ,
7
+ "emitDeclarationOnly" : true
8
+ },
9
+ "exclude" : [" test/**/*" , " dist/types/**/*" ]
10
+ }
You can’t perform that action at this time.
0 commit comments