adminforth 2.25.0-test.15 → 2.25.0-test.16

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.
@@ -0,0 +1,8 @@
1
+ lockfileVersion: '9.0'
2
+
3
+ settings:
4
+ autoInstallPeers: true
5
+ excludeLinksFromLockfile: false
6
+
7
+ importers:
8
+ .: {}
@@ -82,9 +82,13 @@ export async function promptForMissingOptions(options) {
82
82
 
83
83
  if (!options.useNpm) {
84
84
  questions.push({
85
- type: 'confirm',
85
+ type: 'select',
86
86
  name: 'useNpm',
87
- message: 'Do you want to use npm instead of pnpm?',
87
+ message: 'Select your package manager ->',
88
+ choices: [
89
+ { name: 'pnpm', value: false },
90
+ { name: 'npm', value: true },
91
+ ],
88
92
  default: false,
89
93
  });
90
94
  }
@@ -347,6 +351,11 @@ async function writeTemplateFiles(dirname, cwd, useNpm, options) {
347
351
  useNpm
348
352
  },
349
353
  },
354
+ {
355
+ src: 'custom/package.json.hbs',
356
+ dest: 'custom/package.json',
357
+ data: {}
358
+ }
350
359
  ];
351
360
 
352
361
  if (!useNpm) {
@@ -356,13 +365,10 @@ async function writeTemplateFiles(dirname, cwd, useNpm, options) {
356
365
  dest: 'pnpm-workspace.yaml',
357
366
  data: {},
358
367
  },
359
- )
360
- } else {
361
- templateTasks.push(
362
368
  {
363
- src: 'custom/package.json.hbs',
364
- dest: 'custom/package.json',
365
- data: {}
369
+ src: 'pnpm_templates/pnpm-lock.yaml.hbs',
370
+ dest: 'custom/pnpm-lock.yaml',
371
+ data: {},
366
372
  }
367
373
  )
368
374
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.25.0-test.15",
3
+ "version": "2.25.0-test.16",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",