Files
pnpm/config/reader/tsconfig.json
Zoltan Kochan ff7733ce21 feat: add runtimeOnFail setting (#11277)
* feat: add runtimeOnFail setting

Adds a `runtimeOnFail` config setting ('ignore' | 'warn' | 'error' |
'download') that overrides the `onFail` field on `devEngines.runtime`
and `engines.runtime` in the root project's package.json. This makes
it possible to opt into (or out of) runtime auto-download without
changing the project manifest.

* fix: skip runtime download when version is missing

Without a version, convertEnginesRuntimeToDependencies would write
`runtime:undefined` into the manifest. Warn and skip instead.

* feat: apply runtimeOnFail override during install

The config reader override only mutates the context's rootProjectManifest,
but installDeps reads the manifest fresh via tryReadProjectManifest and
findWorkspaceProjects. Apply the override there too so `runtimeOnFail`
actually affects what gets installed. Adds an e2e test covering both
download and ignore overrides through the real CLI bundle.
2026-04-17 12:00:17 +02:00

56 lines
944 B
JSON

{
"extends": "@pnpm/tsconfig",
"compilerOptions": {
"outDir": "lib",
"rootDir": "src"
},
"include": [
"src/**/*.ts",
"../../__typings__/**/*.d.ts"
],
"references": [
{
"path": "../../__utils__/prepare"
},
{
"path": "../../__utils__/test-fixtures"
},
{
"path": "../../catalogs/config"
},
{
"path": "../../catalogs/types"
},
{
"path": "../../core/constants"
},
{
"path": "../../core/error"
},
{
"path": "../../core/types"
},
{
"path": "../../hooks/pnpmfile"
},
{
"path": "../../network/git-utils"
},
{
"path": "../../pkg-manifest/utils"
},
{
"path": "../../text/naming-cases"
},
{
"path": "../../workspace/project-manifest-reader"
},
{
"path": "../../workspace/workspace-manifest-reader"
},
{
"path": "../matcher"
}
]
}