"use strict";
/* Socket Lib - Built with rolldown */
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const require_primordials_map_set = require('../../../primordials/map-set.js');
const require_eco_npm_npm_flags = require('../npm/flags.js');

//#region src/eco/npm/pnpm/flags.ts
/**
* @file Pnpm CLI flag predicates. pnpm reuses npm's `--loglevel` flag verbatim,
*   so isPnpmLoglevelFlag is an explicit alias of isNpmLoglevelFlag rather than
*   a separate implementation.
*/
const pnpmIgnoreScriptsFlags = new require_primordials_map_set.SetCtor(["--ignore-scripts", "--no-ignore-scripts"]);
const pnpmFrozenLockfileFlags = new require_primordials_map_set.SetCtor(["--frozen-lockfile", "--no-frozen-lockfile"]);
const pnpmInstallCommands = new require_primordials_map_set.SetCtor(["install", "i"]);
/**
* Check if a command argument is a pnpm frozen-lockfile flag.
*
* @example
*   ;```typescript
*   isPnpmFrozenLockfileFlag('--frozen-lockfile') // true
*   isPnpmFrozenLockfileFlag('--no-frozen-lockfile') // true
*   isPnpmFrozenLockfileFlag('--save') // false
*   ```
*/
/*@__NO_SIDE_EFFECTS__*/
function isPnpmFrozenLockfileFlag(cmdArg) {
	return pnpmFrozenLockfileFlags.has(cmdArg);
}
/**
* Check if a command argument is a pnpm ignore-scripts flag.
*
* @example
*   ;```typescript
*   isPnpmIgnoreScriptsFlag('--ignore-scripts') // true
*   isPnpmIgnoreScriptsFlag('--no-ignore-scripts') // true
*   isPnpmIgnoreScriptsFlag('--save') // false
*   ```
*/
/*@__NO_SIDE_EFFECTS__*/
function isPnpmIgnoreScriptsFlag(cmdArg) {
	return pnpmIgnoreScriptsFlags.has(cmdArg);
}
/**
* Check if a command argument is a pnpm install command.
*
* @example
*   ;```typescript
*   isPnpmInstallCommand('install') // true
*   isPnpmInstallCommand('i') // true
*   isPnpmInstallCommand('run') // false
*   ```
*/
/*@__NO_SIDE_EFFECTS__*/
function isPnpmInstallCommand(cmdArg) {
	return pnpmInstallCommands.has(cmdArg);
}
/**
* Alias for isNpmLoglevelFlag — pnpm uses the same `--loglevel` surface.
*/
const isPnpmLoglevelFlag = require_eco_npm_npm_flags.isNpmLoglevelFlag;
const PNPM_INSTALL_LIKE_COMMANDS = new require_primordials_map_set.SetCtor([
	"install",
	"i",
	"add",
	"update",
	"up",
	"remove",
	"rm",
	"link",
	"ln",
	"unlink",
	"import",
	"rebuild",
	"rb"
]);

//#endregion
exports.PNPM_INSTALL_LIKE_COMMANDS = PNPM_INSTALL_LIKE_COMMANDS;
exports.isPnpmFrozenLockfileFlag = isPnpmFrozenLockfileFlag;
exports.isPnpmIgnoreScriptsFlag = isPnpmIgnoreScriptsFlag;
exports.isPnpmInstallCommand = isPnpmInstallCommand;
exports.isPnpmLoglevelFlag = isPnpmLoglevelFlag;