@wagq/wa-cli 0.6.38 → 0.6.40

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/config/command.js CHANGED
@@ -151,6 +151,9 @@ const command = [
151
151
  alias: "chd",
152
152
  description: "包版本管理",
153
153
  action: changesetDoc,
154
+ options: {
155
+ registry: "-r, --registry <registry>",
156
+ },
154
157
  },
155
158
  {
156
159
  name: "vsSetting",
@@ -1,6 +1,7 @@
1
1
  const { execSync } = require("child_process");
2
2
 
3
- const changesetDoc = (mode) => {
3
+ const changesetDoc = (mode, argv) => {
4
+ const registry = argv.registry ?? "https://registry.npmjs.org/";
4
5
  let bins = [];
5
6
  switch (mode) {
6
7
  case "dev":
@@ -31,11 +32,13 @@ const changesetDoc = (mode) => {
31
32
  break;
32
33
  case "pub":
33
34
  bins.push("echo 准备发布正式包 @author: wa 1224362143@qq.com");
34
- bins.push("npx pnpm build && changeset publish");
35
+ bins.push(`npx pnpm build && changeset publish --registry=${registry}`);
35
36
  break;
36
37
  case "pubBeta":
37
38
  bins.push("echo 准备发布beta包 @author: wa 1224362143@qq.com");
38
- bins.push("npx pnpm build && changeset publish --tag beta");
39
+ bins.push(
40
+ `npx pnpm build && changeset publish --tag beta --registry=${registry}`,
41
+ );
39
42
  break;
40
43
  default:
41
44
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wagq/wa-cli",
3
- "version": "0.6.38",
3
+ "version": "0.6.40",
4
4
  "description": "wa的脚手架",
5
5
  "main": "index.js",
6
6
  "scripts": {