Skip to content

Commit

Permalink
chore(schema): update schema with dangerouslyDisablePackageManagerCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-olszewski committed Jul 26, 2024
1 parent b356f70 commit 0c04413
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion packages/turbo-types/src/types/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ export interface WorkspaceSchema extends BaseSchema {

export type LegacyWorkspaceSchema = WorkspaceSchema & LegacyBaseSchema;

export type WorkspaceSchemaV1 = Omit<WorkspaceSchema, "tasks"> & BaseSchemaV1;
export type WorkspaceSchemaV1 = Omit<
WorkspaceSchema,
"tasks" | "dangerouslyDisablePackageManagerCheck"
> &
BaseSchemaV1;

export interface RootSchema extends BaseSchema {
/**
Expand Down Expand Up @@ -127,6 +131,16 @@ export interface RootSchema extends BaseSchema {
* @defaultValue `"stream"`
*/
ui?: UI;

/**
* Disable check for `packageManager` in root `package.json`
*
* This is highly discouraged as it leaves `turbo` dependent on system
* configuration to infer the correct package manager.
*
* Some turbo features are disabled if this is set to true.
*/
dangerouslyDisablePackageManagerCheck?: boolean;
}

export type LegacyRootSchema = RootSchema & LegacyBaseSchema;
Expand Down

0 comments on commit 0c04413

Please sign in to comment.