@contentful/experience-design-system-cli 2.37.1-dev-build-5db7e407.0 → 2.37.1-dev-build-7652d7c0.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-5db7e407.0",
3
+ "version": "2.37.1-dev-build-7652d7c0.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,23 +1,6 @@
1
1
  type Status = 'success' | 'error';
2
2
  type ExitMethod = 'saved' | 'discarded' | 'crashed';
3
- export declare function currentDebugSessionDir(): string | undefined;
4
- /** This terminal session's folder, `<base>/.contentful/<session>/`, or undefined until it is known. */
5
- export declare function currentSessionDir(): string | undefined;
6
- /**
7
- * Starts this terminal session's folder in `base`. The base directory setting being saved passes `replace` so the new
8
- * location wins; the import passes nothing and only starts a session when none exists yet. Fail-open like the rest of
9
- * the logger.
10
- */
11
- export declare function startDebugSessionIn(base: string, { replace }?: {
12
- replace?: boolean | undefined;
13
- }): Promise<void>;
14
- /**
15
- * Where this import run writes everything it produces (tokens.json, .existing-entities.json, components.json): a new
16
- * `dsi-import-N` folder in this session's folder, next to the debug logs. The session is started here, and waited for,
17
- * so the answer does not depend on how quickly the boot-time start finished. Without a session (Debug Mode off, or a
18
- * folder that cannot be created) the files stay in `<project>/.contentful`, as before.
19
- */
20
- export declare function startImportRun(projectPath: string): Promise<string>;
3
+ export declare function currentDebugSessionDir(): string;
21
4
  export declare function startDebugRun({ flow, step, menuOption, inputs, }: {
22
5
  flow: string;
23
6
  step: string;
@@ -8,11 +8,10 @@ export type TokensState = {
8
8
  };
9
9
  interface InspectInput {
10
10
  rawTokensPath: string;
11
- /** The `.contentful` folder: the sessions' `dsi-import` folders sit inside it, and an older `tokens.json` may sit in it. */
12
- contentfulDir: string;
11
+ outDir: string;
13
12
  cache: boolean;
14
13
  }
15
- export declare function inspectTokens({ rawTokensPath, contentfulDir, cache }: InspectInput): Promise<TokensState>;
14
+ export declare function inspectTokens({ rawTokensPath, outDir, cache }: InspectInput): Promise<TokensState>;
16
15
  export declare function gateText({ tokensPath, sourceChanged }: {
17
16
  tokensPath: string;
18
17
  sourceChanged: boolean;
@@ -2,8 +2,6 @@ import type { ExtractionHandoff, ImportHandoff } from '@contentful/experience-de
2
2
  export type TokenStrategy = ImportHandoff['tokens']['strategy'];
3
3
  export interface ExtractionInput {
4
4
  projectPath: string;
5
- /** Where the stage writes tokens.json and the other files. Defaults to `<projectPath>/.contentful`. */
6
- outDir?: string;
7
5
  /** Absolute source files from the path-validation step (collectFiles output). */
8
6
  filePaths: string[];
9
7
  /** Raw tokens file the user pointed at (always set: v2 asks for one). */
@@ -5,7 +5,6 @@ export type V1Credentials = {
5
5
  host?: string;
6
6
  defaultComponentDir?: string;
7
7
  defaultTokenFile?: string;
8
- contentfulBaseDir?: string;
9
8
  [key: string]: string | undefined;
10
9
  };
11
10
  export declare function readCredentials(): Promise<V1Credentials>;
@@ -1,4 +1,4 @@
1
+ import { type CommandFailure } from '@contentful/experience-design-system-backend-pipeline';
1
2
  import type { ApiError } from '../apply/api-client.js';
2
- import type { CommandFailure } from './types.js';
3
3
  export declare function exitWithAnalytics(code: number, fields?: CommandFailure): Promise<never>;
4
4
  export declare function failureFromApiError(error: ApiError): CommandFailure;
@@ -1,6 +1,3 @@
1
+ export { bindAnalyticsSessionId, completeActiveCommand, emitSessionStarted, enrichCommandResult, failActiveCommand, flushAnalytics, isPipelineAnalyticsChild, noteCommandStart, recordApplyOutcome, recordContentfulContext, setCliVersion, setPersistedAnalyticsDisabled, } from '@contentful/experience-design-system-backend-pipeline';
2
+ export type { CommandFailure } from '@contentful/experience-design-system-backend-pipeline';
1
3
  export { exitWithAnalytics, failureFromApiError } from './exit.js';
2
- export { flushAnalytics, setPersistedAnalyticsDisabled } from './client.js';
3
- export { isPipelineAnalyticsChild } from './session.js';
4
- export { bindAnalyticsSessionId, completeActiveCommand, emitSessionStarted, enrichCommandResult, failActiveCommand, noteCommandStart, } from './tracker.js';
5
- export { recordApplyOutcome, recordContentfulContext } from './apply.js';
6
- export type { CommandFailure } from './types.js';