Skip to content

Commit

Permalink
chore(schema): update schema with dangerouslyDisablePackageManagerChe…
Browse files Browse the repository at this point in the history
…ck (#8856)

### Description

Update schema with config added in
#8738

### Testing Instructions

👀 and `turbo check-types`
  • Loading branch information
chris-olszewski authored Jul 26, 2024
1 parent 9cb7083 commit 234791a
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 234791a

Please sign in to comment.