Skip to content

Commit 140e8b2

Browse files
authored
Try again to properly locate the TypeScript types (#258)
1 parent 16f0810 commit 140e8b2

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"types": "./dist/types/index.m.d.ts",
1313
"default": "./dist/lib/index.mjs"
1414
},
15-
"types": "./dist/lib/index.d.ts",
16-
"default": "./dist/types/index.js"
15+
"types": "./dist/types/index.d.ts",
16+
"default": "./dist/lib/index.js"
1717
},
1818
"main": "dist/lib/index.js",
1919
"types": "dist/types/index.d.ts",

tool/prepare-release.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@ void (async () => {
1717
console.log('Transpiling TS into dist.');
1818
shell.exec('tsc -p tsconfig.build.json');
1919
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-
);
2420

2521
console.log('Copying JS API types to dist.');
2622
shell.cp('-R', 'lib/src/vendor/sass', 'dist/types');
23+
shell.cp('dist/types/index.d.ts', 'dist/types/index.m.d.ts');
2724
await fs.unlink('dist/types/README.md');
2825

2926
console.log('Ready for publishing to npm.');

0 commit comments

Comments
 (0)