From 36e7a267a5a941763d3d351837d83c05498b03aa Mon Sep 17 00:00:00 2001 From: AgentEnder Date: Tue, 11 Oct 2022 18:45:19 -0400 Subject: [PATCH] chore(misc): apply generated docs changes --- docs/generated/packages/angular.json | 14 ++++++++++ docs/generated/packages/cypress.json | 1 + docs/generated/packages/detox.json | 4 +++ docs/generated/packages/esbuild.json | 2 ++ docs/generated/packages/expo.json | 32 +++++++++++++++++++++++ docs/generated/packages/jest.json | 2 ++ docs/generated/packages/js.json | 6 +++++ docs/generated/packages/linter.json | 4 +++ docs/generated/packages/next.json | 6 +++++ docs/generated/packages/node.json | 4 +++ docs/generated/packages/nx-plugin.json | 2 ++ docs/generated/packages/nx.json | 3 +++ docs/generated/packages/react-native.json | 16 ++++++++++++ docs/generated/packages/react.json | 2 ++ docs/generated/packages/rollup.json | 2 ++ docs/generated/packages/storybook.json | 4 +++ docs/generated/packages/web.json | 8 ++++++ docs/generated/packages/webpack.json | 4 +++ docs/generated/packages/workspace.json | 3 +++ packages/nx/src/config/misc-interfaces.ts | 4 +-- packages/nx/src/config/workspaces.ts | 11 +++++--- 21 files changed, 129 insertions(+), 5 deletions(-) diff --git a/docs/generated/packages/angular.json b/docs/generated/packages/angular.json index 5109b689805a7f..53136586c9fdf8 100644 --- a/docs/generated/packages/angular.json +++ b/docs/generated/packages/angular.json @@ -2374,6 +2374,8 @@ "name": "delegate-build", "implementation": "/packages/angular/src/executors/delegate-build/delegate-build.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/draft-07/schema", "title": "Schema for an executor which delegates a build.", "description": "Options for delegating a build to a different target.", @@ -2415,6 +2417,8 @@ "name": "ng-packagr-lite", "implementation": "/packages/angular/src/executors/ng-packagr-lite/ng-packagr-lite.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/schema", "title": "ng-packagr Target", "description": "ng-packagr target options for Build Architect. Use to build library projects.", @@ -2478,6 +2482,8 @@ "name": "package", "implementation": "/packages/angular/src/executors/package/package.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/schema", "title": "ng-packagr Target", "description": "ng-packagr target options for Build Architect. Use to build and package library projects for publishing.", @@ -2543,6 +2549,8 @@ "name": "webpack-browser", "implementation": "/packages/angular/src/builders/webpack-browser/webpack-browser.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/draft-07/schema", "title": "Schema for Webpack Browser", "description": "The webpack-browser executor is very similar to the standard browser builder provided by the Angular Devkit. It allows you to build your Angular application to a build artifact that can be hosted online. There are some key differences: \n- Supports Custom Webpack Configurations \n- Supports Incremental Building", @@ -3220,6 +3228,8 @@ "name": "webpack-dev-server", "implementation": "/packages/angular/src/builders/webpack-dev-server/webpack-dev-server.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/draft-07/schema", "title": "Schema for Webpack Dev Server", "description": "The webpack-dev-server executor is very similar to the standard dev server builder provided by the Angular Devkit. It is usually used in tandem with `@nrwl/angular:webpack-browser` when your Angular application uses a custom webpack configuration.", @@ -3335,6 +3345,8 @@ "name": "module-federation-dev-server", "implementation": "/packages/angular/src/builders/module-federation-dev-server/module-federation-dev-server.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/draft-07/schema", "title": "Schema for Module Federation Dev Server", "description": "The module-federation-dev-server executor is reserved exclusively for use with host Module Federation applications. It allows the user to specify which remote applications should be served with the host.", @@ -3451,6 +3463,8 @@ "name": "file-server", "implementation": "/packages/angular/src/executors/file-server/file-server.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "File Server", "description": "Serve a web application from a folder.", "type": "object", diff --git a/docs/generated/packages/cypress.json b/docs/generated/packages/cypress.json index 86185660655ebe..dcb3460cdeecd5 100644 --- a/docs/generated/packages/cypress.json +++ b/docs/generated/packages/cypress.json @@ -188,6 +188,7 @@ "name": "cypress", "implementation": "/packages/cypress/src/executors/cypress/cypress.impl.ts", "schema": { + "version": 2, "title": "Cypress Target", "description": "Run Cypress for e2e, integration and component testing.", "type": "object", diff --git a/docs/generated/packages/detox.json b/docs/generated/packages/detox.json index cc4289f86230cc..220b74ae2bedee 100644 --- a/docs/generated/packages/detox.json +++ b/docs/generated/packages/detox.json @@ -108,6 +108,8 @@ "name": "build", "implementation": "/packages/detox/src/executors/build/build.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "Run detox build", "description": "Run detox build options.", "type": "object", @@ -138,6 +140,8 @@ "name": "test", "implementation": "/packages/detox/src/executors/test/test.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "Run detox test", "description": "Run detox test options.", "type": "object", diff --git a/docs/generated/packages/esbuild.json b/docs/generated/packages/esbuild.json index 07c09aec0bdb65..11db83b066a1dc 100644 --- a/docs/generated/packages/esbuild.json +++ b/docs/generated/packages/esbuild.json @@ -116,6 +116,8 @@ "name": "esbuild", "implementation": "/packages/esbuild/src/executors/esbuild/esbuild.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "esbuild (experimental)", "description": "Bundle a package for different platforms. Note: declaration (*.d.ts) file are not currently generated.", "cli": "nx", diff --git a/docs/generated/packages/expo.json b/docs/generated/packages/expo.json index 58790c874f16bf..c30204c524df76 100644 --- a/docs/generated/packages/expo.json +++ b/docs/generated/packages/expo.json @@ -330,6 +330,8 @@ "name": "update", "implementation": "/packages/expo/src/executors/update/update.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/schema", "$id": "NxExpoEasUpdate", "cli": "nx", @@ -401,6 +403,8 @@ "name": "build", "implementation": "/packages/expo/src/executors/build/build.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/schema", "$id": "NxExpoEasBuild", "cli": "nx", @@ -466,6 +470,8 @@ "name": "build-list", "implementation": "/packages/expo/src/executors/build-list/build-list.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/schema", "$id": "NxExpoEasBuildList", "cli": "nx", @@ -546,6 +552,8 @@ "name": "download", "implementation": "/packages/expo/src/executors/download/download.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/schema", "$id": "NxExpoDownloadEasBuild", "cli": "nx", @@ -611,6 +619,8 @@ "name": "build-ios", "implementation": "/packages/expo/src/executors/build-ios/build-ios.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/schema", "$id": "NxExpoBuildIOS", "cli": "nx", @@ -708,6 +718,8 @@ "name": "build-android", "implementation": "/packages/expo/src/executors/build-android/build-android.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/schema", "$id": "NxExpoBuildAndroid", "cli": "nx", @@ -771,6 +783,8 @@ "name": "build-web", "implementation": "/packages/expo/src/executors/build-web/build-web.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/schema", "$id": "NxExpoBuildWeb", "cli": "nx", @@ -804,6 +818,8 @@ "name": "build-status", "implementation": "/packages/expo/src/executors/build-status/build-status.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/schema", "$id": "NxExpoBuildStatus", "cli": "nx", @@ -828,6 +844,8 @@ "name": "publish", "implementation": "/packages/expo/src/executors/publish/publish.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "cli": "nx", "$id": "NxExpoPublish", "$schema": "http://json-schema.org/schema", @@ -879,6 +897,8 @@ "name": "publish-set", "implementation": "/packages/expo/src/executors/publish-set/publish-set.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "cli": "nx", "$id": "NxExpoPublishSet", "$schema": "http://json-schema.org/schema", @@ -907,6 +927,8 @@ "name": "rollback", "implementation": "/packages/expo/src/executors/rollback/rollback.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "cli": "nx", "$id": "NxExpoRollback", "$schema": "http://json-schema.org/schema", @@ -939,6 +961,8 @@ "name": "run", "implementation": "/packages/expo/src/executors/run/run.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "cli": "nx", "$id": "NxExpoRun", "$schema": "http://json-schema.org/schema", @@ -999,6 +1023,8 @@ "name": "start", "implementation": "/packages/expo/src/executors/start/start.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "cli": "nx", "$id": "NxExpoStart", "$schema": "http://json-schema.org/schema", @@ -1090,6 +1116,8 @@ "name": "sync-deps", "implementation": "/packages/expo/src/executors/sync-deps/sync-deps.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "cli": "nx", "$id": "NxExpoSyncDeps", "$schema": "http://json-schema.org/schema", @@ -1113,6 +1141,8 @@ "name": "ensure-symlink", "implementation": "/packages/expo/src/executors/ensure-symlink/ensure-symlink.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "cli": "nx", "$id": "NxExpoEnsureSymlink", "$schema": "http://json-schema.org/schema", @@ -1131,6 +1161,8 @@ "name": "eject", "implementation": "/packages/expo/src/executors/eject/eject.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "cli": "nx", "$id": "NxExpoEject", "$schema": "http://json-schema.org/schema", diff --git a/docs/generated/packages/jest.json b/docs/generated/packages/jest.json index 1584e23d8efcc2..cad6856d523dc9 100644 --- a/docs/generated/packages/jest.json +++ b/docs/generated/packages/jest.json @@ -141,6 +141,8 @@ "implementation": "/packages/jest/src/executors/jest/jest.impl.ts", "batchImplementation": "./src/executors/jest/jest.impl#batchJest", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "Jest Builder", "description": "Jest target options for Build Facade.", "cli": "nx", diff --git a/docs/generated/packages/js.json b/docs/generated/packages/js.json index ee985510ed7287..52aad649f4d2b1 100644 --- a/docs/generated/packages/js.json +++ b/docs/generated/packages/js.json @@ -212,6 +212,8 @@ "name": "tsc", "implementation": "/packages/js/src/executors/tsc/tsc.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "Typescript Build Target", "description": "Builds using TypeScript.", "cli": "nx", @@ -386,6 +388,8 @@ "name": "swc", "implementation": "/packages/js/src/executors/swc/swc.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/schema", "cli": "nx", "title": "Typescript Build Target", @@ -543,6 +547,8 @@ "name": "node", "implementation": "/packages/js/src/executors/node/node.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/schema", "cli": "nx", "title": "Node executor", diff --git a/docs/generated/packages/linter.json b/docs/generated/packages/linter.json index 17db0f3fa83f50..a18bd676b02e00 100644 --- a/docs/generated/packages/linter.json +++ b/docs/generated/packages/linter.json @@ -95,6 +95,8 @@ "name": "lint", "implementation": "/packages/linter/src/executors/lint/lint.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/schema", "title": "Lint Target", "description": "Linter.", @@ -222,6 +224,8 @@ "name": "eslint", "implementation": "/packages/linter/src/executors/eslint/lint.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/schema", "title": "ESLint Lint Target", "description": "ESLint Lint Target.", diff --git a/docs/generated/packages/next.json b/docs/generated/packages/next.json index 5e73b5afa48a45..cb1fa58b73c251 100644 --- a/docs/generated/packages/next.json +++ b/docs/generated/packages/next.json @@ -620,6 +620,8 @@ "name": "build", "implementation": "/packages/next/src/executors/build/build.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/schema", "cli": "nx", "title": "Next Build", @@ -683,6 +685,8 @@ "name": "server", "implementation": "/packages/next/src/executors/server/server.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "cli": "nx", "title": "Next Serve", "description": "Serve a Next.js app.", @@ -748,6 +752,8 @@ "name": "export", "implementation": "/packages/next/src/executors/export/export.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "cli": "nx", "title": "Next Export", "description": "Export a Next.js application. The exported application is located at `dist/$outputPath/exported`.", diff --git a/docs/generated/packages/node.json b/docs/generated/packages/node.json index b0b3126583b509..db529fab51c553 100644 --- a/docs/generated/packages/node.json +++ b/docs/generated/packages/node.json @@ -275,6 +275,8 @@ "name": "webpack", "implementation": "/packages/node/src/executors/webpack/webpack.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "Node Application Build Target", "description": "Node application build target options for Build Facade.", "cli": "nx", @@ -562,6 +564,8 @@ "name": "node", "implementation": "/packages/node/src/executors/node/node.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "$schema": "http://json-schema.org/schema", "cli": "nx", "title": "Node executor", diff --git a/docs/generated/packages/nx-plugin.json b/docs/generated/packages/nx-plugin.json index 7e703c06df261a..b1fe356a7cfa43 100644 --- a/docs/generated/packages/nx-plugin.json +++ b/docs/generated/packages/nx-plugin.json @@ -370,6 +370,8 @@ "name": "e2e", "implementation": "/packages/nx-plugin/src/executors/e2e/e2e.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "Nx Plugin Playground Target", "description": "Creates a playground for a Nx Plugin.", "cli": "nx", diff --git a/docs/generated/packages/nx.json b/docs/generated/packages/nx.json index 7565ac9837d81d..8e861326bd3259 100644 --- a/docs/generated/packages/nx.json +++ b/docs/generated/packages/nx.json @@ -156,6 +156,7 @@ "name": "noop", "implementation": "/packages/nx/src/executors/noop/noop.impl.ts", "schema": { + "version": 2, "title": "Noop", "description": "An executor that does nothing", "type": "object", @@ -174,6 +175,7 @@ "name": "run-commands", "implementation": "/packages/nx/src/executors/run-commands/run-commands.impl.ts", "schema": { + "version": 2, "title": "Run Commands", "description": "Run any custom commands with Nx.", "type": "object", @@ -305,6 +307,7 @@ "name": "run-script", "implementation": "/packages/nx/src/executors/run-script/run-script.impl.ts", "schema": { + "version": 2, "title": "Run Script", "description": "Run any NPM script of a project in the project's root directory.", "type": "object", diff --git a/docs/generated/packages/react-native.json b/docs/generated/packages/react-native.json index a71514e02827f1..bb5018aaa07bb1 100644 --- a/docs/generated/packages/react-native.json +++ b/docs/generated/packages/react-native.json @@ -532,6 +532,8 @@ "name": "run-android", "implementation": "/packages/react-native/src/executors/run-android/run-android.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "cli": "nx", "$id": "NxReactNativeRunAndroid", "$schema": "http://json-schema.org/schema", @@ -617,6 +619,8 @@ "name": "run-ios", "implementation": "/packages/react-native/src/executors/run-ios/run-ios.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "cli": "nx", "$id": "NxReactNativeRunIos", "$schema": "http://json-schema.org/schema", @@ -702,6 +706,8 @@ "name": "bundle", "implementation": "/packages/react-native/src/executors/bundle/bundle.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "cli": "nx", "$id": "NxReactNativeBundle", "$schema": "http://json-schema.org/schema", @@ -781,6 +787,8 @@ "name": "build-android", "implementation": "/packages/react-native/src/executors/build-android/build-android.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "cli": "nx", "$id": "NxReactNativeBuildAndroid", "$schema": "http://json-schema.org/schema", @@ -813,6 +821,8 @@ "name": "start", "implementation": "/packages/react-native/src/executors/start/start.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "cli": "nx", "$id": "NxReactNativeStart", "$schema": "http://json-schema.org/schema", @@ -847,6 +857,8 @@ "name": "sync-deps", "implementation": "/packages/react-native/src/executors/sync-deps/sync-deps.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "cli": "nx", "$id": "NxReactNativeSyncDeps", "$schema": "http://json-schema.org/schema", @@ -878,6 +890,8 @@ "name": "ensure-symlink", "implementation": "/packages/react-native/src/executors/ensure-symlink/ensure-symlink.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "cli": "nx", "$id": "NxReactNativeEnsureSymlink", "$schema": "http://json-schema.org/schema", @@ -896,6 +910,8 @@ "name": "storybook", "implementation": "/packages/react-native/src/executors/storybook/storybook.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "React Native Storybook Load Stories", "cli": "nx", "description": "Load stories for react native.", diff --git a/docs/generated/packages/react.json b/docs/generated/packages/react.json index 41fcbe916a7ab1..669062729f9707 100644 --- a/docs/generated/packages/react.json +++ b/docs/generated/packages/react.json @@ -1357,6 +1357,8 @@ "name": "module-federation-dev-server", "implementation": "/packages/react/src/executors/module-federation-dev-server/module-federation-dev-server.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "Module Federation Dev Server", "description": "Serve a web application.", "cli": "nx", diff --git a/docs/generated/packages/rollup.json b/docs/generated/packages/rollup.json index 901e22db97732d..3f402d657530a6 100644 --- a/docs/generated/packages/rollup.json +++ b/docs/generated/packages/rollup.json @@ -116,6 +116,8 @@ "name": "rollup", "implementation": "/packages/rollup/src/executors/rollup/rollup.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "Web Library Rollup Target (Experimental)", "description": "Packages a library for different web usages (ESM, CommonJS).", "cli": "nx", diff --git a/docs/generated/packages/storybook.json b/docs/generated/packages/storybook.json index de9dbf16742ba1..d130bfe5998ef1 100644 --- a/docs/generated/packages/storybook.json +++ b/docs/generated/packages/storybook.json @@ -274,6 +274,8 @@ "name": "storybook", "implementation": "/packages/storybook/src/executors/storybook/storybook.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "Storybook Dev Builder", "cli": "nx", "description": "Serve up storybook in development mode.", @@ -383,6 +385,8 @@ "name": "build", "implementation": "/packages/storybook/src/executors/build-storybook/build-storybook.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "Storybook Builder", "cli": "nx", "description": "Build storybook in production mode.", diff --git a/docs/generated/packages/web.json b/docs/generated/packages/web.json index 90e19b4cd2bf45..4898586840241d 100644 --- a/docs/generated/packages/web.json +++ b/docs/generated/packages/web.json @@ -170,6 +170,8 @@ "name": "webpack", "implementation": "/packages/web/src/executors/webpack/webpack.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "Webpack Executor", "description": "Builds web applications using webpack.", "cli": "nx", @@ -675,6 +677,8 @@ "name": "rollup", "implementation": "/packages/web/src/executors/rollup/rollup.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "Web Library Rollup Target (Experimental)", "description": "Packages a library for different web usages (`UMD`, `ESM`, `CJS`).", "cli": "nx", @@ -846,6 +850,8 @@ "name": "dev-server", "implementation": "/packages/web/src/executors/dev-server/dev-server.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "Web Dev Server", "description": "Serve a web application.", "cli": "nx", @@ -930,6 +936,8 @@ "name": "file-server", "implementation": "/packages/web/src/executors/file-server/file-server.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "File Server", "description": "Serve a web application from a folder.", "type": "object", diff --git a/docs/generated/packages/webpack.json b/docs/generated/packages/webpack.json index 889788c00c3d57..dc1b4258e7ec39 100644 --- a/docs/generated/packages/webpack.json +++ b/docs/generated/packages/webpack.json @@ -117,6 +117,8 @@ "name": "webpack", "implementation": "/packages/webpack/src/executors/webpack/webpack.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "Webpack Executor", "description": "Builds web applications using webpack.", "cli": "nx", @@ -702,6 +704,8 @@ "name": "dev-server", "implementation": "/packages/webpack/src/executors/dev-server/dev-server.impl.ts", "schema": { + "version": 2, + "outputCapture": "direct-nodejs", "title": "Web Dev Server", "description": "Serve a web application.", "cli": "nx", diff --git a/docs/generated/packages/workspace.json b/docs/generated/packages/workspace.json index 8ecd334675052c..bbc92d9468facc 100644 --- a/docs/generated/packages/workspace.json +++ b/docs/generated/packages/workspace.json @@ -677,6 +677,7 @@ "name": "run-commands", "implementation": "/packages/workspace/src/executors/run-commands/run-commands.impl.ts", "schema": { + "version": 2, "title": "Run Commands", "description": "Run any custom commands with Nx.", "type": "object", @@ -809,6 +810,7 @@ "implementation": "/packages/workspace/src/executors/counter/counter.impl.ts", "batchImplementation": "./src/executors/counter/counter.impl#batchCounter", "schema": { + "version": 2, "title": "Counter", "description": "A dummy executor useful for E2E tests.", "type": "object", @@ -831,6 +833,7 @@ "name": "run-script", "implementation": "/packages/workspace/src/executors/run-script/run-script.impl.ts", "schema": { + "version": 2, "title": "Run Script", "description": "Run any NPM script of a project in the project's root directory.", "type": "object", diff --git a/packages/nx/src/config/misc-interfaces.ts b/packages/nx/src/config/misc-interfaces.ts index 633b45aedbb406..6902abc6c1c14e 100644 --- a/packages/nx/src/config/misc-interfaces.ts +++ b/packages/nx/src/config/misc-interfaces.ts @@ -7,6 +7,7 @@ import { } from './workspace-json-project-json'; import type { NxJsonConfiguration } from './nx-json'; +import { Schema } from '../utils/params'; /** * A callback function that is executed after changes are made to the file system */ @@ -89,8 +90,7 @@ export interface ExecutorConfig { schema: { version?: number; outputCapture?: OutputCaptureMethod; - properties: any; - }; + } & Schema; hasherFactory?: () => CustomHasher; implementationFactory: () => Executor; batchImplementationFactory?: () => TaskGraphExecutor; diff --git a/packages/nx/src/config/workspaces.ts b/packages/nx/src/config/workspaces.ts index 7afa67344a2d6d..4639e634e1266b 100644 --- a/packages/nx/src/config/workspaces.ts +++ b/packages/nx/src/config/workspaces.ts @@ -383,13 +383,18 @@ export class Workspaces { } } -function normalizeExecutorSchema(schema: any): ExecutorConfig['schema'] { +function normalizeExecutorSchema( + schema: Partial +): ExecutorConfig['schema'] { const version = (schema.version ??= 1); return { properties: - (!schema.properties || typeof schema.properties !== 'object') ?? {}, + !schema.properties || typeof schema.properties !== 'object' + ? {} + : schema.properties, version, - outputCapture: version < 2 ? 'direct-nodejs' : 'pipe', + outputCapture: + schema.outputCapture ?? version < 2 ? 'direct-nodejs' : 'pipe', }; }