Skip to content

Commit d40e418

Browse files
Fix "watch" command. Remove 'babel-node' (#1449)
1 parent c3292db commit d40e418

File tree

3 files changed

+4
-33
lines changed

3 files changed

+4
-33
lines changed

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"node": "6.x || 8.x || >= 10.x"
2222
},
2323
"scripts": {
24-
"watch": "babel-node ./resources/watch.js",
24+
"watch": "node ./resources/watch.js",
2525
"test": "npm run lint && npm run check && npm run testonly",
2626
"test:ci": "npm run lint && npm run check && npm run testonly:coveralls",
2727
"t": "mocha --require @babel/register --require @babel/polyfill",
@@ -50,7 +50,6 @@
5050
"devDependencies": {
5151
"@babel/cli": "7.0.0-beta.55",
5252
"@babel/core": "7.0.0-beta.55",
53-
"@babel/node": "7.0.0-beta.55",
5453
"@babel/plugin-proposal-class-properties": "7.0.0-beta.55",
5554
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.55",
5655
"@babel/plugin-syntax-async-generators": "7.0.0-beta.55",

resources/watch.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ function parseFiles(filepaths) {
128128
function runTests(filepaths) {
129129
console.log('\nRunning Tests');
130130

131-
return exec('babel-node', [
132-
'./node_modules/.bin/_mocha',
131+
return exec('mocha', [
133132
'--reporter', 'progress',
134-
'--require', './resources/mocha-bootload',
133+
'--require', '@babel/register',
134+
'--require', '@babel/polyfill',
135135
].concat(
136136
allTests(filepaths) ?
137137
filepaths.map(srcPath) :

yarn.lock

-28
Original file line numberDiff line numberDiff line change
@@ -295,18 +295,6 @@
295295
esutils "^2.0.2"
296296
js-tokens "^3.0.0"
297297

298-
299-
version "7.0.0-beta.55"
300-
resolved "https://registry.yarnpkg.com/@babel/node/-/node-7.0.0-beta.55.tgz#d86293451eda2d21cf7f4607386050685340cb72"
301-
dependencies:
302-
"@babel/polyfill" "7.0.0-beta.55"
303-
"@babel/register" "7.0.0-beta.55"
304-
commander "^2.8.1"
305-
fs-readdir-recursive "^1.0.0"
306-
lodash "^4.17.10"
307-
output-file-sync "^2.0.0"
308-
v8flags "^3.1.1"
309-
310298
311299
version "7.0.0-beta.49"
312300
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.0.0-beta.49.tgz#944d0c5ba2812bb159edbd226743afd265179bdc"
@@ -1943,12 +1931,6 @@ home-or-tmp@^3.0.0:
19431931
version "3.0.0"
19441932
resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-3.0.0.tgz#57a8fe24cf33cdd524860a15821ddc25c86671fb"
19451933

1946-
homedir-polyfill@^1.0.1:
1947-
version "1.0.1"
1948-
resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz#4c2bbc8a758998feebf5ed68580f76d46768b4bc"
1949-
dependencies:
1950-
parse-passwd "^1.0.0"
1951-
19521934
hosted-git-info@^2.1.4:
19531935
version "2.6.0"
19541936
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.6.0.tgz#23235b29ab230c576aab0d4f13fc046b0b038222"
@@ -2839,10 +2821,6 @@ parse-json@^2.2.0:
28392821
dependencies:
28402822
error-ex "^1.2.0"
28412823

2842-
parse-passwd@^1.0.0:
2843-
version "1.0.0"
2844-
resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6"
2845-
28462824
pascalcase@^0.1.1:
28472825
version "0.1.1"
28482826
resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14"
@@ -3701,12 +3679,6 @@ uuid@^3.1.0:
37013679
version "3.2.1"
37023680
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14"
37033681

3704-
v8flags@^3.1.1:
3705-
version "3.1.1"
3706-
resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-3.1.1.tgz#42259a1461c08397e37fe1d4f1cfb59cad85a053"
3707-
dependencies:
3708-
homedir-polyfill "^1.0.1"
3709-
37103682
validate-npm-package-license@^3.0.1:
37113683
version "3.0.3"
37123684
resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz#81643bcbef1bdfecd4623793dc4648948ba98338"

0 commit comments

Comments
 (0)