File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 9
9
"license" : " MIT" ,
10
10
"exports" : {
11
11
"import" : {
12
- "types" : " ./dist/lib /index.m.d.ts" ,
12
+ "types" : " ./dist/types /index.m.d.ts" ,
13
13
"default" : " ./dist/lib/index.mjs"
14
14
},
15
15
"types" : " ./dist/lib/index.d.ts" ,
16
- "default" : " ./dist/lib /index.js"
16
+ "default" : " ./dist/types /index.js"
17
17
},
18
18
"main" : " dist/lib/index.js" ,
19
19
"types" : " dist/types/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -15,8 +15,12 @@ void (async () => {
15
15
await getLanguageRepo ( 'lib/src/vendor' ) ;
16
16
17
17
console . log ( 'Transpiling TS into dist.' ) ;
18
- shell . exec ( 'tsc' ) ;
18
+ shell . exec ( 'tsc -p tsconfig.build.json ' ) ;
19
19
shell . cp ( 'lib/index.mjs' , 'dist/lib/index.mjs' ) ;
20
+ shell . cp (
21
+ 'dist/lib/src/vendor/sass/index.d.ts' ,
22
+ 'dist/lib/src/vendor/sass/index.m.d.ts'
23
+ ) ;
20
24
21
25
console . log ( 'Copying JS API types to dist.' ) ;
22
26
shell . cp ( '-R' , 'lib/src/vendor/sass' , 'dist/types' ) ;
You can’t perform that action at this time.
0 commit comments