create-jnrs-template-vue 1.1.1 → 1.1.2

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
@@ -7,13 +7,18 @@
7
7
  TypeScript、Vue3 生态
8
8
 
9
9
  ## 🧩 安装使用说明
10
- jnrs-app-vue 是你的新项目名称
10
+ jnrs-app-vue 是你的新项目名称
11
11
  ```shell
12
+ ✅ 正确用法
12
13
  pnpm create jnrs-template-vue@latest jnrs-app-vue
14
+
13
15
  cd jnrs-app-vue
14
16
  pnpm i
15
17
  pnpm dev
16
18
  pnpm build
19
+
20
+ ❌ 错误用法(不要这样做!)
21
+ pnpm add create-jnrs-template-vue
17
22
  ```
18
23
 
19
24
  #### 项目结构
package/bin/create.js CHANGED
@@ -5,6 +5,12 @@ import { execSync, spawnSync } from 'child_process'
5
5
  import minimist from 'minimist'
6
6
  import prompts from 'prompts'
7
7
 
8
+ if (require.main !== module) {
9
+ console.error('❌ 此软件包是一个 CLI 工具,不要将其作为依赖项安装!')
10
+ console.error('✅ 正确用法:pnpm create jnrs-template-vue@latest jnrs-app-vue')
11
+ process.exit(1)
12
+ }
13
+
8
14
  const __filename = fileURLToPath(import.meta.url)
9
15
  const __dirname = dirname(__filename)
10
16
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jnrs-template-vue",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "JNRS 新项目模板",
5
5
  "author": "Talia-Tan",
6
6
  "private": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-jnrs-template-vue",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "巨能前端工程化开发,Vue 项目模板脚手架",
5
5
  "keywords": [
6
6
  "vue",