@stackframe/init-stack 1.0.2 → 1.0.3

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 (2) hide show
  1. package/index.mjs +5 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -87,6 +87,10 @@ async function main() {
87
87
  } catch (err) {
88
88
  throw new Error(`Could not run the package manager command ${versionCommand}. Please make sure ${packageManager} is installed on your system.`);
89
89
  }
90
+
91
+ console.log();
92
+ console.log("Installing dependencies...");
93
+ await shellNicelyFormatted(`${installCommand} @stackframe/stack`, { shell: true, cwd: projectPath });
90
94
 
91
95
  console.log();
92
96
  console.log("Writing files...");
@@ -96,10 +100,6 @@ async function main() {
96
100
  await writeFileIfNotExists(stackAppPath, `import "server-only";\n\nimport { StackServerApp } from "@stackframe/stack";\n\nexport const stackServerApp = new StackServerApp({\n${ind}tokenStore: "nextjs-cookie",\n});\n`);
97
101
  await writeFile(layoutPath, updatedLayoutContent);
98
102
  console.log("Files written successfully!");
99
-
100
- console.log();
101
- console.log("Installing dependencies...");
102
- await shellNicelyFormatted(`${installCommand} @stackframe/stack`, { shell: true, cwd: projectPath });
103
103
  }
104
104
  main().then(async() => {
105
105
  console.log();
@@ -172,7 +172,7 @@ async function getUpdatedLayout(originalLayout) {
172
172
  layout = layout.slice(0, bodyOpenEndIndex) + insertOpen + layout.slice(bodyOpenEndIndex);
173
173
 
174
174
  return {
175
- content: `// Below is the old layout file.\n\n${layout}`,
175
+ content: `${layout}`,
176
176
  indentation,
177
177
  };
178
178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackframe/init-stack",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "The setup wizard for Stack. https://stack-auth.com",
5
5
  "main": "index.mjs",
6
6
  "bin": "./index.mjs",