@npmcli/installed-package-contents
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -26,2 +26,3 @@ // to GET CONTENTS for folder at PATH (which may be a PACKAGE): | ||
const {relative, resolve, basename, dirname} = require('path') | ||
const normalizePackageBin = require('npm-normalize-package-bin') | ||
@@ -31,3 +32,3 @@ const readPackage = ({ path, packageJsonCache }) => | ||
: readFile(path).then(json => { | ||
const pkg = JSON.parse(json) | ||
const pkg = normalizePackageBin(JSON.parse(json)) | ||
packageJsonCache.set(path, pkg) | ||
@@ -34,0 +35,0 @@ return pkg |
{ | ||
"name": "@npmcli/installed-package-contents", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Get the list of files installed in a package in node_modules, including bundled dependencies", | ||
@@ -24,2 +24,3 @@ "author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)", | ||
"npm-bundled": "^1.1.0", | ||
"npm-normalize-package-bin": "^1.0.1", | ||
"read-package-json-fast": "^1.1.0", | ||
@@ -26,0 +27,0 @@ "readdir-scoped-modules": "^1.1.0" |
12190
200
4