Skip to content

Commit f3d79dd

Browse files
Fix RollupError with recent rollup
> [!] (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.
1 parent 15e6de9 commit f3d79dd

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

packages/npm-packages/ruby-wasm-wasi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"format": "prettier --write .",
5050
"build:static": "./tools/pack-bindgen-src.rb ./dist",
5151
"build:rollup": "rollup -c rollup.config.mjs",
52-
"build:tsc": "tsc -p tsconfig.json && tsc -p tsconfig.cjs.json",
52+
"build:tsc": "tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json",
5353
"build": "npm run build:rollup && npm run build:tsc && npm run build:static && ./tools/post-build.sh ./dist"
5454
},
5555
"devDependencies": {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "./dist/esm"
5+
}
6+
}

packages/npm-packages/ruby-wasm-wasi/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"importHelpers": true,
55
"allowJs": true,
66
"module": "ES2015",
7-
"outDir": "./dist/esm",
87
"target": "es2017",
98
"esModuleInterop": true,
109
"moduleResolution": "node",

0 commit comments

Comments
 (0)