acpx 0.1.12 → 0.1.13
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.
- package/dist/cli.js +4 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2048,8 +2048,10 @@ function resolveVersionFromAncestors(startDir) {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
}
|
|
2050
2050
|
function resolveAcpxVersion(params) {
|
|
2051
|
-
const
|
|
2052
|
-
|
|
2051
|
+
const env = params?.env ?? process.env;
|
|
2052
|
+
const envPackageName = parseVersion(env.npm_package_name);
|
|
2053
|
+
const envVersion = parseVersion(env.npm_package_version);
|
|
2054
|
+
if (envPackageName === "acpx" && envVersion) {
|
|
2053
2055
|
return envVersion;
|
|
2054
2056
|
}
|
|
2055
2057
|
if (params?.packageJsonPath) {
|