From 396b38512c8c1b9cea7e217910e7cad8730fd5da Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 4 May 2017 16:50:47 +0100 Subject: [PATCH] Remove babelcheck Nobody is likley to be upgrading from babel 5 any more, so this can go away now. --- package.json | 4 ++-- scripts/babelcheck.js | 22 ---------------------- 2 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 scripts/babelcheck.js diff --git a/package.json b/package.json index 95a82bbb73..836f7fd353 100644 --- a/package.json +++ b/package.json @@ -32,8 +32,8 @@ }, "scripts": { "reskindex": "scripts/reskindex.js -h header", - "build": "node scripts/babelcheck.js && babel src -d lib --source-maps", - "start": "node scripts/babelcheck.js && babel src -w -d lib --source-maps", + "build": "babel src -d lib --source-maps", + "start": "babel src -w -d lib --source-maps", "lint": "eslint src/", "lintall": "eslint src/ test/", "clean": "rimraf lib", diff --git a/scripts/babelcheck.js b/scripts/babelcheck.js deleted file mode 100644 index 14e4a28a70..0000000000 --- a/scripts/babelcheck.js +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env node - -var exec = require('child_process').exec; - -// Makes sure the babel executable in the path is babel 6 (or greater), not -// babel 5, which it is if you upgrade from an older version of react-sdk and -// run 'npm install' since the package has changed to babel-cli, so 'babel' -// remains installed and the executable in node_modules/.bin remains as babel -// 5. - -exec("babel -V", function (error, stdout, stderr) { - if ((error && error.code) || parseInt(stdout.substr(0,1), 10) < 6) { - console.log("\033[31m\033[1m"+ - '*****************************************\n'+ - '* matrix-react-sdk has moved to babel 6 *\n'+ - '* Please "rm -rf node_modules && npm i" *\n'+ - '* then restore links as appropriate *\n'+ - '*****************************************\n'+ - "\033[91m"); - process.exit(1); - } -});