@gkiely/safe-install 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -38,7 +38,7 @@ export function findInstallScriptDependencies(packageLock, trustedDependencies =
38
38
  const trusted = new Set(trustedDependencies);
39
39
  const found = new Set();
40
40
  for (const [path, pkg] of Object.entries(packageLock.packages ?? {})) {
41
- if (pkg.link) {
41
+ if (path === "" || pkg.link) {
42
42
  continue;
43
43
  }
44
44
  const name = pkg.name ?? packageNameFromPath(path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gkiely/safe-install",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Run npm installs with lifecycle scripts disabled, then rebuild explicitly trusted dependencies.",
5
5
  "author": "Grant Kiely <grant@youneedawiki.com>",
6
6
  "license": "MIT",