@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.
Files changed (3) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/index.mjs +13 -10
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @stackframe/init-stack
2
2
 
3
+ ## 2.5.20
4
+
5
+ ## 2.5.19
6
+
7
+ ### Patch Changes
8
+
9
+ - Team frontend components
10
+
3
11
  ## 2.5.18
4
12
 
5
13
  ### Patch Changes
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackframe/init-stack",
3
- "version": "2.5.18",
3
+ "version": "2.5.20",
4
4
  "description": "The setup wizard for Stack. https://stack-auth.com",
5
5
  "main": "index.mjs",
6
6
  "bin": "./index.mjs",