Skip to content

Commit 2266a33

Browse files
committed
chore: Run vendoring task before normal build process
1 parent 3a488aa commit 2266a33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"license": "MIT",
1212
"scripts": {
1313
"clean": "rimraf dist && rimraf browser-dist && rimraf coverage && rimraf out",
14-
"build": "npm run clean && babel lib --out-dir dist && npm run build:optimize",
14+
"build": "npm run clean && npm run vendor && babel lib --out-dir dist && npm run build:optimize",
1515
"build:optimize": "webpack -p && ccjs browser-dist/contentful.js --compilation_level=ADVANCED_OPTIMIZATIONS > browser-dist/contentful.min.js",
1616
"docs:build": "jsdoc -r -c jsdoc.json dist",
1717
"docs:dev": "npm run build && npm run docs:build",
@@ -24,6 +24,7 @@
2424
"test:integration": "babel-node ./test/integration/tests.js",
2525
"test:browser-local": "BABEL_ENV=test ./node_modules/.bin/karma start karma.conf.local.js",
2626
"test:browser-remote": "BABEL_ENV=test ./node_modules/.bin/karma start karma.conf.saucelabs.js",
27+
"vendor": "npm run vendor:node && npm run vendor:browser",
2728
"vendor:node": "rimraf vendor-node && mkdirp vendor-node && babel node_modules/axios/lib/ --out-dir vendor-node/",
2829
"vendor:browser": "rimraf vendor-browser && mkdirp vendor-browser && babel node_modules/axios/dist/axios.js --out-file vendor-browser/axios.js",
2930
"browser-coverage": "npm run test:cover && opener coverage/lcov-report/index.html",

0 commit comments

Comments
 (0)