nsbp-cli 0.2.43 → 0.2.44

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/README.md CHANGED
@@ -147,7 +147,7 @@ node ./bin/nsbp.js --help # Test CLI locally
147
147
 
148
148
  - **Package Name**: `nsbp-cli`
149
149
  - **Bin Command**: `nsbp` (install globally and run `nsbp --help`)
150
- - **Version**: `0.2.43`
150
+ - **Version**: `0.2.44`
151
151
  - **Dependencies**: chalk, commander, fs-extra, inquirer
152
152
  - **Package Manager**: Uses pnpm (also compatible with npm)
153
153
  - **Node Version**: >=16.0.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nsbp-cli",
3
- "version": "0.2.43",
3
+ "version": "0.2.44",
4
4
  "description": "CLI tool for creating NSBP (Node React SSR by Webpack) projects",
5
5
  "main": "index.js",
6
6
  "homepage": "https://nsbp.erishen.cn/",
@@ -9,9 +9,12 @@ WORKDIR /app
9
9
  # Copy package files
10
10
  COPY package*.json ./
11
11
 
12
+ # Configure npm and pnpm to use Chinese mirror registry for faster downloads in China
13
+ RUN npm config set registry https://registry.npmmirror.com
14
+
12
15
  # Install pnpm and dependencies (including devDependencies for building)
13
16
  # Set HUSKY=0 to disable husky in Docker environment
14
- RUN npm install -g pnpm && HUSKY=0 pnpm install
17
+ RUN npm install -g pnpm && pnpm config set registry https://registry.npmmirror.com && HUSKY=0 pnpm install
15
18
 
16
19
  # Copy source code
17
20
  COPY . .
@@ -35,9 +38,12 @@ WORKDIR /app
35
38
  # Copy package files
36
39
  COPY package*.json ./
37
40
 
41
+ # Configure npm and pnpm to use Chinese mirror registry for faster downloads in China
42
+ RUN npm config set registry https://registry.npmmirror.com
43
+
38
44
  # Install pnpm and only production dependencies
39
45
  # Use --ignore-scripts to disable prepare script (husky is in devDependencies)
40
- RUN npm install -g pnpm && pnpm install --prod --ignore-scripts && pnpm store prune
46
+ RUN npm install -g pnpm && pnpm config set registry https://registry.npmmirror.com && pnpm install --prod --ignore-scripts && pnpm store prune
41
47
 
42
48
  # Copy build artifacts from builder stage
43
49
  COPY --from=builder /app/build ./build