aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2018-11-28 13:03:28 +0200
committerXhmikosR <[email protected]>2018-11-28 14:33:29 +0200
commit05dfae314644e108b8d7686fb4249ff90b907672 (patch)
tree36b0eec3911691f7cdef299b843a0b82be649bef
parent11da1601140174e4fa4e0e25e7f66fc21c08e927 (diff)
downloadbootstrap-05dfae314644e108b8d7686fb4249ff90b907672.tar.xz
bootstrap-05dfae314644e108b8d7686fb4249ff90b907672.zip
Revert "build/*.js: set `sourceType` to module."
This reverts commit b442ce3130808dc28fe897f610bef1e9ab9c792f.
-rw-r--r--build/.eslintrc.json2
-rw-r--r--build/banner.js2
-rw-r--r--build/build-plugins.js2
-rwxr-xr-xbuild/change-version.js2
-rw-r--r--build/generate-sri.js2
-rw-r--r--build/postcss.config.js2
-rw-r--r--build/rollup.config.js2
-rw-r--r--build/vnu-jar.js2
8 files changed, 15 insertions, 1 deletions
diff --git a/build/.eslintrc.json b/build/.eslintrc.json
index 220b6e1e5..76e7f37b6 100644
--- a/build/.eslintrc.json
+++ b/build/.eslintrc.json
@@ -4,7 +4,7 @@
"node": true
},
"parserOptions": {
- "sourceType": "module"
+ "sourceType": "script"
},
"extends": "../.eslintrc.json",
"rules": {
diff --git a/build/banner.js b/build/banner.js
index 93935bfcb..915117837 100644
--- a/build/banner.js
+++ b/build/banner.js
@@ -1,3 +1,5 @@
+'use strict'
+
const path = require('path')
const pkg = require(path.resolve(__dirname, '../package.json'))
const year = new Date().getFullYear()
diff --git a/build/build-plugins.js b/build/build-plugins.js
index ec337f03e..3240ee5d0 100644
--- a/build/build-plugins.js
+++ b/build/build-plugins.js
@@ -5,6 +5,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
+'use strict'
+
const path = require('path')
const rollup = require('rollup')
const babel = require('rollup-plugin-babel')
diff --git a/build/change-version.js b/build/change-version.js
index 192c62710..7102dc083 100755
--- a/build/change-version.js
+++ b/build/change-version.js
@@ -7,6 +7,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
+'use strict'
+
const fs = require('fs')
const path = require('path')
const sh = require('shelljs')
diff --git a/build/generate-sri.js b/build/generate-sri.js
index 692909770..cd80ce719 100644
--- a/build/generate-sri.js
+++ b/build/generate-sri.js
@@ -10,6 +10,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
+'use strict'
+
const crypto = require('crypto')
const fs = require('fs')
const path = require('path')
diff --git a/build/postcss.config.js b/build/postcss.config.js
index 7394ba382..157291ffd 100644
--- a/build/postcss.config.js
+++ b/build/postcss.config.js
@@ -1,3 +1,5 @@
+'use strict'
+
module.exports = (ctx) => ({
map: ctx.file.dirname.includes('examples') ? false : {
inline: false,
diff --git a/build/rollup.config.js b/build/rollup.config.js
index c8acf7a9e..e81a07ef5 100644
--- a/build/rollup.config.js
+++ b/build/rollup.config.js
@@ -1,3 +1,5 @@
+'use strict'
+
const path = require('path')
const babel = require('rollup-plugin-babel')
const resolve = require('rollup-plugin-node-resolve')
diff --git a/build/vnu-jar.js b/build/vnu-jar.js
index 362dd3c30..b990ba7b7 100644
--- a/build/vnu-jar.js
+++ b/build/vnu-jar.js
@@ -7,6 +7,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
+'use strict'
+
const childProcess = require('child_process')
const vnu = require('vnu-jar')