create-pubinfo 2.2.3-beta.2 → 2.2.4

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/dist/cli.mjs CHANGED
@@ -231,11 +231,7 @@ async function runV1() {
231
231
 
232
232
  //#endregion
233
233
  //#region src/cli.ts
234
- const TEMPLATE_NAMES = [
235
- "pubinfo-app",
236
- "pubinfo-module",
237
- "pubinfo-monorepo"
238
- ];
234
+ const TEMPLATE_NAMES = ["pubinfo-app", "pubinfo-module"];
239
235
  const MODULE_NAMES = ["rbac"];
240
236
  const templateDir = resolve(dirname(fileURLToPath(import.meta.url)), "../templates");
241
237
  function parseBoolean(value, name) {
@@ -293,7 +289,7 @@ async function main() {
293
289
  const program = new Command();
294
290
  const pkg = readPackageJSON();
295
291
  program.name(pkg.name).description(pkg.description).version(pkg.version);
296
- program.description("初始化框架").option("--dir <dir>", "目录名称").option("--key <key>", "项目唯一标识").option("--template <template>", "模板类型: pubinfo-app | pubinfo-module | pubinfo-monorepo").option("--modules <modules>", "模块列表,多个模块使用逗号分隔,例如 rbac").option("--openapi <boolean>", "是否运行时自动生成接口文件").option("-y, --yes", "跳过确认;目标目录已存在时覆盖").action(async () => {
292
+ program.description("初始化框架").option("--dir <dir>", "目录名称").option("--key <key>", "项目唯一标识").option("--template <template>", "模板类型: pubinfo-app | pubinfo-module").option("--modules <modules>", "模块列表,多个模块使用逗号分隔,例如 rbac").option("--openapi <boolean>", "是否运行时自动生成接口文件").option("-y, --yes", "跳过确认;目标目录已存在时覆盖").action(async () => {
297
293
  try {
298
294
  const options = program.opts();
299
295
  if (hasGenerateOptions(options)) {
package/dist/helper.mjs CHANGED
@@ -148,20 +148,13 @@ async function interaction() {
148
148
  answer.templateName = await select({
149
149
  message: "选择模板类型",
150
150
  default: "pubinfo-app",
151
- choices: [
152
- {
153
- name: "Web应用 (app)",
154
- value: "pubinfo-app"
155
- },
156
- {
157
- name: "Web应用 (monorepo)",
158
- value: "pubinfo-monorepo"
159
- },
160
- {
161
- name: "模块插件 (module)",
162
- value: "pubinfo-module"
163
- }
164
- ]
151
+ choices: [{
152
+ name: "Web应用 (app)",
153
+ value: "pubinfo-app"
154
+ }, {
155
+ name: "模块插件 (module)",
156
+ value: "pubinfo-module"
157
+ }]
165
158
  });
166
159
  answer.modules = await checkbox({
167
160
  message: "选择需要的模块",
@@ -196,7 +189,7 @@ async function run(version) {
196
189
  var package_default = {
197
190
  name: "create-pubinfo",
198
191
  type: "module",
199
- version: "2.2.3-beta.2",
192
+ version: "2.2.4",
200
193
  description: "初始化项目框架",
201
194
  author: "Werheng <werheng.zhang@gmail.com>",
202
195
  license: "MIT",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-pubinfo",
3
3
  "type": "module",
4
- "version": "2.2.3-beta.2",
4
+ "version": "2.2.4",
5
5
  "description": "初始化项目框架",
6
6
  "author": "Werheng <werheng.zhang@gmail.com>",
7
7
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  "ora": "^9.3.0",
39
39
  "rimraf": "^6.1.2",
40
40
  "semver": "^7.7.4",
41
- "@pubinfo/shared": "2.2.3-beta.2"
41
+ "@pubinfo/shared": "2.2.4"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^25.2.2"