|
3 | 3 | "version": "2.3.1", |
4 | 4 | "description": "A react component toolset for managing animations", |
5 | 5 | "main": "lib/index.js", |
| 6 | + "module": "es/index.js", |
6 | 7 | "scripts": { |
7 | 8 | "test": "npm run lint && npm run testonly", |
8 | 9 | "testonly": "jest --verbose", |
9 | 10 | "tdd": "jest --watch", |
10 | 11 | "commitmsg": "commitlint -e $GIT_PARAMS", |
11 | | - "build": "rimraf lib && babel src --out-dir lib && npm run build:dist && cp README.md LICENSE ./lib", |
| 12 | + "prebuild": "rimraf lib es dist", |
| 13 | + "build": "npm run build:cjs && npm run build:es && npm run build:dist", |
| 14 | + "build:es": "cross-env BABEL_ENV=es babel src --out-dir es", |
| 15 | + "build:cjs": "cross-env BABEL_ENV=cjs babel src --out-dir lib", |
| 16 | + "build:dist": "webpack && NODE_ENV=production webpack -p", |
12 | 17 | "build:docs": "npm -C www run build", |
13 | | - "build:dist": "rimraf lib/dist && webpack && NODE_ENV=production webpack -p", |
14 | 18 | "bootstrap": "yarn && yarn --cwd www", |
15 | 19 | "lint": "eslint src test", |
| 20 | + "prerelease": "cherry-pick", |
16 | 21 | "release": "release", |
17 | | - "release:next": "release --preid beta --tag next", |
| 22 | + "release:next": "npm run release -- --preid beta --tag next", |
| 23 | + "postrelease": "cherry-pick clean", |
18 | 24 | "deploy-docs": "npm -C www run deploy", |
19 | 25 | "start": "npm -C www run develop", |
20 | 26 | "storybook": "start-storybook -p 6006", |
|
83 | 89 | "babel-preset-latest": "^6.24.0", |
84 | 90 | "babel-preset-react": "^6.23.0", |
85 | 91 | "babel-preset-stage-2": "^6.18.0", |
| 92 | + "cherry-pick": "^0.2.0", |
| 93 | + "cross-env": "^5.0.1", |
86 | 94 | "enzyme": "^3.0.0", |
87 | 95 | "enzyme-adapter-react-16": "^1.0.0", |
88 | 96 | "eslint": "^3.17.1", |
|
100 | 108 | "release-script": "^1.0.2", |
101 | 109 | "rimraf": "^2.6.1", |
102 | 110 | "semantic-release": "^15.1.7", |
103 | | - "semantic-release-alt-publish-dir": "^2.1.1", |
104 | 111 | "sinon": "^2.1.0", |
105 | 112 | "travis-deploy-once": "^4.4.1", |
106 | 113 | "webpack": "^3.6.0", |
|
110 | 117 | "pkgRoot": "lib", |
111 | 118 | "verifyConditions": [ |
112 | 119 | "@semantic-release/changelog", |
113 | | - "semantic-release-alt-publish-dir", |
114 | 120 | "@semantic-release/git", |
115 | 121 | "@semantic-release/github" |
116 | 122 | ], |
117 | 123 | "prepare": [ |
118 | 124 | "@semantic-release/changelog", |
119 | | - "semantic-release-alt-publish-dir", |
120 | 125 | "@semantic-release/npm", |
121 | 126 | "@semantic-release/git" |
122 | 127 | ] |
|
0 commit comments