这是indexloc提供的服务,不要输入任何密码
Skip to content
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
Contributor 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