@alinsafawi/aegis-auth 0.1.5 → 0.1.7

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/dist/index.js +11 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -23951,14 +23951,18 @@ dist
23951
23951
  });
23952
23952
  }
23953
23953
  printDone(app.appName);
23954
- const cdStep = mode === "new" && projectName ? [{ n: 0, title: `cd ${projectName}`, lines: [] }] : [];
23954
+ const isNew = mode === "new" && projectName;
23955
23955
  printNextSteps([
23956
- ...cdStep,
23956
+ ...isNew ? [{
23957
+ n: 0,
23958
+ title: `Enter your project ${import_chalk8.default.dim("(run every command below from inside here)")}`,
23959
+ lines: [`${import_chalk8.default.green(`cd ${projectName}`)}`]
23960
+ }] : [],
23957
23961
  {
23958
23962
  n: 1,
23959
23963
  title: "Fill in .env.local",
23960
23964
  lines: [
23961
- `${import_chalk8.default.cyan("AEGIS_JWT_SECRET=")} ${import_chalk8.default.dim("\u2190 openssl rand -base64 32")}`,
23965
+ `${import_chalk8.default.cyan("AEGIS_JWT_SECRET=")} ${import_chalk8.default.dim(process.platform === "win32" ? "\u2190 [Convert]::ToBase64String((1..32|%{[byte](Get-Random -Max 256)}))" : "\u2190 openssl rand -base64 32")}`,
23962
23966
  `${import_chalk8.default.cyan("DATABASE_URL=")}`,
23963
23967
  features.emailVerification || features.passwordReset ? `${import_chalk8.default.cyan("AEGIS_SMTP_HOST=")}` : "",
23964
23968
  infra.rateLimitProvider === "upstash" ? `${import_chalk8.default.cyan("UPSTASH_REDIS_REST_URL=")}` : ""
@@ -23967,7 +23971,10 @@ dist
23967
23971
  {
23968
23972
  n: 2,
23969
23973
  title: "Apply the database schema",
23970
- lines: [`${import_chalk8.default.green("npx prisma migrate dev --name init")}`]
23974
+ lines: [
23975
+ ...isNew ? [`${import_chalk8.default.green(`cd ${projectName}`)} ${import_chalk8.default.dim("\u2190 if not already inside")}`] : [],
23976
+ `${import_chalk8.default.green("npx prisma migrate dev --name init")}`
23977
+ ]
23971
23978
  },
23972
23979
  {
23973
23980
  n: 3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alinsafawi/aegis-auth",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "The shield your Next.js app deserves — full-stack auth in minutes",
5
5
  "bin": {
6
6
  "aegis-auth": "dist/index.js"