@blocklet/component-studio-cli 0.4.142 → 0.4.144
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/commands/dev.js
CHANGED
|
@@ -15,6 +15,8 @@ async function createDevServer(projectPath, _options) {
|
|
|
15
15
|
if (!existsSync(workspacePath)) {
|
|
16
16
|
const workspaceTemplatePath = getWorkspaceTemplatePath();
|
|
17
17
|
await fs.copy(workspaceTemplatePath, workspacePath);
|
|
18
|
+
// 修改 workspace 目录中的 .npmrc_example 文件 为 .npmrc,因为 npm 包默认会把 .npmrc 忽略
|
|
19
|
+
await fs.rename(join(workspacePath, '.npmrc_example'), join(workspacePath, '.npmrc'));
|
|
18
20
|
workspaceSpinner.succeed(chalk.green(`Workspace created successfully! ${workspacePathText}`));
|
|
19
21
|
}
|
|
20
22
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/component-studio-cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.144",
|
|
4
4
|
"description": "CLI for Component Studio",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"type": "module",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|
|
17
|
-
"workspace",
|
|
18
17
|
"LICENSE",
|
|
19
18
|
"README.md",
|
|
20
19
|
"CHANGELOG.md",
|
|
@@ -37,11 +36,11 @@
|
|
|
37
36
|
"glob": "^11.0.1",
|
|
38
37
|
"gradient-string": "^3.0.0",
|
|
39
38
|
"inquirer": "^12.5.2",
|
|
39
|
+
"lodash-es": "^4.17.21",
|
|
40
|
+
"node-fetch": "^2.7.0",
|
|
40
41
|
"ora": "^8.2.0",
|
|
41
42
|
"pretty-error": "^4.0.0",
|
|
42
|
-
"tar": "^7.4.3"
|
|
43
|
-
"node-fetch": "^2.7.0",
|
|
44
|
-
"lodash-es": "^4.17.21"
|
|
43
|
+
"tar": "^7.4.3"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|
|
47
46
|
"@types/glob": "^8.1.0",
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"start": "component
|
|
9
|
-
"dev": "component
|
|
8
|
+
"start": "blocklet component dev",
|
|
9
|
+
"dev": "blocklet component dev",
|
|
10
10
|
"update:deps": "npx -y taze -r -n '/arcblock|ocap|abtnode|blocklet|did-connect|did-comment|nedb/' -w -f && pnpm install && pnpm run deduplicate",
|
|
11
11
|
"deduplicate": "pnpm dedupe"
|
|
12
12
|
},
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"pnpm": ">=9"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
|
-
"dev": "component
|
|
14
|
-
"start": "component
|
|
13
|
+
"dev": "blocklet component dev",
|
|
14
|
+
"start": "blocklet component dev",
|
|
15
15
|
"lint": "biome check . && tsc --noEmit",
|
|
16
16
|
"lint:skip": "echo 'skip lint'",
|
|
17
17
|
"lint:fix": "biome check --apply .",
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"start": "component
|
|
9
|
-
"dev": "component
|
|
8
|
+
"start": "blocklet component dev",
|
|
9
|
+
"dev": "blocklet component dev",
|
|
10
10
|
"update:deps": "npx -y taze -r -n '/arcblock|ocap|abtnode|blocklet|did-connect|did-comment|nedb/' -w -f && pnpm install && pnpm run deduplicate",
|
|
11
11
|
"deduplicate": "pnpm dedupe"
|
|
12
12
|
},
|