@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.
Files changed (2) hide show
  1. package/dist/cli.mjs +4 -1
  2. 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) || specifier.startsWith("./") || specifier.startsWith("../");
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":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/cli",
3
- "version": "0.35.0",
3
+ "version": "0.35.1",
4
4
  "description": "The diagonal CLI and the configuration helpers for file-based Diagonal workspaces.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {