Skip to content

Commit d57f8fd

Browse files
committed
Package file update & test case for user agent modified
1 parent 637467e commit d57f8fd

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@
1717
"type": "module",
1818
"scripts": {
1919
"clean": "rimraf coverage && rimraf dist",
20-
"build": "npm run clean && npm run build:es5 && npm run build:es-modules",
20+
"build": "npm run clean && npm run build:es5 && npm run build:es-modules && npm run buildall",
2121
"build:es5": "BABEL_ENV=es5 babel lib -d dist/es5",
2222
"build:es-modules": "BABEL_ENV=es-modules babel lib -d dist/es-modules",
23+
"buildall": "npm run buildnode && npm run buildweb && npm run buildreactnative && npm run buildnativescript",
24+
"buildnode": "webpack --config webpack/webpack.node.js --mode production",
25+
"buildreactnative": "webpack --config webpack/webpack.react-native.js --mode production",
26+
"buildnativescript": "webpack --config webpack/webpack.nativescript.js --mode production",
27+
"buildweb": "webpack --config webpack/webpack.web.js --mode production",
2328
"test": "BABEL_ENV=test nyc --reporter=html --reporter=text mocha --require @babel/register ./test/test.js -t 30000 --reporter mochawesome --require babel-polyfill",
2429
"test:debug": "BABEL_ENV=test mocha debug --require @babel/register ./test",
2530
"lint": "eslint lib test",
2631
"format": "eslint --fix lib test",
2732
"pretest": "rimraf coverage && npm run lint",
2833
"precommit": "npm run lint",
2934
"prepush": "npm run test:unit",
30-
"generate:docs": "node_modules/.bin/jsdoc --configure .jsdoc.json --verbose",
31-
"buildall": "npm run buildnode&npm run buildweb&npm run buildreactnative&npm run buildnativescript",
32-
"buildnode": "webpack --config webpack/webpack.node.js --mode production",
33-
"buildreactnative": "webpack --config webpack/webpack.react-native.js --mode production",
34-
"buildnativescript": "webpack --config webpack/webpack.nativescript.js --mode production",
35-
"buildweb": "webpack --config webpack/webpack.web.js --mode production"
35+
"generate:docs": "node_modules/.bin/jsdoc --configure .jsdoc.json --verbose"
3636
},
3737
"engines": {
3838
"node": ">=8.0.0 <11.0.0"

0 commit comments

Comments
 (0)