@diagonal-hq/cli 0.35.0 → 0.35.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.mjs +4 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -289108,7 +289108,7 @@ function importKind(specifier) {
|
|
|
289108
289108
|
if (specifier.startsWith("@/") || specifier.startsWith("#")) {
|
|
289109
289109
|
return "alias";
|
|
289110
289110
|
}
|
|
289111
|
-
const local = specifier.startsWith(APP_PREFIX) ||
|
|
289111
|
+
const local = specifier.startsWith(APP_PREFIX) || isRelativeSpecifier(specifier);
|
|
289112
289112
|
if (!local) {
|
|
289113
289113
|
return "package";
|
|
289114
289114
|
}
|
|
@@ -289120,6 +289120,9 @@ function importKind(specifier) {
|
|
|
289120
289120
|
}
|
|
289121
289121
|
return BINARY_EXTENSIONS.has(posix.extname(bare).toLowerCase()) ? "binary" : "app";
|
|
289122
289122
|
}
|
|
289123
|
+
function isRelativeSpecifier(specifier) {
|
|
289124
|
+
return specifier === "." || specifier === ".." || specifier.startsWith("./") || specifier.startsWith("../");
|
|
289125
|
+
}
|
|
289123
289126
|
function unsupportedImportMessage(specifier, kind, suggestion = null) {
|
|
289124
289127
|
switch (kind) {
|
|
289125
289128
|
case "alias":
|