Skip to content

Commit 072b14d

Browse files
Do not run duplicating parser step on watch (#1745)
1 parent 7c57ffc commit 072b14d

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

resources/watch.js

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ function guardedCheck() {
9494
function checkFiles(filepaths) {
9595
console.log('\u001b[2J');
9696

97-
return parseFiles(filepaths)
98-
.then(() => runTests(filepaths))
97+
return runTests(filepaths)
9998
.then(testSuccess =>
10099
lintFiles(filepaths).then(lintSuccess =>
101100
typecheckStatus().then(
@@ -112,25 +111,6 @@ function checkFiles(filepaths) {
112111
}
113112

114113
// Checking steps
115-
116-
function parseFiles(filepaths) {
117-
console.log('Checking Syntax');
118-
119-
return Promise.all(
120-
filepaths.map(filepath => {
121-
if (isJS(filepath) && !isTest(filepath)) {
122-
return exec('babel', [
123-
'--optional',
124-
'runtime',
125-
'--out-file',
126-
'/dev/null',
127-
srcPath(filepath),
128-
]);
129-
}
130-
})
131-
);
132-
}
133-
134114
function runTests(filepaths) {
135115
console.log('\nRunning Tests');
136116

0 commit comments

Comments
 (0)