Skip to content

Commit

Permalink
build: add release script (#37)
Browse files Browse the repository at this point in the history
* build: remove prepare script

* build: add release script
  • Loading branch information
ambar authored and xiaoyuhen committed Mar 26, 2019
1 parent b05e4b2 commit 783db04
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"packages/*"
],
"version": "1.1.4",
"conventionalCommits": true,
"npmClient": "yarn",
"useWorkspaces": true
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"build:lib": "lerna run build --parallel --ignore example --ignore griffith-standalone",
"build:standalone": "lerna run --scope griffith-standalone build",
"build": "yarn build:lib && yarn build:standalone",
"release": "yarn build && lerna publish",
"start": "yarn workspace example run start"
},
"devDependencies": {
Expand Down
4 changes: 1 addition & 3 deletions packages/griffith-hls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@
"license": "MIT",
"files": [
"cjs",
"esm",
"src"
"esm"
],
"source": "src/index.js",
"main": "cjs/index.js",
"module": "esm/index.js",
"sideEffects": false,
"scripts": {
"prepare": "npm run build",
"prebuild": "rm -rf esm cjs",
"build": "rollup -c ../../rollup.config.js"
},
Expand Down
1 change: 0 additions & 1 deletion packages/griffith-message/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"types": "index.d.ts",
"sideEffects": false,
"scripts": {
"prepare": "npm run build",
"prebuild": "rm -rf esm cjs",
"build": "rollup -c ../../rollup.config.js"
}
Expand Down
1 change: 0 additions & 1 deletion packages/griffith-mp4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"module": "esm/index.js",
"sideEffects": false,
"scripts": {
"prepare": "npm run build",
"prebuild": "rm -rf esm cjs",
"build": "rollup -c ../../rollup.config.js"
},
Expand Down
1 change: 0 additions & 1 deletion packages/griffith-standalone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"source": "src/index.js",
"main": "dist/index.umd.min.js",
"scripts": {
"prepare": "npm run build",
"prebuild": "rm -rf dist",
"build": "webpack -p"
},
Expand Down
1 change: 0 additions & 1 deletion packages/griffith-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"module": "esm/index.js",
"sideEffects": false,
"scripts": {
"prepare": "npm run build",
"prebuild": "rm -rf esm cjs",
"build": "rollup -c ../../rollup.config.js"
}
Expand Down
1 change: 0 additions & 1 deletion packages/griffith/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"sideEffects": false,
"types": "index.d.ts",
"scripts": {
"prepare": "npm run build",
"prebuild": "rm -rf esm cjs",
"build": "rollup -c ../../rollup.config.js"
},
Expand Down

0 comments on commit 783db04

Please sign in to comment.