Skip to content

Commit

Permalink
Fix RollupError with recent rollup
Browse files Browse the repository at this point in the history
> [!] (plugin typescript) RollupError: [plugin typescript] @rollup/plugin-typescript: Path of Typescript compiler option 'outDir' must be located inside the same directory as the Rollup 'file' option.
  • Loading branch information
kateinoigakukun committed Dec 17, 2024
1 parent 15e6de9 commit f3d79dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/npm-packages/ruby-wasm-wasi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"format": "prettier --write .",
"build:static": "./tools/pack-bindgen-src.rb ./dist",
"build:rollup": "rollup -c rollup.config.mjs",
"build:tsc": "tsc -p tsconfig.json && tsc -p tsconfig.cjs.json",
"build:tsc": "tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json",
"build": "npm run build:rollup && npm run build:tsc && npm run build:static && ./tools/post-build.sh ./dist"
},
"devDependencies": {
Expand Down
6 changes: 6 additions & 0 deletions packages/npm-packages/ruby-wasm-wasi/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./dist/esm"
}
}
1 change: 0 additions & 1 deletion packages/npm-packages/ruby-wasm-wasi/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"importHelpers": true,
"allowJs": true,
"module": "ES2015",
"outDir": "./dist/esm",
"target": "es2017",
"esModuleInterop": true,
"moduleResolution": "node",
Expand Down

0 comments on commit f3d79dd

Please sign in to comment.