@stackframe/init-stack 2.7.11 → 2.7.12

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 +18 -11
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @stackframe/init-stack
2
2
 
3
+ ## 2.7.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Various changes
8
+ - Updated dependencies
9
+ - @stackframe/stack-shared@2.7.12
10
+
3
11
  ## 2.7.11
4
12
 
5
13
  ### Patch Changes
package/index.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { deindent, templateIdentity } from '@stackframe/stack-shared/dist/utils/strings';
4
3
  import * as child_process from "child_process";
5
4
  import * as fs from "fs";
6
5
  import inquirer from "inquirer";
@@ -270,22 +269,22 @@ async function main() {
270
269
  }
271
270
  main()
272
271
  .then(async () => {
273
- console.log(deindent`
274
- ${colorize.green`===============================================`}
272
+ console.log(`
273
+ ${colorize.green`===============================================`}
275
274
 
276
- ${colorize.green`Successfully installed Stack! 🚀🚀🚀`}
275
+ ${colorize.green`Successfully installed Stack! 🚀🚀🚀`}
277
276
 
278
- Next steps:
277
+ Next steps:
279
278
 
280
- 1. Create an account and project on https://app.stack-auth.com
281
- 2. Copy the environment variables from the new API key into your .env.local file
279
+ 1. Create an account and project on https://app.stack-auth.com
280
+ 2. Copy the environment variables from the new API key into your .env.local file
282
281
 
283
- Then, you will be able to access your sign-in page on http://your-website.example.com/handler/sign-in. That's it!
282
+ Then, you will be able to access your sign-in page on http://your-website.example.com/handler/sign-in. That's it!
284
283
 
285
- ${colorize.green`===============================================`}
284
+ ${colorize.green`===============================================`}
286
285
 
287
- For more information, please visit https://docs.stack-auth.com/getting-started/setup
288
- `);
286
+ For more information, please visit https://docs.stack-auth.com/getting-started/setup
287
+ `.trim());
289
288
  if (!process.env.STACK_DISABLE_INTERACTIVE) {
290
289
  await open("https://app.stack-auth.com/wizard-congrats");
291
290
  }
@@ -548,3 +547,11 @@ async function writeFileIfNotExists(fullPath, content) {
548
547
  function throwErr(message) {
549
548
  throw new Error(message);
550
549
  }
550
+
551
+ // TODO import this function from stack-shared instead (but that would require us to fix the build to let us import it)
552
+ export function templateIdentity(strings, ...values) {
553
+ if (strings.length === 0) return "";
554
+ if (values.length !== strings.length - 1) throw new Error("Invalid number of values; must be one less than strings");
555
+
556
+ return strings.slice(1).reduce((result, string, i) => `${result}${values[i] ?? "n/a"}${string}`, strings[0]);
557
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackframe/init-stack",
3
- "version": "2.7.11",
3
+ "version": "2.7.12",
4
4
  "description": "The setup wizard for Stack. https://stack-auth.com",
5
5
  "main": "index.mjs",
6
6
  "type": "module",
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "inquirer": "^9.2.19",
20
20
  "open": "^10.1.0",
21
- "@stackframe/stack-shared": "2.7.11"
21
+ "@stackframe/stack-shared": "2.7.12"
22
22
  },
23
23
  "scripts": {
24
24
  "clean": "rimraf test-run-output && rimraf node_modules",