diff options
author | XhmikosR <xhmikosr@gmail.com> | 2018-11-28 14:03:28 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2018-11-28 15:33:29 +0300 |
commit | 05dfae314644e108b8d7686fb4249ff90b907672 (patch) | |
tree | 36b0eec3911691f7cdef299b843a0b82be649bef /build | |
parent | 11da1601140174e4fa4e0e25e7f66fc21c08e927 (diff) |
Revert "build/*.js: set `sourceType` to module."
This reverts commit b442ce3130808dc28fe897f610bef1e9ab9c792f.
Diffstat (limited to 'build')
-rw-r--r-- | build/.eslintrc.json | 2 | ||||
-rw-r--r-- | build/banner.js | 2 | ||||
-rw-r--r-- | build/build-plugins.js | 2 | ||||
-rwxr-xr-x | build/change-version.js | 2 | ||||
-rw-r--r-- | build/generate-sri.js | 2 | ||||
-rw-r--r-- | build/postcss.config.js | 2 | ||||
-rw-r--r-- | build/rollup.config.js | 2 | ||||
-rw-r--r-- | build/vnu-jar.js | 2 |
8 files changed, 15 insertions, 1 deletions
diff --git a/build/.eslintrc.json b/build/.eslintrc.json index 220b6e1e56..76e7f37b63 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 93935bfcb9..9151178378 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 ec337f03ee..3240ee5d05 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 192c627101..7102dc0830 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 6929097703..cd80ce7199 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 7394ba382e..157291ffd2 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 c8acf7a9e9..e81a07ef58 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 362dd3c30d..b990ba7b78 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') |