Skip to content

Commit b16f46b

Browse files
committed
Fixed Travis config
Signed-off-by: Jaid <jaid.jsx@gmail.com>
1 parent 590f987 commit b16f46b

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.babelrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const {configure} = require("babel-preset-jaid")
1+
const configure = require("babel-preset-jaid")
22

33
module.exports = api => configure(api)

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- npm run build:prod
1010
- export PKG_NAME=$(node -e "console.log(require('./dist/package/production/package').name)")
1111
- export PKG_VERSION=$(node -e "console.log(require('./dist/package/production/package').version)")
12-
- if [[ -d dist/homepage/$PKG_NAME/$PKG_VERSION ]]; then; npm run test:coverage && cp -r dist/homepage/$PKG_NAME/$PKG_VERSION page && cp -r dist/jest/coverage/lcov-report page/coverage; fi
12+
- "[[ -d dist/homepage/$PKG_NAME/$PKG_VERSION ]] && npm run test:coverage && cp -r dist/homepage/$PKG_NAME/$PKG_VERSION page && cp -r dist/jest/coverage/lcov-report page/coverage || true"
1313
- cd dist/package/production
1414
- zip -9 --recurse-paths ../../${PKG_NAME}_v$PKG_VERSION.zip **
1515
- zip -9 --recurse-paths ../../${PKG_NAME}_v${PKG_VERSION}_min.zip ** --exclude \*.d.ts --exclude readme.* --exclude \*.map

package-lock.json

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"devDependencies": {
2424
"ajv": "^6.9.1",
2525
"babel-jest": "^24.1.0",
26+
"babel-plugin-pkg": "^1.0.1",
2627
"babel-preset-jaid": "^4.3.0",
2728
"caniuse-lite": "^1.0.30000938",
2829
"cross-env": "^5.2.0",

0 commit comments

Comments
 (0)