|
22 | 22 | "build": "rollup -c", |
23 | 23 | "dry-run": "npm publish --dry-run", |
24 | 24 | "prepare": "npm run build", |
| 25 | + "semantic-release": "semantic-release", |
25 | 26 | "test": "mocha tests/test**.*js -u tdd --experimental-json-modules" |
26 | 27 | }, |
27 | 28 | "type": "module", |
|
52 | 53 | "msgpackr-extract": "^1.0.14" |
53 | 54 | }, |
54 | 55 | "devDependencies": { |
| 56 | + "@commitlint/cli": "^8.3.5", |
55 | 57 | "@rollup/plugin-json": "^4.1.0", |
| 58 | + "@commitlint/config-conventional": "^8.3.4", |
| 59 | + "@semantic-release/changelog": "^5.0.1", |
| 60 | + "@semantic-release/commit-analyzer": "^8.0.1", |
| 61 | + "@semantic-release/exec": "^5.0.0", |
| 62 | + "@semantic-release/git": "^9.0.1", |
| 63 | + "@semantic-release/github": "^7.2.0", |
| 64 | + "@semantic-release/npm": "^7.0.9", |
| 65 | + "@semantic-release/release-notes-generator": "^9.0.3", |
56 | 66 | "@types/node": "latest", |
57 | 67 | "async": "^3", |
58 | 68 | "chai": "^4.3.4", |
| 69 | + "commitizen": "^4.2.4", |
59 | 70 | "esm": "^3.2.25", |
| 71 | + "husky": "^3.1.0", |
60 | 72 | "mocha": "^8.1.3", |
61 | 73 | "rollup": "^1.20.3", |
62 | | - "rollup-plugin-babel-minify": "^9.0.0" |
| 74 | + "rollup-plugin-babel-minify": "^9.0.0", |
| 75 | + "semantic-release": "^17.4.7" |
| 76 | + }, |
| 77 | + "config": { |
| 78 | + "commitizen": { |
| 79 | + "path": "node_modules/cz-conventional-changelog" |
| 80 | + } |
| 81 | + }, |
| 82 | + "commitlint": { |
| 83 | + "extends": [ |
| 84 | + "@commitlint/config-conventional" |
| 85 | + ] |
| 86 | + }, |
| 87 | + "husky": { |
| 88 | + "hooks": { |
| 89 | + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" |
| 90 | + } |
| 91 | + }, |
| 92 | + "release": { |
| 93 | + "plugins": [ |
| 94 | + "@semantic-release/commit-analyzer", |
| 95 | + "@semantic-release/release-notes-generator", |
| 96 | + "@semantic-release/changelog", |
| 97 | + [ |
| 98 | + "@semantic-release/npm", |
| 99 | + { |
| 100 | + "npmPublish": true |
| 101 | + } |
| 102 | + ], |
| 103 | + "@semantic-release/github", |
| 104 | + [ |
| 105 | + "@semantic-release/git", |
| 106 | + { |
| 107 | + "assets": [ |
| 108 | + "package.json" |
| 109 | + ], |
| 110 | + "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" |
| 111 | + } |
| 112 | + ] |
| 113 | + ] |
63 | 114 | } |
64 | 115 | } |
0 commit comments