Comparing version 3.0.1 to 3.0.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [3.0.2](https://github.com/sapegin/mrm/compare/mrm@3.0.1...mrm@3.0.2) (2021-05-20) | ||
### Bug Fixes | ||
* Correct preset loading priority and npm binary resolution ([#163](https://github.com/sapegin/mrm/issues/163)) ([5208741](https://github.com/sapegin/mrm/commit/52087415dd9620153b0caf92898cf6eeb4500bcb)), closes [#159](https://github.com/sapegin/mrm/issues/159) | ||
## [3.0.1](https://github.com/sapegin/mrm/compare/mrm@3.0.0...mrm@3.0.1) (2021-04-07) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "mrm", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Codemods for your project config files", | ||
@@ -37,3 +37,4 @@ "author": { | ||
"user-home": "^2.0.0", | ||
"user-meta": "^1.0.0" | ||
"user-meta": "^1.0.0", | ||
"which": "^2.0.2" | ||
}, | ||
@@ -57,3 +58,3 @@ "keywords": [ | ||
], | ||
"gitHead": "ca485fb1b3dc7c36f67773ed0f6980126e2fbf3e" | ||
"gitHead": "be05b88100fb2c8d46e32bcac78dc89034f924d7" | ||
} |
@@ -9,2 +9,3 @@ // @ts-check | ||
const inquirer = require('inquirer'); | ||
const which = require('which'); | ||
const { | ||
@@ -147,4 +148,4 @@ MrmUnknownTask, | ||
() => require.resolve(taskPackageName), | ||
() => resolveUsingNpx(taskPackageName), | ||
() => require.resolve(taskName), | ||
() => resolveUsingNpx(taskPackageName), | ||
() => resolveUsingNpx(taskName), | ||
@@ -314,3 +315,3 @@ ]); | ||
async function resolveUsingNpx(packageName) { | ||
const npm = path.join(path.dirname(process.execPath), 'npm'); | ||
const npm = which.sync('npm'); | ||
const { prefix } = await npx._ensurePackages(packageName, { npm, q: true }); | ||
@@ -317,0 +318,0 @@ const packagePath = path.join(prefix, 'lib', 'node_modules', packageName); |
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
44140
1083
17
+ Addedwhich@^2.0.2
+ Addedwhich@2.0.2(transitive)