@stackframe/init-stack 2.5.18 → 2.5.20
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/CHANGELOG.md +8 -0
- package/index.mjs +13 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/index.mjs
CHANGED
|
@@ -48,16 +48,16 @@ const commandsExecuted = [];
|
|
|
48
48
|
async function main() {
|
|
49
49
|
console.log();
|
|
50
50
|
console.log(`
|
|
51
|
-
██████
|
|
52
|
-
██████████████
|
|
53
|
-
████████████████████
|
|
51
|
+
██████
|
|
52
|
+
██████████████
|
|
53
|
+
████████████████████
|
|
54
54
|
████████████████████ WELCOME TO
|
|
55
55
|
█████████████████ ╔═╗╔╦╗╔═╗╔═╗╦╔═ ┌─┐┬ ┬┌┬┐┬ ┬
|
|
56
56
|
█████████████ ╚═╗ ║ ╠═╣║ ╠╩╗ ├─┤│ │ │ ├─┤
|
|
57
57
|
█████████████ ████ ╚═╝ ╩ ╩ ╩╚═╝╩ ╩ ┴ ┴└─┘ ┴ ┴ ┴
|
|
58
|
-
█████████████████
|
|
59
|
-
██████ ██
|
|
60
|
-
████ ████
|
|
58
|
+
█████████████████
|
|
59
|
+
██████ ██
|
|
60
|
+
████ ████
|
|
61
61
|
█████ █████
|
|
62
62
|
██████
|
|
63
63
|
`);
|
|
@@ -432,13 +432,16 @@ async function getPackageManager() {
|
|
|
432
432
|
const yarnLock = fs.existsSync(path.join(projectPath, "yarn.lock"));
|
|
433
433
|
const pnpmLock = fs.existsSync(path.join(projectPath, "pnpm-lock.yaml"));
|
|
434
434
|
const npmLock = fs.existsSync(path.join(projectPath, "package-lock.json"));
|
|
435
|
+
const bunLock = fs.existsSync(path.join(projectPath, "bun.lockb"));
|
|
435
436
|
|
|
436
|
-
if (yarnLock && !pnpmLock && !npmLock) {
|
|
437
|
+
if (yarnLock && !pnpmLock && !npmLock && !bunLock) {
|
|
437
438
|
return "yarn";
|
|
438
|
-
} else if (!yarnLock && pnpmLock && !npmLock) {
|
|
439
|
+
} else if (!yarnLock && pnpmLock && !npmLock && !bunLock) {
|
|
439
440
|
return "pnpm";
|
|
440
|
-
} else if (!yarnLock && !pnpmLock && npmLock) {
|
|
441
|
+
} else if (!yarnLock && !pnpmLock && npmLock && !bunLock) {
|
|
441
442
|
return "npm";
|
|
443
|
+
} else if (!yarnLock && !pnpmLock && !npmLock && bunLock) {
|
|
444
|
+
return "bun";
|
|
442
445
|
}
|
|
443
446
|
|
|
444
447
|
const answers = await inquirer.prompt([
|
|
@@ -446,7 +449,7 @@ async function getPackageManager() {
|
|
|
446
449
|
type: "list",
|
|
447
450
|
name: "packageManager",
|
|
448
451
|
message: "Which package manager are you using for this project?",
|
|
449
|
-
choices: ["npm", "yarn", "pnpm"],
|
|
452
|
+
choices: ["npm", "yarn", "pnpm", "bun"],
|
|
450
453
|
},
|
|
451
454
|
]);
|
|
452
455
|
return answers.packageManager;
|