create-nextly-app 0.0.2-alpha.37 → 0.0.2-alpha.39

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/dist/cli.cjs CHANGED
@@ -6259,7 +6259,7 @@ var require_package = __commonJS({
6259
6259
  "package.json"(exports$1, module) {
6260
6260
  module.exports = {
6261
6261
  name: "create-nextly-app",
6262
- version: "0.0.2-alpha.37",
6262
+ version: "0.0.2-alpha.39",
6263
6263
  description: "CLI to scaffold Nextly in your Next.js project",
6264
6264
  license: "MIT",
6265
6265
  type: "module",
@@ -28771,6 +28771,7 @@ async function generatePackageJson(projectName, database, useYalc = false, proje
28771
28771
  "react-dom": PINNED_VERSIONS["react-dom"]
28772
28772
  };
28773
28773
  dependencies["@tanstack/react-query"] = "^5.62.0";
28774
+ dependencies["lucide-react"] = "^0.544.0";
28774
28775
  if (!useYalc) {
28775
28776
  const versions = await resolveNextlyVersions();
28776
28777
  dependencies["nextly"] = versions["nextly"];
@@ -29013,6 +29014,12 @@ async function copyTemplate(options) {
29013
29014
  });
29014
29015
  }
29015
29016
  }
29017
+ const templateMigrationsDir = path15__default.default.join(typeDir, "migrations");
29018
+ if (await import_fs_extra8.default.pathExists(templateMigrationsDir)) {
29019
+ await import_fs_extra8.default.copy(templateMigrationsDir, path15__default.default.join(targetDir, "migrations"), {
29020
+ overwrite: false
29021
+ });
29022
+ }
29016
29023
  const frontendPagePath = path15__default.default.join(
29017
29024
  targetDir,
29018
29025
  "src",
@@ -29103,7 +29110,8 @@ var CORE_PACKAGES = [
29103
29110
  "@nextlyhq/admin",
29104
29111
  "@nextlyhq/adapter-drizzle",
29105
29112
  "@nextlyhq/ui",
29106
- "@tanstack/react-query"
29113
+ "@tanstack/react-query",
29114
+ "lucide-react"
29107
29115
  ];
29108
29116
  var ALL_ADAPTER_PACKAGES = [
29109
29117
  "@nextlyhq/adapter-postgres",
@@ -29153,6 +29161,13 @@ async function installDependencies(cwd, projectInfo, database, useYalc = false,
29153
29161
  ...pluginPackages
29154
29162
  ])
29155
29163
  ];
29164
+ const registryPackages = allPackages.filter(
29165
+ (pkg2) => !yalcPackages.includes(pkg2)
29166
+ );
29167
+ if (registryPackages.length > 0) {
29168
+ const [cmd, ...args] = INSTALL_COMMANDS[pm];
29169
+ await execa(cmd, [...args, ...registryPackages], { cwd });
29170
+ }
29156
29171
  for (const pkg2 of yalcPackages) {
29157
29172
  await execa("yalc", ["add", pkg2], { cwd });
29158
29173
  }