@stackframe/init-stack 2.7.10 → 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.
- package/CHANGELOG.md +15 -0
- package/index.mjs +18 -14
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
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
|
+
|
|
11
|
+
## 2.7.11
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Various changes
|
|
16
|
+
- @stackframe/stack-shared@2.7.11
|
|
17
|
+
|
|
3
18
|
## 2.7.10
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/index.mjs
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import * as stackSharedStrings 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";
|
|
7
6
|
import open from "open";
|
|
8
7
|
import * as path from "path";
|
|
9
8
|
|
|
10
|
-
// stackSharedStrings is a CommonJS module, so we need to import it differently
|
|
11
|
-
const { templateIdentity, deindent } = stackSharedStrings;
|
|
12
|
-
|
|
13
9
|
const jsLikeFileExtensions = [
|
|
14
10
|
"mtsx",
|
|
15
11
|
"ctsx",
|
|
@@ -273,22 +269,22 @@ async function main() {
|
|
|
273
269
|
}
|
|
274
270
|
main()
|
|
275
271
|
.then(async () => {
|
|
276
|
-
console.log(
|
|
277
|
-
|
|
272
|
+
console.log(`
|
|
273
|
+
${colorize.green`===============================================`}
|
|
278
274
|
|
|
279
|
-
|
|
275
|
+
${colorize.green`Successfully installed Stack! 🚀🚀🚀`}
|
|
280
276
|
|
|
281
|
-
|
|
277
|
+
Next steps:
|
|
282
278
|
|
|
283
|
-
|
|
284
|
-
|
|
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
|
|
285
281
|
|
|
286
|
-
|
|
282
|
+
Then, you will be able to access your sign-in page on http://your-website.example.com/handler/sign-in. That's it!
|
|
287
283
|
|
|
288
|
-
|
|
284
|
+
${colorize.green`===============================================`}
|
|
289
285
|
|
|
290
|
-
|
|
291
|
-
|
|
286
|
+
For more information, please visit https://docs.stack-auth.com/getting-started/setup
|
|
287
|
+
`.trim());
|
|
292
288
|
if (!process.env.STACK_DISABLE_INTERACTIVE) {
|
|
293
289
|
await open("https://app.stack-auth.com/wizard-congrats");
|
|
294
290
|
}
|
|
@@ -551,3 +547,11 @@ async function writeFileIfNotExists(fullPath, content) {
|
|
|
551
547
|
function throwErr(message) {
|
|
552
548
|
throw new Error(message);
|
|
553
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,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackframe/init-stack",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.12",
|
|
4
4
|
"description": "The setup wizard for Stack. https://stack-auth.com",
|
|
5
5
|
"main": "index.mjs",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"bin": "./index.mjs",
|
|
7
8
|
"files": [
|
|
8
9
|
"README.md",
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
"dependencies": {
|
|
18
19
|
"inquirer": "^9.2.19",
|
|
19
20
|
"open": "^10.1.0",
|
|
20
|
-
"@stackframe/stack-shared": "2.7.
|
|
21
|
+
"@stackframe/stack-shared": "2.7.12"
|
|
21
22
|
},
|
|
22
23
|
"scripts": {
|
|
23
24
|
"clean": "rimraf test-run-output && rimraf node_modules",
|