@contentful/experience-design-system-types 2.35.1-dev-build-9d6916d7.0 → 2.35.1-dev-build-8636eead.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 +1 -1
- package/dist/src/config/index.js +6 -5
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/src/config/index.js
CHANGED
|
@@ -3,13 +3,14 @@ import { mkdir, readFile, rename, writeFile } from 'node:fs/promises';
|
|
|
3
3
|
import { homedir } from 'node:os';
|
|
4
4
|
import { dirname, join } from 'node:path';
|
|
5
5
|
// The single source of truth for where the CLI keeps files on disk and how settings are read and written.
|
|
6
|
-
//
|
|
6
|
+
// The CLI and the bundled legacy import both use this; nothing else calls homedir() or touches these files.
|
|
7
7
|
//
|
|
8
8
|
// ~/.contentful/experience-design-system-cli/
|
|
9
|
-
// config.json every setting: credentials, preferences,
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
9
|
+
// config.json every setting: credentials, preferences, debug mode (mode 0600) [CLI]
|
|
10
|
+
// debug/ per-session debug logs [CLI]
|
|
11
|
+
// state/ runs.json, run history [legacy, until deleted]
|
|
12
|
+
// reviews/ review artifacts [legacy, until deleted]
|
|
13
|
+
// pipeline.db session database, including the generation cache [legacy, until deleted]
|
|
13
14
|
export function configRoot() {
|
|
14
15
|
return process.env['EDS_HOME'] || join(homedir(), '.contentful', 'experience-design-system-cli');
|
|
15
16
|
}
|