From 0c04413bef30b442bbd7ebc52c5a564ba75cb216 Mon Sep 17 00:00:00 2001 From: Chris Olszewski Date: Fri, 26 Jul 2024 13:56:49 -0500 Subject: [PATCH] chore(schema): update schema with dangerouslyDisablePackageManagerCheck --- packages/turbo-types/src/types/config.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/turbo-types/src/types/config.ts b/packages/turbo-types/src/types/config.ts index ef78331b76395..e908766a71d11 100644 --- a/packages/turbo-types/src/types/config.ts +++ b/packages/turbo-types/src/types/config.ts @@ -56,7 +56,11 @@ export interface WorkspaceSchema extends BaseSchema { export type LegacyWorkspaceSchema = WorkspaceSchema & LegacyBaseSchema; -export type WorkspaceSchemaV1 = Omit & BaseSchemaV1; +export type WorkspaceSchemaV1 = Omit< + WorkspaceSchema, + "tasks" | "dangerouslyDisablePackageManagerCheck" +> & + BaseSchemaV1; export interface RootSchema extends BaseSchema { /** @@ -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;