@sandboxsonny/ace-kit 0.6.0 → 0.7.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @sandboxsonny/ace-kit
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 909b1a1: Add `ace-kit doctor`: checks Node, that Ace Kit is installed, the CMS and site the settings point at, the login, the Pages content and the section types, and says what to do about each problem.
8
+ - 584dcb1: The React Router starter made by `ace-kit create` now has the hero, FAQ and gallery sections, like the Astro one, and its published date and button. `ace-kit sync`, `ace-kit doctor` and the dev server look for `*.schema.ts` files in `app/` as well as `src/`. The docs now say a React Router site needs an `index` route as well as the `*` route, because `*` doesn't match `/`.
9
+
3
10
  ## 0.6.0
4
11
 
5
12
  ### Minor Changes
@@ -1,4 +1,4 @@
1
- import { startDevSite, sectionSync } from './chunk-G5FGBOFT.js';
1
+ import { startDevSite, sectionSync } from './chunk-T7DKI2U3.js';
2
2
  import { domainFromSite, hostedAdminOrigin, hostedApiUrl } from './chunk-N5DIMG3X.js';
3
3
  import { envField } from 'astro/config';
4
4
  import { fileURLToPath } from 'url';
@@ -351,8 +351,9 @@ var skippedFolders = /* @__PURE__ */ new Set([
351
351
  ".output",
352
352
  "coverage"
353
353
  ]);
354
- async function findSchemaFiles(root, folder = "src") {
355
- const start = join(root, folder);
354
+ var defaultSchemaFolders = ["src", "app"];
355
+ async function findSchemaFiles(root, folder) {
356
+ const folders = defaultSchemaFolders ;
356
357
  const found = [];
357
358
  async function walk(directory) {
358
359
  let entries;
@@ -370,7 +371,7 @@ async function findSchemaFiles(root, folder = "src") {
370
371
  }
371
372
  }
372
373
  }
373
- await walk(start);
374
+ for (const name of folders) await walk(join(root, name));
374
375
  return found.sort((first, second) => {
375
376
  const [firstName, secondName] = [relative(root, first), relative(root, second)];
376
377
  return firstName < secondName ? -1 : firstName > secondName ? 1 : 0;
package/dist/cli.js CHANGED
@@ -9,8 +9,8 @@ if (major < 22 || major === 22 && minor < 12) {
9
9
  process.exit(1);
10
10
  }
11
11
  try {
12
- const { createRealEnvironment } = await import("./environment-T5K5ZJ2M.js");
13
- const { runCli } = await import("./main-YRQQWLHX.js");
12
+ const { createRealEnvironment } = await import("./environment-J4VYOHDK.js");
13
+ const { runCli } = await import("./main-AGLPUGNN.js");
14
14
  const environment = await createRealEnvironment();
15
15
  process.exit(await runCli(process.argv.slice(2), environment));
16
16
  } catch (error) {
@@ -145,7 +145,7 @@ function createLastApiUrl(path) {
145
145
  }
146
146
 
147
147
  // src/cli/version.ts
148
- var aceKitVersion = true ? "0.6.0" : "development";
148
+ var aceKitVersion = true ? "0.7.0" : "development";
149
149
 
150
150
  // src/cli/environment.ts
151
151
  var runCommand = (command, commandArguments, input) => new Promise((resolve, reject) => {
@@ -201,6 +201,7 @@ async function createRealEnvironment() {
201
201
  platform,
202
202
  hostname: hostname(),
203
203
  version: aceKitVersion,
204
+ nodeVersion: process.versions.node,
204
205
  out: (text) => process.stdout.write(`${text}
205
206
  `),
206
207
  error: (text) => console.error(text),