create-vue3-enterprise 1.0.20 → 1.0.21

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
+ import { execSync } from "node:child_process";
5
6
  import minimist from "minimist";
6
7
  import prompts from "prompts";
7
8
  import { red, green, cyan, yellow } from "kolorist";
@@ -333,7 +334,6 @@ playwright/.cache/
333
334
  fs.writeFileSync(path.join(root, ".gitignore"), gitignore);
334
335
  // Initialize git and husky if lint feature is enabled
335
336
  if (promptResult.features?.includes("lint")) {
336
- const { execSync } = require("child_process");
337
337
  try {
338
338
  execSync("git init", { cwd: root, stdio: "ignore" });
339
339
  execSync("npm run prepare", { cwd: root, stdio: "ignore" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vue3-enterprise",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Vue3 + TypeScript + Vite 企业级项目脚手架",
5
5
  "type": "module",
6
6
  "bin": {