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.
@@ -25192,7 +25192,15 @@ async function walkSourceFiles(root) {
25192
25192
  function projectUsesFormBuilder(projectType) {
25193
25193
  return PROJECT_TYPES_WITH_FORM_BUILDER.has(projectType);
25194
25194
  }
25195
- var CONTENT_TEMPLATE_TYPES = /* @__PURE__ */ new Set(["blog"]);
25195
+ var CONTENT_TEMPLATE_TYPES = /* @__PURE__ */ new Set([
25196
+ "blog",
25197
+ // The plugin template installs `@nextlyhq/eslint-plugin` for the design-token
25198
+ // rules, and that package exists on `alpha` only — `latest` is the conservative
25199
+ // tag and lags the active release line. Pinned to `latest` a plugin scaffold
25200
+ // would resolve a version of it that predates the rules, exactly as a content
25201
+ // scaffold would resolve a `nextly` missing the helpers its pages import.
25202
+ "plugin"
25203
+ ]);
25196
25204
  function templateNextlyChannel(projectType) {
25197
25205
  return CONTENT_TEMPLATE_TYPES.has(projectType) ? "alpha" : "latest";
25198
25206
  }
@@ -25480,7 +25488,12 @@ var PINNED_VERSIONS = {
25480
25488
  "@types/react-dom": "^19",
25481
25489
  "@tailwindcss/postcss": "^4",
25482
25490
  tailwindcss: "^4",
25483
- eslint: "^9"
25491
+ eslint: "^9",
25492
+ // Compiles `nextly.config.ts` so the dev server and the CLI can read it.
25493
+ // An optional peer of `nextly` rather than a dependency, because nothing
25494
+ // that serves a request needs it: a production install omitting dev
25495
+ // dependencies never downloads it.
25496
+ esbuild: "^0.28.1"
25484
25497
  };
25485
25498
  var RUNTIME_RESOLVED_PACKAGES = ["next", "eslint-config-next"];
25486
25499
  var NEXTLY_PACKAGES = [
@@ -25492,7 +25505,8 @@ var NEXTLY_PACKAGES = [
25492
25505
  "@nextlyhq/adapter-mysql",
25493
25506
  "@nextlyhq/adapter-sqlite",
25494
25507
  "@nextlyhq/plugin-form-builder",
25495
- "@nextlyhq/plugin-sdk"
25508
+ "@nextlyhq/plugin-sdk",
25509
+ "@nextlyhq/eslint-plugin"
25496
25510
  ];
25497
25511
  var resolvedNextlyVersions = /* @__PURE__ */ new Map();
25498
25512
  async function fetchLatestVersion(pkg, channel = "latest") {
@@ -25539,7 +25553,11 @@ async function resolveRuntimeVersions() {
25539
25553
  }
25540
25554
  async function generatePackageJson(projectName, database, useYalc = false, projectType = "blank", templateDirs = [], targetDir) {
25541
25555
  if (projectType === "plugin") {
25542
- return generatePluginPackageJson(projectName, useYalc);
25556
+ return generatePluginPackageJson(
25557
+ projectName,
25558
+ useYalc,
25559
+ templateNextlyChannel(projectType)
25560
+ );
25543
25561
  }
25544
25562
  const runtimeVersions = await resolveRuntimeVersions();
25545
25563
  const dependencies = {
@@ -25574,7 +25592,11 @@ async function generatePackageJson(projectName, database, useYalc = false, proje
25574
25592
  "@tailwindcss/postcss": PINNED_VERSIONS["@tailwindcss/postcss"],
25575
25593
  tailwindcss: PINNED_VERSIONS.tailwindcss,
25576
25594
  eslint: PINNED_VERSIONS.eslint,
25577
- "eslint-config-next": runtimeVersions["eslint-config-next"]
25595
+ "eslint-config-next": runtimeVersions["eslint-config-next"],
25596
+ // Declared HERE rather than inherited: `nextly` takes esbuild as an
25597
+ // optional peer, so nothing installs it on a project's behalf. Without it
25598
+ // the dev server cannot read `nextly.config.ts`.
25599
+ esbuild: PINNED_VERSIONS.esbuild
25578
25600
  };
25579
25601
  const shipsSearchIndex = targetDir ? await projectHasSearchIndexScript(targetDir) : false;
25580
25602
  if (shipsSearchIndex) devDependencies.pagefind = "^1.1.0";
@@ -25635,10 +25657,10 @@ async function resolvePluginNextlyRange(useYalc) {
25635
25657
  const v2 = versions["nextly"];
25636
25658
  return v2 && v2 !== "latest" ? v2 : ">=0.0.0";
25637
25659
  }
25638
- async function generatePluginPackageJson(projectName, useYalc) {
25639
- const versions = useYalc ? {} : await resolveNextlyVersions();
25660
+ async function generatePluginPackageJson(projectName, useYalc, channel) {
25661
+ const versions = useYalc ? {} : await resolveNextlyVersions(channel);
25640
25662
  const runtimeVersions = await resolveRuntimeVersions();
25641
- const range = (pkg2) => versions[pkg2] ?? "latest";
25663
+ const range = (pkg2) => versions[pkg2] ?? channel;
25642
25664
  const peerDependencies = {
25643
25665
  nextly: range("nextly"),
25644
25666
  "@nextlyhq/admin": range("@nextlyhq/admin"),
@@ -25670,7 +25692,11 @@ async function generatePluginPackageJson(projectName, useYalc) {
25670
25692
  vitest: "^4.1.0",
25671
25693
  eslint: PINNED_VERSIONS.eslint,
25672
25694
  "@eslint/js": PINNED_VERSIONS.eslint,
25673
- "typescript-eslint": "^8.0.0"
25695
+ "typescript-eslint": "^8.0.0",
25696
+ // The design-token rules the admin holds itself to. Shipped to the author
25697
+ // rather than documented at them: a rule that runs only in Nextly's own
25698
+ // repository governs the first-party plugins and nothing anyone else builds.
25699
+ "@nextlyhq/eslint-plugin": range("@nextlyhq/eslint-plugin")
25674
25700
  };
25675
25701
  const pkg = {
25676
25702
  name: projectName,
@@ -29732,5 +29758,5 @@ async function createNextly(options = {}) {
29732
29758
  */
29733
29759
 
29734
29760
  export { __commonJS, __require, __toESM, capture, createNextly, init, resolveProjectArg, shutdown, validateProjectName };
29735
- //# sourceMappingURL=chunk-SEU6FVET.mjs.map
29736
- //# sourceMappingURL=chunk-SEU6FVET.mjs.map
29761
+ //# sourceMappingURL=chunk-CTBK76CF.mjs.map
29762
+ //# sourceMappingURL=chunk-CTBK76CF.mjs.map