create-lve 0.4.25 → 0.4.27

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/config.js CHANGED
@@ -119,9 +119,13 @@ export default defineConfig({
119
119
  pluginCode: 'tailwindcss(), ',
120
120
  entryImport: "import './style.css'\n",
121
121
  async setup(ctx) {
122
+ // 模板自带 style.css(含 @import 'tailwindcss' + base UX),不覆盖
123
+ // 仅确保文件存在
122
124
  const stylePath = path.join(ctx.targetDir, 'src/style.css')
123
- await fs.ensureDir(path.dirname(stylePath))
124
- await fs.writeFile(stylePath, `@import "tailwindcss";`)
125
+ if (!fs.existsSync(stylePath)) {
126
+ await fs.ensureDir(path.dirname(stylePath))
127
+ await fs.writeFile(stylePath, `@import "tailwindcss";`)
128
+ }
125
129
  },
126
130
  },
127
131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-lve",
3
- "version": "0.4.25",
3
+ "version": "0.4.27",
4
4
  "bin": {
5
5
  "create-lve": "index.js"
6
6
  },
@@ -7,8 +7,6 @@ yarn-error.log*
7
7
  pnpm-debug.log*
8
8
  lerna-debug.log*
9
9
 
10
- pnpm-lock.yaml
11
-
12
10
  node_modules
13
11
  dist
14
12
  dist-ssr
@@ -7,8 +7,6 @@ yarn-error.log*
7
7
  pnpm-debug.log*
8
8
  lerna-debug.log*
9
9
 
10
- pnpm-lock.yaml
11
-
12
10
  node_modules
13
11
  dist
14
12
  dist-ssr