Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
chore: apply npm run semantic-release-prepare
Browse files Browse the repository at this point in the history
Extra step:
- `semantic-release-cli setup`
- apply patch: alexjoverm/typescript-library-starter#266
- `npx husky-upgrade`
  • Loading branch information
DrSensor committed Jan 19, 2019
1 parent b475ef4 commit 1ded070
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "rollup-plugin-xs",
"version": "0.0.0",
"version": "0.0.0-development",
"description": "",
"keywords": [],
"main": "dist/rollup-plugin-xs.umd.js",
Expand All @@ -12,7 +12,7 @@
"author": "Fahmi Akbar Wildana <f.a.wildana@gmail.com>",
"repository": {
"type": "git",
"url": ""
"url": "https://github.com/DrSensor/rollup-plugin-xs"
},
"license": "MIT",
"engines": {
Expand All @@ -31,7 +31,6 @@
"commit": "git-cz",
"semantic-release": "semantic-release",
"semantic-release-prepare": "ts-node tools/semantic-release-prepare",
"precommit": "lint-staged",
"travis-deploy-once": "travis-deploy-once"
},
"lint-staged": {
Expand Down Expand Up @@ -106,7 +105,7 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-typescript2": "^0.18.0",
"semantic-release": "^15.9.16",
"semantic-release": "^15.13.3",
"ts-jest": "^23.10.2",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
Expand All @@ -115,5 +114,12 @@
"typedoc": "^0.12.0",
"typescript": "^3.0.3",
"travis-deploy-once": "^5.0.9"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged",
"pre-push": "npm run test:prod && npm run build"
}
}
}
2 changes: 1 addition & 1 deletion tools/semantic-release-prepare.ts
Expand Up @@ -16,7 +16,7 @@ writeFileSync(
)

// Call husky to set up the hooks
fork(path.resolve(__dirname, "..", "node_modules", "husky", "bin", "install"))
fork(path.resolve(__dirname, "..", "node_modules", "husky", "lib", "installer", 'bin'), ['install'])

console.log()
console.log(colors.green("Done!!"))
Expand Down

0 comments on commit 1ded070

Please sign in to comment.