deps-install
Advanced tools
Comparing version
'use strict'; | ||
const fs = require('fs'); | ||
const { resolve, join, basename, dirname } = require('path'); | ||
const { resolve, join, basename, dirname, sep } = require('path'); | ||
const cp = require('child_process'); | ||
@@ -37,3 +37,3 @@ const { promisify } = require('util'); | ||
} | ||
return filterer.has(entry.path); | ||
return filterer.has(entry.path.replace(sep, '/')); | ||
}, | ||
@@ -113,3 +113,4 @@ depth: 2 | ||
const lockPath = join(rootPath, 'shrinkwrap.yaml'); | ||
if (await exists(lockPath)) return 'pnpm'; | ||
const lockPath2 = join(rootPath, 'pnpm-lock.yaml'); | ||
if (await exists(lockPath) || await exists(lockPath2)) return 'pnpm'; | ||
} | ||
@@ -116,0 +117,0 @@ |
{ | ||
"name": "deps-install", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Check if node_modules match package.json versions. npm / yarn install shortcut.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
6404
1.68%126
0.8%