create-nextly-app 0.0.2-alpha.60 → 0.0.2-alpha.62

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/index.cjs CHANGED
@@ -21216,7 +21216,15 @@ async function walkSourceFiles(root) {
21216
21216
  function projectUsesFormBuilder(projectType) {
21217
21217
  return PROJECT_TYPES_WITH_FORM_BUILDER.has(projectType);
21218
21218
  }
21219
- var CONTENT_TEMPLATE_TYPES = /* @__PURE__ */ new Set(["blog"]);
21219
+ var CONTENT_TEMPLATE_TYPES = /* @__PURE__ */ new Set([
21220
+ "blog",
21221
+ // The plugin template installs `@nextlyhq/eslint-plugin` for the design-token
21222
+ // rules, and that package exists on `alpha` only — `latest` is the conservative
21223
+ // tag and lags the active release line. Pinned to `latest` a plugin scaffold
21224
+ // would resolve a version of it that predates the rules, exactly as a content
21225
+ // scaffold would resolve a `nextly` missing the helpers its pages import.
21226
+ "plugin"
21227
+ ]);
21220
21228
  function templateNextlyChannel(projectType) {
21221
21229
  return CONTENT_TEMPLATE_TYPES.has(projectType) ? "alpha" : "latest";
21222
21230
  }
@@ -21504,7 +21512,12 @@ var PINNED_VERSIONS = {
21504
21512
  "@types/react-dom": "^19",
21505
21513
  "@tailwindcss/postcss": "^4",
21506
21514
  tailwindcss: "^4",
21507
- eslint: "^9"
21515
+ eslint: "^9",
21516
+ // Compiles `nextly.config.ts` so the dev server and the CLI can read it.
21517
+ // An optional peer of `nextly` rather than a dependency, because nothing
21518
+ // that serves a request needs it: a production install omitting dev
21519
+ // dependencies never downloads it.
21520
+ esbuild: "^0.28.1"
21508
21521
  };
21509
21522
  var RUNTIME_RESOLVED_PACKAGES = ["next", "eslint-config-next"];
21510
21523
  var NEXTLY_PACKAGES = [
@@ -21516,7 +21529,8 @@ var NEXTLY_PACKAGES = [
21516
21529
  "@nextlyhq/adapter-mysql",
21517
21530
  "@nextlyhq/adapter-sqlite",
21518
21531
  "@nextlyhq/plugin-form-builder",
21519
- "@nextlyhq/plugin-sdk"
21532
+ "@nextlyhq/plugin-sdk",
21533
+ "@nextlyhq/eslint-plugin"
21520
21534
  ];
21521
21535
  var resolvedNextlyVersions = /* @__PURE__ */ new Map();
21522
21536
  async function fetchLatestVersion(pkg, channel = "latest") {
@@ -21563,7 +21577,11 @@ async function resolveRuntimeVersions() {
21563
21577
  }
21564
21578
  async function generatePackageJson(projectName, database, useYalc = false, projectType = "blank", templateDirs = [], targetDir) {
21565
21579
  if (projectType === "plugin") {
21566
- return generatePluginPackageJson(projectName, useYalc);
21580
+ return generatePluginPackageJson(
21581
+ projectName,
21582
+ useYalc,
21583
+ templateNextlyChannel(projectType)
21584
+ );
21567
21585
  }
21568
21586
  const runtimeVersions = await resolveRuntimeVersions();
21569
21587
  const dependencies = {
@@ -21598,7 +21616,11 @@ async function generatePackageJson(projectName, database, useYalc = false, proje
21598
21616
  "@tailwindcss/postcss": PINNED_VERSIONS["@tailwindcss/postcss"],
21599
21617
  tailwindcss: PINNED_VERSIONS.tailwindcss,
21600
21618
  eslint: PINNED_VERSIONS.eslint,
21601
- "eslint-config-next": runtimeVersions["eslint-config-next"]
21619
+ "eslint-config-next": runtimeVersions["eslint-config-next"],
21620
+ // Declared HERE rather than inherited: `nextly` takes esbuild as an
21621
+ // optional peer, so nothing installs it on a project's behalf. Without it
21622
+ // the dev server cannot read `nextly.config.ts`.
21623
+ esbuild: PINNED_VERSIONS.esbuild
21602
21624
  };
21603
21625
  const shipsSearchIndex = targetDir ? await projectHasSearchIndexScript(targetDir) : false;
21604
21626
  if (shipsSearchIndex) devDependencies.pagefind = "^1.1.0";
@@ -21659,10 +21681,10 @@ async function resolvePluginNextlyRange(useYalc) {
21659
21681
  const v2 = versions["nextly"];
21660
21682
  return v2 && v2 !== "latest" ? v2 : ">=0.0.0";
21661
21683
  }
21662
- async function generatePluginPackageJson(projectName, useYalc) {
21663
- const versions = useYalc ? {} : await resolveNextlyVersions();
21684
+ async function generatePluginPackageJson(projectName, useYalc, channel) {
21685
+ const versions = useYalc ? {} : await resolveNextlyVersions(channel);
21664
21686
  const runtimeVersions = await resolveRuntimeVersions();
21665
- const range = (pkg2) => versions[pkg2] ?? "latest";
21687
+ const range = (pkg2) => versions[pkg2] ?? channel;
21666
21688
  const peerDependencies = {
21667
21689
  nextly: range("nextly"),
21668
21690
  "@nextlyhq/admin": range("@nextlyhq/admin"),
@@ -21694,7 +21716,11 @@ async function generatePluginPackageJson(projectName, useYalc) {
21694
21716
  vitest: "^4.1.0",
21695
21717
  eslint: PINNED_VERSIONS.eslint,
21696
21718
  "@eslint/js": PINNED_VERSIONS.eslint,
21697
- "typescript-eslint": "^8.0.0"
21719
+ "typescript-eslint": "^8.0.0",
21720
+ // The design-token rules the admin holds itself to. Shipped to the author
21721
+ // rather than documented at them: a rule that runs only in Nextly's own
21722
+ // repository governs the first-party plugins and nothing anyone else builds.
21723
+ "@nextlyhq/eslint-plugin": range("@nextlyhq/eslint-plugin")
21698
21724
  };
21699
21725
  const pkg = {
21700
21726
  name: projectName,