run-script-cli
Advanced tools
+9
-6
@@ -37,10 +37,12 @@ 'use strict'; | ||
| if (agent.name === "bun") { | ||
| index.oe(index.$.bold(index.$.green(`bun add ${scriptValue} | ||
| const cmd = scriptValue ? `bun add ${scriptValue}` : "bun install"; | ||
| index.oe(index.$.bold(index.$.green(`${cmd} | ||
| `))); | ||
| await index.execaCommand(`bun add ${scriptValue}`, { stdio: "inherit", cwd }); | ||
| await index.execaCommand(`${cmd}`, { stdio: "inherit", cwd }); | ||
| } | ||
| if (agent.name === "pnpm") { | ||
| index.oe(index.$.bold(index.$.green(`pnpm add ${scriptValue} | ||
| const cmd = scriptValue ? `pnpm add ${scriptValue}` : "pnpm install"; | ||
| index.oe(index.$.bold(index.$.green(`${cmd} | ||
| `))); | ||
| await index.execaCommand(`pnpm add ${scriptValue}`, { stdio: "inherit", cwd }); | ||
| await index.execaCommand(`${cmd}`, { stdio: "inherit", cwd }); | ||
| } | ||
@@ -53,5 +55,6 @@ if (agent.name === "npm") { | ||
| if (agent.name === "yarn") { | ||
| index.oe(index.$.bold(index.$.green(`yarn add ${scriptValue} | ||
| const cmd = scriptValue ? `yarn add ${scriptValue}` : "yarn install"; | ||
| index.oe(index.$.bold(index.$.green(`${cmd} | ||
| `))); | ||
| await index.execaCommand(`yarn add ${scriptValue}`, { stdio: "inherit", cwd }); | ||
| await index.execaCommand(`${cmd}`, { stdio: "inherit", cwd }); | ||
| } | ||
@@ -58,0 +61,0 @@ } catch { |
+9
-6
@@ -31,10 +31,12 @@ import process from 'node:process'; | ||
| if (agent.name === "bun") { | ||
| oe($.bold($.green(`bun add ${scriptValue} | ||
| const cmd = scriptValue ? `bun add ${scriptValue}` : "bun install"; | ||
| oe($.bold($.green(`${cmd} | ||
| `))); | ||
| await execaCommand(`bun add ${scriptValue}`, { stdio: "inherit", cwd }); | ||
| await execaCommand(`${cmd}`, { stdio: "inherit", cwd }); | ||
| } | ||
| if (agent.name === "pnpm") { | ||
| oe($.bold($.green(`pnpm add ${scriptValue} | ||
| const cmd = scriptValue ? `pnpm add ${scriptValue}` : "pnpm install"; | ||
| oe($.bold($.green(`${cmd} | ||
| `))); | ||
| await execaCommand(`pnpm add ${scriptValue}`, { stdio: "inherit", cwd }); | ||
| await execaCommand(`${cmd}`, { stdio: "inherit", cwd }); | ||
| } | ||
@@ -47,5 +49,6 @@ if (agent.name === "npm") { | ||
| if (agent.name === "yarn") { | ||
| oe($.bold($.green(`yarn add ${scriptValue} | ||
| const cmd = scriptValue ? `yarn add ${scriptValue}` : "yarn install"; | ||
| oe($.bold($.green(`${cmd} | ||
| `))); | ||
| await execaCommand(`yarn add ${scriptValue}`, { stdio: "inherit", cwd }); | ||
| await execaCommand(`${cmd}`, { stdio: "inherit", cwd }); | ||
| } | ||
@@ -52,0 +55,0 @@ } catch { |
+1
-1
| { | ||
| "name": "run-script-cli", | ||
| "version": "0.0.12", | ||
| "version": "0.0.13", | ||
| "license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs", |
System shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 6 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
System shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 6 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
266661
0.09%6728
0.09%