create-vue 3.2.1 → 3.2.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/outfile.cjs CHANGED
@@ -1,25 +1,11 @@
1
1
  #!/usr/bin/env node
2
- /*! create-vue v3.2.1 | MIT */
2
+ /*! create-vue v3.2.2 | MIT */
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
7
  var __getProtoOf = Object.getPrototypeOf;
9
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
- var __spreadValues = (a, b) => {
13
- for (var prop in b || (b = {}))
14
- if (__hasOwnProp.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- if (__getOwnPropSymbols)
17
- for (var prop of __getOwnPropSymbols(b)) {
18
- if (__propIsEnum.call(b, prop))
19
- __defNormalProp(a, prop, b[prop]);
20
- }
21
- return a;
22
- };
23
9
  var __commonJS = (cb, mod) => function __require() {
24
10
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
25
11
  };
@@ -5196,7 +5182,7 @@ var require_lib = __commonJS({
5196
5182
  for (question of questions) {
5197
5183
  ({ name, type } = question);
5198
5184
  if (typeof type === "function") {
5199
- type = await type(answer, __spreadValues({}, answers), question);
5185
+ type = await type(answer, { ...answers }, question);
5200
5186
  question["type"] = type;
5201
5187
  }
5202
5188
  if (!type)
@@ -5205,7 +5191,7 @@ var require_lib = __commonJS({
5205
5191
  if (passOn.includes(key))
5206
5192
  continue;
5207
5193
  let value = question[key];
5208
- question[key] = typeof value === "function" ? await value(answer, __spreadValues({}, answers), lastPrompt) : value;
5194
+ question[key] = typeof value === "function" ? await value(answer, { ...answers }, lastPrompt) : value;
5209
5195
  }
5210
5196
  lastPrompt = question;
5211
5197
  if (typeof question.message !== "string") {
@@ -5392,7 +5378,10 @@ function sortDependencies(packageJson) {
5392
5378
  });
5393
5379
  }
5394
5380
  }
5395
- return __spreadValues(__spreadValues({}, packageJson), sorted);
5381
+ return {
5382
+ ...packageJson,
5383
+ ...sorted
5384
+ };
5396
5385
  }
5397
5386
 
5398
5387
  // utils/renderTemplate.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vue",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "An easy way to start a Vue project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -13,15 +13,6 @@
13
13
  "engines": {
14
14
  "node": "^14.16.0 || >=16.0.0"
15
15
  },
16
- "scripts": {
17
- "prepare": "husky install",
18
- "format": "prettier --write .",
19
- "build": "zx ./scripts/build.mjs",
20
- "snapshot": "zx ./scripts/snapshot.mjs",
21
- "pretest": "run-s build snapshot",
22
- "test": "zx ./scripts/test.mjs",
23
- "prepublishOnly": "zx ./scripts/prepublish.mjs"
24
- },
25
16
  "repository": {
26
17
  "type": "git",
27
18
  "url": "git+https://github.com/vuejs/create-vue.git"
@@ -34,23 +25,30 @@
34
25
  },
35
26
  "homepage": "https://github.com/vuejs/create-vue#readme",
36
27
  "devDependencies": {
37
- "@types/eslint": "^8.4.2",
28
+ "@types/eslint": "^8.4.3",
38
29
  "@types/prompts": "^2.0.14",
39
30
  "@vue/tsconfig": "^0.1.3",
40
- "esbuild": "^0.14.42",
31
+ "esbuild": "^0.14.47",
41
32
  "esbuild-plugin-license": "^1.2.2",
42
33
  "husky": "^8.0.1",
43
34
  "kolorist": "^1.5.1",
44
- "lint-staged": "^12.4.3",
35
+ "lint-staged": "^13.0.2",
45
36
  "minimist": "^1.2.6",
46
37
  "npm-run-all": "^4.1.5",
47
- "prettier": "^2.6.2",
38
+ "prettier": "^2.7.1",
48
39
  "prompts": "^2.4.2",
49
- "zx": "^6.1.0"
40
+ "zx": "^4.3.0"
50
41
  },
51
42
  "lint-staged": {
52
43
  "*.{js,ts,vue,json}": [
53
44
  "prettier --write"
54
45
  ]
46
+ },
47
+ "scripts": {
48
+ "format": "prettier --write .",
49
+ "build": "zx ./scripts/build.mjs",
50
+ "snapshot": "zx ./scripts/snapshot.mjs",
51
+ "pretest": "run-s build snapshot",
52
+ "test": "zx ./scripts/test.mjs"
55
53
  }
56
- }
54
+ }
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/vite@2.9.9/node_modules/vite/bin/vite.js" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/vite@2.9.12/node_modules/vite/bin/vite.js" "$@"
15
15
  else
16
- exec node "$basedir/../../../../node_modules/.pnpm/vite@2.9.9/node_modules/vite/bin/vite.js" "$@"
16
+ exec node "$basedir/../../../../node_modules/.pnpm/vite@2.9.12/node_modules/vite/bin/vite.js" "$@"
17
17
  fi
@@ -5,10 +5,10 @@
5
5
  "preview": "vite preview --port 4173"
6
6
  },
7
7
  "dependencies": {
8
- "vue": "^3.2.36"
8
+ "vue": "^3.2.37"
9
9
  },
10
10
  "devDependencies": {
11
11
  "@vitejs/plugin-vue": "^2.3.3",
12
- "vite": "^2.9.9"
12
+ "vite": "^2.9.12"
13
13
  }
14
14
  }
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/cypress@10.0.2/node_modules/cypress/bin/cypress" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/cypress@10.1.0/node_modules/cypress/bin/cypress" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/cypress@10.0.2/node_modules/cypress/bin/cypress" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/cypress@10.1.0/node_modules/cypress/bin/cypress" "$@"
17
17
  fi
@@ -4,7 +4,7 @@
4
4
  "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:4173/ 'cypress run --e2e'"
5
5
  },
6
6
  "devDependencies": {
7
- "cypress": "^10.0.2",
7
+ "cypress": "^10.1.0",
8
8
  "start-server-and-test": "^1.14.0"
9
9
  }
10
10
  }
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/cypress@10.0.2/node_modules/cypress/bin/cypress" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/cypress@10.1.0/node_modules/cypress/bin/cypress" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/cypress@10.0.2/node_modules/cypress/bin/cypress" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/cypress@10.1.0/node_modules/cypress/bin/cypress" "$@"
17
17
  fi
@@ -4,9 +4,9 @@
4
4
  "test:unit:ci": "cypress run --component --quiet --reporter spec"
5
5
  },
6
6
  "dependencies": {
7
- "vue": "^3.2.36"
7
+ "vue": "^3.2.37"
8
8
  },
9
9
  "devDependencies": {
10
- "cypress": "^10.0.2"
10
+ "cypress": "^10.1.0"
11
11
  }
12
12
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "pinia": "^2.0.14",
4
- "vue": "^3.2.36"
4
+ "vue": "^3.2.37"
5
5
  }
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "vue": "^3.2.36",
4
- "vue-router": "^4.0.15"
3
+ "vue": "^3.2.37",
4
+ "vue-router": "^4.0.16"
5
5
  }
6
6
  }
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/typescript@4.7.2/node_modules/typescript/bin/tsc" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/bin/tsc" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/typescript@4.7.2/node_modules/typescript/bin/tsc" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/bin/tsc" "$@"
17
17
  fi
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/typescript@4.7.2/node_modules/typescript/bin/tsserver" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/bin/tsserver" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/typescript@4.7.2/node_modules/typescript/bin/tsserver" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/bin/tsserver" "$@"
17
17
  fi
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vue-tsc@0.35.2_typescript@4.7.2/node_modules/vue-tsc/bin/vue-tsc.js" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vue-tsc@0.38.1_typescript@4.7.4/node_modules/vue-tsc/bin/vue-tsc.js" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/vue-tsc@0.35.2_typescript@4.7.2/node_modules/vue-tsc/bin/vue-tsc.js" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vue-tsc@0.38.1_typescript@4.7.4/node_modules/vue-tsc/bin/vue-tsc.js" "$@"
17
17
  fi
@@ -5,9 +5,9 @@
5
5
  "type-check": "vue-tsc --noEmit"
6
6
  },
7
7
  "devDependencies": {
8
- "@types/node": "^16.11.36",
8
+ "@types/node": "^16.11.41",
9
9
  "npm-run-all": "^4.1.5",
10
- "typescript": "~4.7.2",
11
- "vue-tsc": "^0.35.2"
10
+ "typescript": "~4.7.4",
11
+ "vue-tsc": "^0.38.1"
12
12
  }
13
13
  }
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitest@0.13.0_jsdom@19.0.0/node_modules/vitest/vitest.mjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitest@0.15.1_jsdom@20.0.0/node_modules/vitest/vitest.mjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/vitest@0.13.0_jsdom@19.0.0/node_modules/vitest/vitest.mjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vitest@0.15.1_jsdom@20.0.0/node_modules/vitest/vitest.mjs" "$@"
17
17
  fi
@@ -3,11 +3,11 @@
3
3
  "test:unit": "vitest --environment jsdom"
4
4
  },
5
5
  "dependencies": {
6
- "vue": "^3.2.36"
6
+ "vue": "^3.2.37"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@vue/test-utils": "^2.0.0",
10
- "jsdom": "^19.0.0",
11
- "vitest": "^0.13.0"
10
+ "jsdom": "^20.0.0",
11
+ "vitest": "^0.15.1"
12
12
  }
13
13
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "vue": "^3.2.36",
3
+ "vue": "^3.2.37",
4
4
  "vuex": "^4.0.2"
5
5
  }
6
6
  }