diff --git a/packages/nx/src/config/workspace-json-project-json.ts b/packages/nx/src/config/workspace-json-project-json.ts index 61132aa6feb49..f6d42ca32c6c7 100644 --- a/packages/nx/src/config/workspace-json-project-json.ts +++ b/packages/nx/src/config/workspace-json-project-json.ts @@ -139,7 +139,7 @@ export interface ProjectMetadata { }; js?: { packageName: string; - packageExports: undefined | PackageJson['exports']; + packageExports?: PackageJson['exports']; }; }