This PR ensures that `overrides` and `resolutions` are in the generated package.json file as well. If they are missing, then using `--frozen-lockfile` will fail due to mismatched overrides in the lockfile. Also adds a `skipOverrides` flag to the affected executors and plugins -- same as `skipPackageManger` that was added previously. Affected executors/plugins: - `@nx/vite:build` - `@nx/webpack:webpack` - `@nx/remix:build` - `@nx/next:build` - `NxAppWebpackPlugin` <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #26884
57 lines
2.0 KiB
JSON
57 lines
2.0 KiB
JSON
{
|
|
"name": "build",
|
|
"implementation": "/packages/remix/src/executors/build/build.impl.ts",
|
|
"schema": {
|
|
"version": 2,
|
|
"outputCapture": "pipe",
|
|
"$schema": "https://json-schema.org/schema",
|
|
"cli": "nx",
|
|
"title": "Remix Build",
|
|
"description": "Build a Remix app.",
|
|
"type": "object",
|
|
"properties": {
|
|
"outputPath": {
|
|
"type": "string",
|
|
"description": "The output path of the generated files.",
|
|
"x-completion-type": "directory",
|
|
"x-priority": "important"
|
|
},
|
|
"includeDevDependenciesInPackageJson": {
|
|
"type": "boolean",
|
|
"description": "Include `devDependencies` in the generated package.json file. By default only production `dependencies` are included.",
|
|
"default": false
|
|
},
|
|
"generatePackageJson": {
|
|
"type": "boolean",
|
|
"description": "Generate package.json file in the output folder.",
|
|
"default": false
|
|
},
|
|
"generateLockfile": {
|
|
"type": "boolean",
|
|
"description": "Generate a lockfile (e.g. package-lock.json) that matches the workspace lockfile to ensure package versions match.",
|
|
"default": false
|
|
},
|
|
"skipOverrides": {
|
|
"type": "boolean",
|
|
"description": "Do not add a `overrides` and `resolutions` entries to the generated package.json file. Only works in conjunction with `generatePackageJson` option."
|
|
},
|
|
"skipPackageManager": {
|
|
"type": "boolean",
|
|
"description": "Do not add a `packageManager` entry to the generated package.json file. Only works in conjunction with `generatePackageJson` option."
|
|
},
|
|
"sourcemap": {
|
|
"type": "boolean",
|
|
"description": "Generate source maps for production.",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": ["outputPath"],
|
|
"presets": []
|
|
},
|
|
"description": "Build a Remix application.",
|
|
"aliases": [],
|
|
"hidden": false,
|
|
"path": "/packages/remix/src/executors/build/schema.json",
|
|
"type": "executor"
|
|
}
|