Skip to content

Commit 5c40db1

Browse files
committed
refactor(pnpm): drop option deletes covered by CLI_ONLY_OPTIONS
getFlagsString already skips ignoreScripts, path and frameworkPath for every package manager.
1 parent c6e10a7 commit 5c40db1

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎lib/pnpm-package-manager.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ export class PnpmPackageManager extends BasePackageManager {
4444
if (config.ignoreScripts) {
4545
config["ignore-scripts"] = true;
4646
}
47-
// CLI-internal options must never reach the command line: pnpm, unlike
48-
// npm, hard-fails on unknown options.
49-
delete config.ignoreScripts;
50-
delete config.path;
51-
delete config.frameworkPath;
5247

5348
const packageJsonPath = path.join(pathToSave, "package.json");
5449
const jsonContentBefore = this.$fs.readJson(packageJsonPath);

0 commit comments

Comments
 (0)