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.
|
@@ -82,9 +82,13 @@ export async function promptForMissingOptions(options) {
|
|
|
82
82
|
|
|
83
83
|
if (!options.useNpm) {
|
|
84
84
|
questions.push({
|
|
85
|
-
type: '
|
|
85
|
+
type: 'select',
|
|
86
86
|
name: 'useNpm',
|
|
87
|
-
message: '
|
|
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: '
|
|
364
|
-
dest: 'custom/
|
|
365
|
-
data: {}
|
|
369
|
+
src: 'pnpm_templates/pnpm-lock.yaml.hbs',
|
|
370
|
+
dest: 'custom/pnpm-lock.yaml',
|
|
371
|
+
data: {},
|
|
366
372
|
}
|
|
367
373
|
)
|
|
368
374
|
}
|