Skip to content

Commit a88a080

Browse files
authored
fix(run): plugin could fork before bundle generated (#281)
* Fix editorconfig to conform eslint rules * writeBundle instead of generateBundle for watch * Revert editorconfig, fix lint-staged
1 parent 38d192c commit a88a080

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
}
6060
},
6161
"lint-staged": {
62-
"*.js,*.ts": [
62+
"*.{ts,js}": [
6363
"eslint --fix",
6464
"git add"
6565
],

packages/run/lib/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ module.exports = (opts = {}) => {
3535
if (!isWrite) {
3636
this.error(`@rollup/plugin-run currently only works with bundles that are written to disk`);
3737
}
38+
},
3839

40+
writeBundle(outputOptions, bundle) {
3941
const dir = outputOptions.dir || path.dirname(outputOptions.file);
4042

4143
let dest;

0 commit comments

Comments
 (0)