Skip to content

Commit

Permalink
fix(shipjs): major update
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Jun 10, 2020
1 parent 60192b0 commit 64fd3ce
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"version": "4.0.4",
"description": "textlint rule preset for japanese.",
"main": "lib/textlint-rule-preset-japanese.js",
"files": ["lib"],
"files": [
"lib"
],
"directories": {
"test": "test"
},
Expand All @@ -23,7 +25,12 @@
"release:prepare": "shipjs prepare",
"release:trigger": "shipjs trigger"
},
"keywords": ["preset", "rule", "textlint", "textlintrule"],
"keywords": [
"preset",
"rule",
"textlint",
"textlintrule"
],
"dependencies": {
"@textlint-rule/textlint-rule-no-invalid-control-character": "^1.2.0",
"@textlint/module-interop": "^1.0.1",
Expand All @@ -39,6 +46,7 @@
"textlint-rule-sentence-length": "^2.1.1"
},
"devDependencies": {
"semver": "^7.3.2",
"shipjs": "0.19.0"
}
}
9 changes: 8 additions & 1 deletion ship.config.js
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
module.exports = { buildCommand: () => null };
const semver = require("semver");
module.exports = {
buildCommand: () => null,
getNextVersion: ({ revisionRange, commitTitles, commitBodies, currentVersion, dir }) => {
// always major update
return semver.inc(currentVersion, "major");
}
};
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2414,6 +2414,11 @@ [email protected], semver@^6.0.0:
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==

semver@^7.3.2:
version "7.3.2"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938"
integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==

sentence-case@^3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/sentence-case/-/sentence-case-3.0.3.tgz#47576e4adff7abf42c63c815b0543c9d2f85a930"
Expand Down

0 comments on commit 64fd3ce

Please sign in to comment.