@contentful/experience-design-system-cli 2.37.1-dev-build-200af99b.0 → 2.37.1-dev-build-6df388e4.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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.37.1-dev-build-200af99b.0",
3
+ "version": "2.37.1-dev-build-6df388e4.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -37,10 +37,12 @@
37
37
  "dev": "node scripts/dev.mjs"
38
38
  },
39
39
  "dependencies": {
40
+ "@contentful/experience-design-system-backend-pipeline": "workspace:*",
40
41
  "@contentful/experience-design-system-types": "workspace:*",
41
42
  "@inkjs/ui": "^2.0.0",
42
43
  "@segment/analytics-node": "^3.0.0",
43
44
  "@vue/compiler-sfc": "^3.5.31",
45
+ "ajv": "^8.18.0",
44
46
  "commander": "^13.1.0",
45
47
  "contentful-management": "^12.17.0",
46
48
  "figures": "6.1.0",
@@ -51,7 +53,8 @@
51
53
  "semver": "^7.7.2",
52
54
  "svelte": "^5.56.4",
53
55
  "ts-morph": "^27.0.2",
54
- "typescript": "^5.9.3"
56
+ "typescript": "^5.9.3",
57
+ "zod": "^4.6.5"
55
58
  },
56
59
  "devDependencies": {
57
60
  "@tsconfig/node24": "^24.0.4",
@@ -15,8 +15,9 @@ interface PipelineResult {
15
15
  };
16
16
  }
17
17
  export interface SpawnV1ImportOptions {
18
- project?: string;
18
+ projectPath?: string;
19
19
  tokens?: string;
20
+ filePaths?: string[];
20
21
  skipCredentials?: boolean;
21
22
  onProgress?: (line: string) => void;
22
23
  }
@@ -0,0 +1,13 @@
1
+ import { collectFiles } from '@contentful/experience-design-system-backend-pipeline';
2
+ import type { FileCounts as LocalFileCounts } from '../logic.js';
3
+ type CollectFilesOutcome = ReturnType<typeof collectFiles>;
4
+ type PipelineFileCounts = Extract<CollectFilesOutcome, {
5
+ ok: true;
6
+ }>['result']['counts'];
7
+ /**
8
+ * The pipeline tracks `svelte` and `md` as their own buckets; this screen
9
+ * does not render those rows yet. Fold them into `other` for display so the
10
+ * total stays consistent with what the user sees.
11
+ */
12
+ export declare function foldSvelteAndMdIntoOther(counts: PipelineFileCounts): LocalFileCounts;
13
+ export {};
@@ -1,2 +1,7 @@
1
- import { type ScanResult } from './logic.js';
1
+ import type { ScanResult } from './logic.js';
2
+ /**
3
+ * Scan the project path using the pipeline's walker so counts shown here
4
+ * match exactly what extract will later walk. Keeps the file list on the ok
5
+ * variant so downstream screens can consume `filePaths` without re-walking.
6
+ */
2
7
  export declare function scanProject(directory: string): Promise<ScanResult>;
@@ -6,6 +6,8 @@ export type ScanFailureCode = 'not-found' | 'permission-denied' | 'is-file' | 'n
6
6
  export type ScanResult = {
7
7
  ok: true;
8
8
  counts: FileCounts;
9
+ filePaths: string[];
10
+ warnings: string[];
9
11
  } | {
10
12
  ok: false;
11
13
  failure: ScanFailureCode;
@@ -30,7 +32,6 @@ interface Key {
30
32
  escape: boolean;
31
33
  return: boolean;
32
34
  }
33
- export declare const IGNORED_DIRECTORIES: Set<string>;
34
35
  export declare function emptyCounts(): FileCounts;
35
36
  export declare function addFile(counts: FileCounts, fileName: string): FileCounts;
36
37
  export declare function mergeCounts(a: FileCounts, b: FileCounts): FileCounts;
@@ -1,7 +1,10 @@
1
1
  import React from 'react';
2
2
  interface PathValidationScreenProps {
3
3
  projectPath: string;
4
- onConfirm: (projectPath: string) => void;
4
+ onConfirm: (result: {
5
+ projectPath: string;
6
+ filePaths: string[];
7
+ }) => void;
5
8
  onChangePath: () => void;
6
9
  onBack: () => void;
7
10
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.37.1-dev-build-200af99b.0",
3
+ "version": "2.37.1-dev-build-6df388e4.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -37,10 +37,12 @@
37
37
  "dev": "node scripts/dev.mjs"
38
38
  },
39
39
  "dependencies": {
40
+ "@contentful/experience-design-system-backend-pipeline": "workspace:*",
40
41
  "@contentful/experience-design-system-types": "workspace:*",
41
42
  "@inkjs/ui": "^2.0.0",
42
43
  "@segment/analytics-node": "^3.0.0",
43
44
  "@vue/compiler-sfc": "^3.5.31",
45
+ "ajv": "^8.18.0",
44
46
  "commander": "^13.1.0",
45
47
  "contentful-management": "^12.17.0",
46
48
  "figures": "6.1.0",
@@ -51,7 +53,8 @@
51
53
  "semver": "^7.7.2",
52
54
  "svelte": "^5.56.4",
53
55
  "ts-morph": "^27.0.2",
54
- "typescript": "^5.9.3"
56
+ "typescript": "^5.9.3",
57
+ "zod": "^4.6.5"
55
58
  },
56
59
  "devDependencies": {
57
60
  "@tsconfig/node24": "^24.0.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.37.1-dev-build-200af99b.0",
3
+ "version": "2.37.1-dev-build-6df388e4.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -31,6 +31,7 @@
31
31
  "@inkjs/ui": "^2.0.0",
32
32
  "@segment/analytics-node": "^3.0.0",
33
33
  "@vue/compiler-sfc": "^3.5.31",
34
+ "ajv": "^8.18.0",
34
35
  "commander": "^13.1.0",
35
36
  "contentful-management": "^12.17.0",
36
37
  "figures": "6.1.0",
@@ -42,7 +43,9 @@
42
43
  "svelte": "^5.56.4",
43
44
  "ts-morph": "^27.0.2",
44
45
  "typescript": "^5.9.3",
45
- "@contentful/experience-design-system-types": "2.37.1-dev-build-200af99b.0"
46
+ "zod": "^4.6.5",
47
+ "@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-6df388e4.0",
48
+ "@contentful/experience-design-system-types": "2.37.1-dev-build-6df388e4.0"
46
49
  },
47
50
  "devDependencies": {
48
51
  "@tsconfig/node24": "^24.0.4",