@blocklet/component-studio-cli 0.5.5 → 0.5.6

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.
@@ -1,5 +1,5 @@
1
1
  import chalk from 'chalk';
2
- import { execSync, spawn } from 'child_process';
2
+ import { execSync, exec } from 'child_process';
3
3
  import fs from 'fs-extra';
4
4
  import { glob } from 'glob';
5
5
  import inquirer from 'inquirer';
@@ -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.1';
12
+ const workspaceVersion = '0.1.2';
13
13
  const METADATA_FILE_NAME = '@metadata.json';
14
14
  // 获取CLI内置的workspace模板路径
15
15
  export function getWorkspaceTemplatePath() {
@@ -105,9 +105,8 @@ export async function installDependencies(dirs, operation = 'install') {
105
105
  const installPromises = Object.entries(dirs).map(([dirType, dirPath]) => {
106
106
  return new Promise((resolve, reject) => {
107
107
  let errorOutput = '';
108
- const depProcess = spawn('pnpm', ['update:deps'], {
108
+ const depProcess = exec("npx -y taze -f -r -w -n '/arcblock|ocap|abtnode|blocklet|did-connect|did-comment|nedb/' latest && pnpm install && pnpm dedupe", {
109
109
  cwd: dirPath,
110
- stdio: ['inherit', 'pipe', 'pipe'], // 将 stdout 和 stderr 设为 pipe
111
110
  env: {
112
111
  ...process.env,
113
112
  NODE_ENV: 'development',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/component-studio-cli",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "CLI for Component Studio",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -0,0 +1,5 @@
1
+ ## force pnpm to hoist
2
+ shamefully-hoist=true
3
+ strict-peer-dependencies=false
4
+ node-linker=hoisted
5
+
@@ -7,8 +7,7 @@
7
7
  "scripts": {
8
8
  "start": "blocklet component dev",
9
9
  "dev": "blocklet component dev",
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
- "deduplicate": "pnpm dedupe"
10
+ "update:deps": "blocklet component update"
12
11
  },
13
12
  "lint-staged": {
14
13
  "*.{js,jsx,ts,tsx}": [
@@ -0,0 +1,5 @@
1
+ ## force pnpm to hoist
2
+ shamefully-hoist=true
3
+ strict-peer-dependencies=false
4
+ node-linker=hoisted
5
+
@@ -18,8 +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 -f -r -w -n '/arcblock|ocap|abtnode|blocklet|did-connect|did-comment|nedb/' latest && pnpm install && pnpm run deduplicate",
22
- "deduplicate": "pnpm dedupe"
21
+ "update:deps": "blocklet component update"
23
22
  },
24
23
  "lint-staged": {
25
24
  "*.{mjs,js,jsx,ts,tsx,css,less,scss,json,graphql}": [
@@ -0,0 +1,5 @@
1
+ ## force pnpm to hoist
2
+ shamefully-hoist=true
3
+ strict-peer-dependencies=false
4
+ node-linker=hoisted
5
+
@@ -7,8 +7,7 @@
7
7
  "scripts": {
8
8
  "start": "blocklet component dev",
9
9
  "dev": "blocklet component dev",
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
- "deduplicate": "pnpm dedupe"
10
+ "update:deps": "blocklet component update"
12
11
  },
13
12
  "lint-staged": {
14
13
  "*.{js,jsx,ts,tsx}": [
@@ -20,6 +20,7 @@ export default defineConfig((mode) => {
20
20
  ],
21
21
 
22
22
  resolve: {
23
+ preserveSymlinks: true,
23
24
  alias: {},
24
25
  },
25
26