@amaster.ai/cli 1.1.60 → 1.1.61-beta.1
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.cjs +0 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -12,7 +12,7 @@ import { createServer } from 'http';
|
|
|
12
12
|
import { execFile, spawn, spawnSync } from 'child_process';
|
|
13
13
|
import YAML2, { parse as parse$1 } from 'yaml';
|
|
14
14
|
import { promisify } from 'util';
|
|
15
|
-
import { validRange,
|
|
15
|
+
import { validRange, minVersion, gte } from 'semver';
|
|
16
16
|
import ts from 'typescript';
|
|
17
17
|
|
|
18
18
|
var EXCLUDED_NAMES = /* @__PURE__ */ new Set([".git", "node_modules", ".DS_Store", "PROMPT.md"]);
|
|
@@ -1363,9 +1363,6 @@ function isExistingNpmDependencyCompatible(existingVersion, requestedVersion) {
|
|
|
1363
1363
|
if (!existingRange || !requestedRange) {
|
|
1364
1364
|
return false;
|
|
1365
1365
|
}
|
|
1366
|
-
if (intersects(existingRange, requestedRange, { includePrerelease: true })) {
|
|
1367
|
-
return true;
|
|
1368
|
-
}
|
|
1369
1366
|
const existingMinimum = minVersion(existingRange);
|
|
1370
1367
|
const requestedMinimum = minVersion(requestedRange);
|
|
1371
1368
|
if (!existingMinimum || !requestedMinimum) {
|