@contentful/experience-design-system-cli 2.35.1-dev-build-392cfefa.0 → 2.35.1-dev-build-1f9cff15.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/bin/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- await import("../dist/index.js");
2
+ await import('../dist/index.js');
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.35.1-dev-build-392cfefa.0",
3
+ "version": "2.35.1-dev-build-1f9cff15.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/legacy/bin/cli.js CHANGED
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  // Suppress the SQLite ExperimentalWarning before any modules load.
3
3
  // Must use dynamic import so this handler registers before sqlite is imported.
4
- process.removeAllListeners("warning");
5
- process.on("warning", (w) => {
6
- if (w.name === "ExperimentalWarning" && w.message.includes("SQLite")) return;
4
+ process.removeAllListeners('warning');
5
+ process.on('warning', (w) => {
6
+ if (w.name === 'ExperimentalWarning' && w.message.includes('SQLite')) return;
7
7
  process.stderr.write(`${w.name}: ${w.message}\n`);
8
8
  });
9
9
 
10
10
  // Auto-rebuild when running from source (dev mode only).
11
11
  // Skipped when src/ doesn't exist (e.g. npm-installed users).
12
- import { existsSync, statSync, readdirSync } from "node:fs";
13
- import { execFileSync } from "node:child_process";
14
- import { fileURLToPath } from "node:url";
15
- import { dirname, resolve, join } from "node:path";
12
+ import { existsSync, statSync, readdirSync } from 'node:fs';
13
+ import { execFileSync } from 'node:child_process';
14
+ import { fileURLToPath } from 'node:url';
15
+ import { dirname, resolve, join } from 'node:path';
16
16
 
17
17
  function newestMtime(dir, depth = 0) {
18
18
  if (depth > 10) return 0;
@@ -22,7 +22,7 @@ function newestMtime(dir, depth = 0) {
22
22
  const full = join(dir, entry.name);
23
23
  if (entry.isDirectory()) {
24
24
  max = Math.max(max, newestMtime(full, depth + 1));
25
- } else if (entry.name.endsWith(".ts") || entry.name.endsWith(".tsx")) {
25
+ } else if (entry.name.endsWith('.ts') || entry.name.endsWith('.tsx')) {
26
26
  max = Math.max(max, statSync(full).mtimeMs);
27
27
  }
28
28
  }
@@ -30,29 +30,25 @@ function newestMtime(dir, depth = 0) {
30
30
  }
31
31
 
32
32
  const __dirname = dirname(fileURLToPath(import.meta.url));
33
- const pkgRoot = resolve(__dirname, "..");
34
- const srcDir = join(pkgRoot, "src");
35
- const distEntry = join(pkgRoot, "dist", "src", "index.js");
33
+ const pkgRoot = resolve(__dirname, '..');
34
+ const srcDir = join(pkgRoot, 'src');
35
+ const distEntry = join(pkgRoot, 'dist', 'src', 'index.js');
36
36
 
37
- if (
38
- existsSync(srcDir) &&
39
- existsSync(distEntry) &&
40
- process.env.NODE_ENV !== "test"
41
- ) {
37
+ if (existsSync(srcDir) && existsSync(distEntry) && process.env.NODE_ENV !== 'test') {
42
38
  const distMtime = statSync(distEntry).mtimeMs;
43
39
  if (newestMtime(srcDir) > distMtime) {
44
- process.stderr.write("⚙ Source changed — rebuilding...\n");
45
- const tsc = join(pkgRoot, "node_modules", ".bin", "tsc");
40
+ process.stderr.write('⚙ Source changed — rebuilding...\n');
41
+ const tsc = join(pkgRoot, 'node_modules', '.bin', 'tsc');
46
42
  try {
47
- execFileSync(tsc, ["-p", join(pkgRoot, "tsconfig.build.json")], {
48
- stdio: ["ignore", "ignore", "inherit"],
43
+ execFileSync(tsc, ['-p', join(pkgRoot, 'tsconfig.build.json')], {
44
+ stdio: ['ignore', 'ignore', 'inherit'],
49
45
  cwd: pkgRoot,
50
46
  });
51
- process.stderr.write("✓ Build complete\n");
47
+ process.stderr.write('✓ Build complete\n');
52
48
  } catch {
53
- process.stderr.write("✗ Build failed — running with existing dist\n");
49
+ process.stderr.write('✗ Build failed — running with existing dist\n');
54
50
  }
55
51
  }
56
52
  }
57
53
 
58
- await import("../dist/src/index.js");
54
+ await import('../dist/src/index.js');
@@ -1,6 +1,5 @@
1
1
  export type AiFlaggable = {
2
2
  aiDecision?: 'accepted' | 'rejected' | 'failed' | null;
3
- needsReview?: boolean;
4
3
  };
5
4
  export declare function isAiFlagged(row: AiFlaggable): boolean;
6
5
  export declare function isDefaultIncluded(row: AiFlaggable): boolean;
@@ -4,7 +4,6 @@ export type ScopeComponent = {
4
4
  componentId: string;
5
5
  aiDecision?: 'accepted' | 'rejected' | 'failed' | null;
6
6
  aiReason?: string | null;
7
- needsReview?: boolean;
8
7
  slots?: Array<{
9
8
  name: string;
10
9
  allowedComponents: string[];