@blocklet/component-studio-cli 0.5.2 → 0.5.4

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.
@@ -9,7 +9,7 @@ import { readdir, mkdir, readFile, writeFile } from 'node:fs/promises';
9
9
  import { join, resolve, dirname, basename, relative } from 'node:path';
10
10
  import ora from 'ora';
11
11
  import os from 'os';
12
- const workspaceVersion = '0.1.0';
12
+ const workspaceVersion = '0.1.1';
13
13
  const METADATA_FILE_NAME = '@metadata.json';
14
14
  // 获取CLI内置的workspace模板路径
15
15
  export function getWorkspaceTemplatePath() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/component-studio-cli",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "CLI for Component Studio",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -22,9 +22,19 @@ This is a basic component studio project created with Component Studio.
22
22
  Start development server:
23
23
 
24
24
  ```bash
25
+ blocklet component dev
26
+
27
+ # or
28
+
25
29
  pnpm run dev
26
30
  ```
27
31
 
32
+ Update workspace and project dependencies:
33
+
34
+ ```bash
35
+ blocklet component update
36
+ ```
37
+
28
38
  ## License
29
39
 
30
40
  MIT
@@ -7,7 +7,7 @@
7
7
  "scripts": {
8
8
  "start": "blocklet component dev",
9
9
  "dev": "blocklet component dev",
10
- "update:deps": "npx -y taze -r -n '/arcblock|ocap|abtnode|blocklet|did-connect|did-comment|nedb/' -w -f && pnpm install && pnpm run deduplicate",
10
+ "update:deps": "npx -y taze -f -r -w -n '/arcblock|ocap|abtnode|blocklet|did-connect|did-comment|nedb/' latest && pnpm install && pnpm run deduplicate",
11
11
  "deduplicate": "pnpm dedupe"
12
12
  },
13
13
  "dependencies": {},
@@ -37,9 +37,19 @@ This is a professional component project created with Component Studio. This tem
37
37
  Start development server:
38
38
 
39
39
  ```bash
40
+ blocklet component dev
41
+
42
+ # or
43
+
40
44
  pnpm run dev
41
45
  ```
42
46
 
47
+ Update workspace and project dependencies:
48
+
49
+ ```bash
50
+ blocklet component update
51
+ ```
52
+
43
53
  ### Publish Component
44
54
 
45
55
  1. Update version number
@@ -18,7 +18,7 @@
18
18
  "format": "biome format --write .",
19
19
  "prepare": "npx -y simple-git-hooks",
20
20
  "bump-version": "zx --quiet scripts/bump-version.mjs",
21
- "update:deps": "npx -y taze -r -n '/arcblock|ocap|abtnode|blocklet|did-connect|did-comment|nedb/' -w -f && pnpm install && pnpm run deduplicate",
21
+ "update:deps": "npx -y taze -f -r -w -n '/arcblock|ocap|abtnode|blocklet|did-connect|did-comment|nedb/' latest && pnpm install && pnpm run deduplicate",
22
22
  "deduplicate": "pnpm dedupe"
23
23
  },
24
24
  "lint-staged": {
@@ -19,9 +19,19 @@ This is a minimal component studio project created with Component Studio.
19
19
  Start development server:
20
20
 
21
21
  ```bash
22
+ blocklet component dev
23
+
24
+ # or
25
+
22
26
  pnpm run dev
23
27
  ```
24
28
 
29
+ Update workspace and project dependencies:
30
+
31
+ ```bash
32
+ blocklet component update
33
+ ```
34
+
25
35
  ## License
26
36
 
27
37
  MIT
@@ -7,7 +7,7 @@
7
7
  "scripts": {
8
8
  "start": "blocklet component dev",
9
9
  "dev": "blocklet component dev",
10
- "update:deps": "npx -y taze -r -n '/arcblock|ocap|abtnode|blocklet|did-connect|did-comment|nedb/' -w -f && pnpm install && pnpm run deduplicate",
10
+ "update:deps": "npx -y taze -f -r -w -n '/arcblock|ocap|abtnode|blocklet|did-connect|did-comment|nedb/' latest && pnpm install && pnpm run deduplicate",
11
11
  "deduplicate": "pnpm dedupe"
12
12
  },
13
13
  "dependencies": {},
@@ -27,7 +27,7 @@
27
27
  "bump-version": "zx --quiet scripts/bump-version.mjs",
28
28
  "dev-front": "vite serve .",
29
29
  "build-lib": "node -r dotenv-flow/config -e \"require('@blocklet/pages-kit-block-studio/build-lib')\"",
30
- "update:deps": "npx -y taze -r -n '/arcblock|ocap|abtnode|blocklet|did-connect|did-comment|nedb/' -w -f && pnpm install && pnpm run deduplicate",
30
+ "update:deps": "npx -y taze -f -r -w -n '/arcblock|ocap|abtnode|blocklet|did-connect|did-comment|nedb/' latest && pnpm install && pnpm run deduplicate",
31
31
  "deduplicate": "pnpm dedupe",
32
32
  "preinstall": "npx only-allow pnpm",
33
33
  "postinstall": "node scripts/init-component-studio.mjs"