@varlet/release 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -320,6 +320,10 @@ function commitLint(options) {
320
320
  errorMessage = ERROR_MESSAGE,
321
321
  warningMessage = WARNING_MESSAGE
322
322
  } = options;
323
+ if (!commitMessagePath) {
324
+ logger_default.error("commitMessagePath is required");
325
+ process.exit(1);
326
+ }
323
327
  const commitMessage = getCommitMessage(commitMessagePath);
324
328
  const isValidCommitMessage = new RegExp(commitMessageRe).test(commitMessage);
325
329
  if (!isVersionCommitMessage(commitMessage) && !isValidCommitMessage) {
package/dist/index.js CHANGED
@@ -277,6 +277,10 @@ function commitLint(options) {
277
277
  errorMessage = ERROR_MESSAGE,
278
278
  warningMessage = WARNING_MESSAGE
279
279
  } = options;
280
+ if (!commitMessagePath) {
281
+ logger_default.error("commitMessagePath is required");
282
+ process.exit(1);
283
+ }
280
284
  const commitMessage = getCommitMessage(commitMessagePath);
281
285
  const isValidCommitMessage = new RegExp(commitMessageRe).test(commitMessage);
282
286
  if (!isVersionCommitMessage(commitMessage) && !isValidCommitMessage) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@varlet/release",
3
3
  "type": "module",
4
- "version": "0.2.8",
4
+ "version": "0.2.9",
5
5
  "description": "release all packages and generate changelogs",
6
6
  "keywords": [
7
7
  "varlet",
@@ -39,7 +39,6 @@
39
39
  "*.{ts,tsx,js,vue,less}": "prettier --write",
40
40
  "*.{ts,tsx,js,vue}": "eslint --fix"
41
41
  },
42
- "packageManager": "pnpm@8.7.5",
43
42
  "engines": {
44
43
  "node": ">=16.0.0",
45
44
  "pnpm": ">=8.0"