@contentful/experience-design-system-cli 2.37.1-dev-build-414ce827.0 → 2.37.1-dev-build-e051d273.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/app.js +465 -882
- package/dist/index.js +443 -1798
- package/dist/package.json +1 -1
- package/dist/src/tui/debug-prune.d.ts +7 -0
- package/dist/src/tui/settings/debug-mode/debug-mode-store.d.ts +7 -1
- package/package.json +3 -3
package/dist/package.json
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deletes the debug logs under `<base>/.contentful` that are older than `retentionDays`. It only looks at `.md` files
|
|
3
|
+
* inside the `debug` folder of a session folder, so nothing the import produced or the user put there is touched. A file
|
|
4
|
+
* that cannot be read or deleted is skipped: this runs at startup and must never get in the user's way. Returns how many
|
|
5
|
+
* logs it deleted.
|
|
6
|
+
*/
|
|
7
|
+
export declare function pruneExpiredLogs(base: string, retentionDays: number, now?: number): Promise<number>;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
/** How long a debug log is kept before the CLI deletes it. Only these values are offered. */
|
|
2
|
+
export declare const RETENTION_CHOICES: readonly [30, 60, 90];
|
|
3
|
+
type RetentionDays = (typeof RETENTION_CHOICES)[number];
|
|
1
4
|
export type DebugModeSetting = {
|
|
2
5
|
enabled: boolean;
|
|
6
|
+
retentionDays: RetentionDays;
|
|
3
7
|
};
|
|
4
8
|
export declare function readDebugModeSetting(): Promise<DebugModeSetting>;
|
|
5
|
-
|
|
9
|
+
/** Saves the given fields and keeps the others, so turning logging off does not forget the retention. */
|
|
10
|
+
export declare function writeDebugModeSetting(change: Partial<DebugModeSetting>): Promise<void>;
|
|
11
|
+
export {};
|
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-
|
|
3
|
+
"version": "2.37.1-dev-build-e051d273.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"ts-morph": "^27.0.2",
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
47
|
"zod": "^4.6.5",
|
|
48
|
-
"@contentful/experience-design-system-
|
|
49
|
-
"@contentful/experience-design-system-
|
|
48
|
+
"@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-e051d273.0",
|
|
49
|
+
"@contentful/experience-design-system-types": "2.37.1-dev-build-e051d273.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@tsconfig/node24": "^24.0.4",
|