Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not watch unless --watch is specified explicitly (#4335)
- Loading branch information
1 parent
7f55571
commit ba7fc53
Showing
7 changed files
with
48 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const { assertIncludes } = require('../../../../utils'); | ||
|
||
module.exports = { | ||
description: 'does not watch if --watch is missing', | ||
command: 'node wrapper.js -c --no-watch.clearScreen', | ||
stderr: stderr => assertIncludes(stderr, 'main.js → _actual.js...\ncreated _actual.js in'), | ||
abortOnStderr(data) { | ||
if (data.includes('waiting for changes')) { | ||
throw new Error('Watch initiated'); | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default 42; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default [ | ||
{ | ||
input: 'main.js', | ||
output: { | ||
file: '_actual.js', | ||
format: 'es', | ||
}, | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env node | ||
|
||
process.stdout.isTTY = true; | ||
process.stderr.isTTY = true; | ||
require('../../../../../dist/bin/rollup'); |