@varlet/release 0.3.1-alpha.1730553381783 → 0.3.2

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/bin/index.js CHANGED
@@ -1,12 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { release, publish, changelog, commitLint } from '../dist/index.js'
3
3
  import { Command } from 'commander'
4
- import { fileURLToPath } from 'url'
5
4
  import fse from 'fs-extra'
6
5
 
7
6
  const program = new Command()
8
7
 
9
- const packageJson = fse.readJSONSync(fileURLToPath(new URL('../package.json', import.meta.url)))
8
+ const packageJson = fse.readJSONSync(new URL('../package.json', import.meta.url))
10
9
 
11
10
  program.version(packageJson.version)
12
11
 
@@ -42,6 +41,6 @@ program
42
41
  .option('-e --errorMessage <message>', 'Validation failed to display error messages')
43
42
  .option('-w --warningMessage <message>', 'Validation failed to display warning messages')
44
43
  .description('Lint commit message')
45
- .action(async (option) => commitLint(option))
44
+ .action((option) => commitLint(option))
46
45
 
47
46
  program.parse()
package/dist/index.cjs CHANGED
@@ -241,7 +241,7 @@ async function release(options) {
241
241
  if (!await confirmRefs(options.remote)) {
242
242
  return;
243
243
  }
244
- if (!await confirmRegistry()) {
244
+ if (!options.skipNpmPublish && !await confirmRegistry()) {
245
245
  return;
246
246
  }
247
247
  const { isPreRelease, expectVersion } = await getReleaseVersion(currentVersion);
package/dist/index.js CHANGED
@@ -197,7 +197,7 @@ async function release(options) {
197
197
  if (!await confirmRefs(options.remote)) {
198
198
  return;
199
199
  }
200
- if (!await confirmRegistry()) {
200
+ if (!options.skipNpmPublish && !await confirmRegistry()) {
201
201
  return;
202
202
  }
203
203
  const { isPreRelease, expectVersion } = await getReleaseVersion(currentVersion);
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@varlet/release",
3
3
  "type": "module",
4
- "version": "0.3.1-alpha.1730553381783",
5
- "description": "release all packages and generate changelogs",
4
+ "version": "0.3.2",
5
+ "description": "publish all packages, generate changelogs and check commit messages",
6
6
  "keywords": [
7
7
  "varlet",
8
8
  "release",
9
- "changelog"
9
+ "changelog",
10
+ "commit-lint"
10
11
  ],
11
12
  "author": "clencat <2091927351@qq.com>",
12
13
  "license": "MIT",
@@ -43,7 +44,7 @@
43
44
  },
44
45
  "engines": {
45
46
  "node": ">=16.0.0",
46
- "pnpm": ">=8.0"
47
+ "pnpm": ">=9.0"
47
48
  },
48
49
  "devDependencies": {
49
50
  "@types/conventional-changelog": "^3.1.5",
@@ -54,6 +55,7 @@
54
55
  "eslint": "^8.53.0",
55
56
  "lint-staged": "^15.2.0",
56
57
  "prettier": "^3.1.0",
58
+ "rimraf": "^6.0.1",
57
59
  "simple-git-hooks": "^2.9.0",
58
60
  "tsup": "^8.3.0",
59
61
  "typescript": "^5.2.2"
@@ -75,6 +77,7 @@
75
77
  "release": "pnpm build && node bin/index.js release -c",
76
78
  "lint": "eslint . --ext .ts,.js",
77
79
  "format": "prettier --write .",
80
+ "clean": "rimraf node_modules dist",
78
81
  "commit-lint": "node bin/index.js commit-lint"
79
82
  }
80
83
  }