scriptpal 1.4.0 → 1.4.3

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.
@@ -19,7 +19,7 @@ function getPackageManager() {
19
19
  }
20
20
  }
21
21
 
22
- return packageManagers[largest] || "npm";
22
+ return (largest && largest.id) || "npm";
23
23
  }
24
24
 
25
25
  module.exports = { getPackageManager };
package/bin/index.js CHANGED
@@ -66,9 +66,9 @@ async function main(flags) {
66
66
  return 0;
67
67
  }
68
68
 
69
- spawnScript(pkgManager, args);
70
-
71
69
  config.set(`${process.cwd()}.previous`, { script, parameters });
70
+
71
+ spawnScript(pkgManager, args);
72
72
  }
73
73
 
74
74
  async function runLocalScript(script) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scriptpal",
3
- "version": "1.4.0",
3
+ "version": "1.4.3",
4
4
  "description": "A simple npm script palette for lazy people (like me)",
5
5
  "main": "./bin/index.js",
6
6
  "bin": {