create-pubinfo 2.0.0-beta.30 → 2.0.0-beta.31

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 +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import consola6 from "consola";
8
8
  var package_default = {
9
9
  name: "create-pubinfo",
10
10
  type: "module",
11
- version: "2.0.0-beta.30",
11
+ version: "2.0.0-beta.31",
12
12
  description: "\u521D\u59CB\u5316\u9879\u76EE\u6846\u67B6",
13
13
  author: "Werheng <werheng.zhang@gmail.com>",
14
14
  license: "MIT",
@@ -154,7 +154,7 @@ import colors from "ansi-colors";
154
154
  import consola3 from "consola";
155
155
 
156
156
  // src/v1/constant.ts
157
- var REMOTE_URL = "http://106.53.74.49:10000/templates";
157
+ var REMOTE_URL = "http://106.53.74.49:20000/templates";
158
158
  var PKG_NAME = "monorepo-project-template";
159
159
  var VERSION_FILE = "version.json";
160
160
  var SETTING_FILE_PATH = "src/settings.default.ts";
@@ -204,7 +204,6 @@ async function fetchData() {
204
204
 
205
205
  // src/core/init.ts
206
206
  async function init() {
207
- const { version } = await fetchData();
208
207
  try {
209
208
  const answer = {};
210
209
  answer.dir = await input({ message: "\u76EE\u5F55\u540D\u79F0\uFF08dir\uFF09", default: "my-app", validate: validateInput });
@@ -226,6 +225,7 @@ async function init() {
226
225
  });
227
226
  const isV1 = V1orV2 === "v1";
228
227
  if (isV1) {
228
+ const { version } = await fetchData();
229
229
  answer.optionsV1 = JSON.parse(JSON.stringify(answer));
230
230
  answer.optionsV1.version = await select({
231
231
  message: "\u6846\u67B6\u7248\u672C\u53F7\uFF08version\uFF09",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-pubinfo",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.30",
4
+ "version": "2.0.0-beta.31",
5
5
  "description": "初始化项目框架",
6
6
  "author": "Werheng <werheng.zhang@gmail.com>",
7
7
  "license": "MIT",