Skip to content

Commit

Permalink
Fix build - with multiple folders in "include", it was making subfold…
Browse files Browse the repository at this point in the history
…ers in the build folder
  • Loading branch information
dumbmatter committed Apr 21, 2024
1 parent 20b86b7 commit 380355b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"scripts": {
"dev": "vite",
"test": "tsc --noEmit --emitDeclarationOnly false && eslint && vitest run",
"build": "node tools/process-svgs.js && rm -rf build && yarn run build-commonjs && yarn run build-esmodules && yarn run tsc && yarn run tsc -p tsconfig-commonjs.json",
"build": "node tools/process-svgs.js && rm -rf build && yarn run build-commonjs && yarn run build-esmodules && yarn run tsc -p tsconfig-esmodules.json && yarn run tsc -p tsconfig-commonjs.json",
"build-commonjs": "cross-env BABEL_ENV=commonjs babel src --extensions '.ts,.js' --out-dir build/commonjs",
"build-esmodules": "babel src --extensions '.ts,.js' --out-dir build/esmodules && echo '{\"type\": \"module\"}' > build/esmodules/package.json",
"build-site": "vite build",
Expand Down
10 changes: 5 additions & 5 deletions tsconfig-commonjs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"declarationDir": "build/commonjs"
}
}
"extends": "./tsconfig-esmodules.json",
"compilerOptions": {
"declarationDir": "build/commonjs"
}
}
4 changes: 4 additions & 0 deletions tsconfig-esmodules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["src"]
}

0 comments on commit 380355b

Please sign in to comment.