Skip to content

Commit

Permalink
build: Fix NPM package creation errors #535
Browse files Browse the repository at this point in the history
  • Loading branch information
valarnin committed Dec 8, 2024
1 parent 9f14ea7 commit 02119f9
Show file tree
Hide file tree
Showing 2 changed files with 15 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
14 changes: 14 additions & 0 deletions tsconfig.npm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "./tsconfig.json",
"include": [
"./ui",
"./types",
"./resources",
"./util",
"./test",
"./user"
],
"exclude": [
"./dist"
]
}

0 comments on commit 02119f9

Please sign in to comment.