@supacloud/cli 0.51.1 → 0.51.2

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/index.js +7 -6
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -221701,10 +221701,11 @@ function camelName(token) {
221701
221701
  return token.charAt(0).toLowerCase() + token.slice(1);
221702
221702
  }
221703
221703
  function relativeImportPath(fromDir, toFile) {
221704
- const fromParts = fromDir.split("/").filter(Boolean);
221705
- const toParts = toFile.split("/").filter(Boolean);
221704
+ const fromParts = fromDir.split(/[\\/]/).filter(Boolean);
221705
+ const toParts = toFile.split(/[\\/]/).filter(Boolean);
221706
+ const isWindows = process.platform === "win32" || /^[a-zA-Z]:/.test(fromParts[0] ?? "") || /^[a-zA-Z]:/.test(toParts[0] ?? "");
221706
221707
  let common = 0;
221707
- while (common < fromParts.length && common < toParts.length && fromParts[common] === toParts[common]) {
221708
+ while (common < fromParts.length && common < toParts.length && (fromParts[common] === toParts[common] || isWindows && fromParts[common].toLowerCase() === toParts[common].toLowerCase())) {
221708
221709
  common += 1;
221709
221710
  }
221710
221711
  const ups = fromParts.length - common;
@@ -227472,7 +227473,7 @@ test("partial and untagged inherited remote profiles cannot mix with selected fi
227472
227473
  // ../compiler/package.json
227473
227474
  var package_default = {
227474
227475
  name: "@supacloud/compiler",
227475
- version: "0.14.0",
227476
+ version: "0.15.0",
227476
227477
  description: "Static compiler for @supacloud/app metadata: builds the application graph from AST, validates it, and generates reflection-free factory code",
227477
227478
  type: "module",
227478
227479
  main: "./dist/index.js",
@@ -232009,7 +232010,7 @@ function registerRemoteDevTools(server2, options = {}) {
232009
232010
  // package.json
232010
232011
  var package_default4 = {
232011
232012
  name: "@supacloud/cli",
232012
- version: "0.51.1",
232013
+ version: "0.51.2",
232013
232014
  description: "Project-scoped CLI for SupaCloud users",
232014
232015
  type: "module",
232015
232016
  main: "./dist/index.js",
@@ -232042,7 +232043,7 @@ var package_default4 = {
232042
232043
  },
232043
232044
  dependencies: {
232044
232045
  "@sinclair/typebox": "^0.34.52",
232045
- "@supacloud/compiler": "^0.14.0",
232046
+ "@supacloud/compiler": "^0.15.0",
232046
232047
  "@supacloud/db": "^0.2.0",
232047
232048
  fflate: "^0.8.3"
232048
232049
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supacloud/cli",
3
- "version": "0.51.1",
3
+ "version": "0.51.2",
4
4
  "description": "Project-scoped CLI for SupaCloud users",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@sinclair/typebox": "^0.34.52",
36
- "@supacloud/compiler": "^0.14.0",
36
+ "@supacloud/compiler": "^0.15.0",
37
37
  "@supacloud/db": "^0.2.0",
38
38
  "fflate": "^0.8.3"
39
39
  },