mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 20:20:49 +00:00
Move safe-chain package to packages/safe-chain
This commit is contained in:
parent
fc9a9ca129
commit
7673d32912
68 changed files with 85 additions and 52 deletions
|
|
@ -1,26 +0,0 @@
|
|||
import { deref } from "./cmd-list.js";
|
||||
|
||||
export function getNpmCommandForArgs(args) {
|
||||
if (args.length === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const argCommand = deref(args[0]);
|
||||
if (!argCommand) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return argCommand;
|
||||
}
|
||||
|
||||
export function hasDryRunArg(args) {
|
||||
return args.some((arg) => arg === "--dry-run");
|
||||
}
|
||||
|
||||
export const npmInstallCommand = "install";
|
||||
export const npmCiCommand = "ci";
|
||||
export const npmInstallTestCommand = "install-test";
|
||||
export const npmInstallCiTestCommand = "install-ci-test";
|
||||
export const npmUpdateCommand = "update";
|
||||
export const npmAuditCommand = "audit";
|
||||
export const npmExecCommand = "exec";
|
||||
Loading…
Add table
Add a link
Reference in a new issue