Skip to content

Commit

Permalink
build: Fix NPM package creation errors OverlayPlugin#535 (OverlayPlug…
Browse files Browse the repository at this point in the history
  • Loading branch information
valarnin authored Dec 8, 2024
1 parent 9f14ea7 commit 234ea9f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/npm-package.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function main() {
fs.rmSync('dist', { recursive: true, force: true });
fs.mkdirSync('npm-package');

await exec('npx tsc --declaration');
await exec('npx tsc -p tsconfig.npm.json --declaration');
fs.renameSync('dist/ui', 'npm-package/ui');
fsExtra.copySync('types', 'npm-package/types', {});
fs.renameSync('dist/resources', 'npm-package/resources');
Expand Down
12 changes: 12 additions & 0 deletions tsconfig.npm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"include": [
"./ui",
"./types",
"./resources",
"./util"
],
"exclude": [
"./dist"
]
}

0 comments on commit 234ea9f

Please sign in to comment.