@alinsafawi/aegis-auth 0.1.6 → 0.1.8

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 +10 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -23139,9 +23139,6 @@ function roleModel(id, role, features) {
23139
23139
  if (isStatic && storage === "json") {
23140
23140
  lines.push(` permissions Json @default("{}")`);
23141
23141
  }
23142
- if (features.sessionTracking) {
23143
- lines.push(` sessions AuthSession[]`);
23144
- }
23145
23142
  lines.push(`}`);
23146
23143
  return lines.join("\n");
23147
23144
  }
@@ -23951,9 +23948,13 @@ dist
23951
23948
  });
23952
23949
  }
23953
23950
  printDone(app.appName);
23954
- const cdStep = mode === "new" && projectName ? [{ n: 0, title: `cd ${projectName}`, lines: [] }] : [];
23951
+ const isNew = mode === "new" && projectName;
23955
23952
  printNextSteps([
23956
- ...cdStep,
23953
+ ...isNew ? [{
23954
+ n: 0,
23955
+ title: `Enter your project ${import_chalk8.default.dim("(run every command below from inside here)")}`,
23956
+ lines: [`${import_chalk8.default.green(`cd ${projectName}`)}`]
23957
+ }] : [],
23957
23958
  {
23958
23959
  n: 1,
23959
23960
  title: "Fill in .env.local",
@@ -23967,7 +23968,10 @@ dist
23967
23968
  {
23968
23969
  n: 2,
23969
23970
  title: "Apply the database schema",
23970
- lines: [`${import_chalk8.default.green("npx prisma migrate dev --name init")}`]
23971
+ lines: [
23972
+ ...isNew ? [`${import_chalk8.default.green(`cd ${projectName}`)} ${import_chalk8.default.dim("\u2190 if not already inside")}`] : [],
23973
+ `${import_chalk8.default.green("npx prisma migrate dev --name init")}`
23974
+ ]
23971
23975
  },
23972
23976
  {
23973
23977
  n: 3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alinsafawi/aegis-auth",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
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"