Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-script-selector

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-script-selector - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

dist/app.js

@@ -19,3 +19,3 @@ #!/usr/bin/env node

ProgramName: 'NPM Script Selector',
Version: '1.0.2',
Version: '1.0.3',
Description: 'A CLI for finding npm scripts within a package and allowing a user to run them from the command line.',

@@ -53,2 +53,6 @@ Options: {

const selectedScript = answers.selectedScript;
// Get the directory of the package.json file
const packageDir = path.dirname(filePath);
// Change the current working directory to the package directory
process.chdir(packageDir);
// Execute the selected script using `npm run`

@@ -55,0 +59,0 @@ exec(`npm run ${selectedScript}`, (error, stdout, stderr) => {

2

package.json
{
"name": "npm-script-selector",
"version": "1.0.2",
"version": "1.0.3",
"description": "A command line app for finding and running npm scripts within a project.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,3 +12,3 @@ #!/usr/bin/env node

ProgramName: 'NPM Script Selector',
Version: '1.0.2',
Version: '1.0.3',
Description: 'A CLI for finding npm scripts within a package and allowing a user to run them from the command line.',

@@ -50,2 +50,9 @@ Options: {

const selectedScript = answers.selectedScript;
// Get the directory of the package.json file
const packageDir = path.dirname(filePath);
// Change the current working directory to the package directory
process.chdir(packageDir);
// Execute the selected script using `npm run`

@@ -52,0 +59,0 @@ exec(`npm run ${selectedScript}`, (error, stdout, stderr) => {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc