File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 31
31
"compass:exports" : {
32
32
"." : " ./src/index.tsx"
33
33
},
34
- "types" : " ./dist/src/ index.d.ts" ,
34
+ "types" : " ./dist/index.d.ts" ,
35
35
"scripts" : {
36
36
"prepublishOnly" : " npm run compile && compass-scripts check-exports-exist" ,
37
37
"compile" : " npm run webpack -- --mode production" ,
38
38
"webpack" : " webpack-compass" ,
39
- "postcompile" : " tsc --emitDeclarationOnly" ,
39
+ "postcompile" : " tsc -p tsconfig-build.json - -emitDeclarationOnly" ,
40
40
"start" : " npm run webpack serve -- --mode development" ,
41
41
"analyze" : " npm run webpack -- --mode production --analyze" ,
42
42
"typecheck" : " tsc -p tsconfig-lint.json --noEmit" ,
Original file line number Diff line number Diff line change
1
+ // We include sandbox code in default tsconfig, but it affects emitted file
2
+ // paths. This is a special tsconfig for postcompile task so that the
3
+ // declarations emitted are only for files we actually want to publish
4
+ {
5
+ "extends" : " ./tsconfig.json" ,
6
+ "include" : [" src/**/*" ],
7
+ "exclude" : [" ./src/**/*.spec.*" ]
8
+ }
Original file line number Diff line number Diff line change 3
3
"compilerOptions" : {
4
4
"outDir" : " dist"
5
5
},
6
- "include" : [" src/**/*" , " sandbox/**/*" ],
6
+ "include" : [
7
+ " src/**/*" ,
8
+ // Including sandbox so that ts check and editor intellisense can provide
9
+ // useful information when working in the sandbox. It needs to be in the
10
+ // default tsconfig file
11
+ " sandbox/**/*"
12
+ ],
7
13
"exclude" : [" ./src/**/*.spec.*" ]
8
14
}
You can’t perform that action at this time.
0 commit comments