@namchee/dependent
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -39,3 +39,3 @@ "use strict"; | ||
return new Promise((resolve, reject) => { | ||
const lsCheck = child_process_1.spawn('npm', ['ls', dependency]); | ||
const lsCheck = child_process_1.spawn(/^win/.test(process.platform) ? 'npm.cmd' : 'npm', ['ls', dependency]); | ||
lsCheck.stdout.on('data', (data) => { | ||
@@ -42,0 +42,0 @@ const isInstalled = data.includes(dependency) && |
@@ -0,1 +1,13 @@ | ||
# v0.6.1 (Sun Aug 01 2021) | ||
#### 🐛 Bug Fix | ||
- fix: Use different script when executing on Windows-based machines [#12](https://github.com/Namchee/dependent/pull/12) ([@Namchee](https://github.com/Namchee)) | ||
#### Authors: 1 | ||
- Cristopher ([@Namchee](https://github.com/Namchee)) | ||
--- | ||
# v0.2.0 (Sat Jul 31 2021) | ||
@@ -2,0 +14,0 @@ |
{ | ||
"name": "@namchee/dependent", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Simple utility CLI tool to analyze which files are using a Node dependency 🚀", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:Namchee/dependent.git", |
@@ -72,3 +72,6 @@ import { existsSync } from 'fs'; | ||
return new Promise((resolve, reject) => { | ||
const lsCheck = spawn('npm', ['ls', dependency]) | ||
const lsCheck = spawn( | ||
/^win/.test(process.platform) ? 'npm.cmd' : 'npm', | ||
['ls', dependency], | ||
) | ||
@@ -75,0 +78,0 @@ lsCheck.stdout.on('data', (data) => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57017
1289