Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(schema): update schema with dangerouslyDisablePackageManagerCheck #8856

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was only added in 2.x so don't have it present in the v1 schema

> &
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
Loading