@absolutejs/absolute 0.17.6 → 0.17.7

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.
@@ -20,7 +20,7 @@
20
20
  "src/cli/telemetryEvent.ts": "qcqothjk9w1y",
21
21
  "src/cli/scripts/info.ts": "3l6y5poteux2a",
22
22
  "src/cli/scripts/telemetry.ts": "439ge1g0zblg",
23
- "src/cli/scripts/start.ts": "2jbsu1tbdhla5",
23
+ "src/cli/scripts/start.ts": "13lbh87vwgv5o",
24
24
  "src/cli/scripts/dev.ts": "1gtow37jd5jpz",
25
25
  "src/cli/scripts/eslint.ts": "2w5qmmgtiuibl",
26
26
  "src/cli/scripts/prettier.ts": "7jsqecky6ja7",
@@ -134,7 +134,7 @@
134
134
  "example/angular/compiled/mm4fgvqc/components/counter.component.js": "qbqz8o1mgcpu",
135
135
  "eslint.config.mjs": "3jvlmsyhtijzc",
136
136
  "tsconfig.json": "yyin9qm3vp6z",
137
- "package.json": "1ulg456ngivna",
137
+ "package.json": "2exp9k04thb1p",
138
138
  "tsconfig.build.json": "976e92rva922",
139
139
  "example/svelte/pages/SvelteExample.svelte": "1um210xkshf8o",
140
140
  "example/svelte/components/Counter.svelte": "1p92uo1pko0wo",
package/dist/cli/index.js CHANGED
@@ -1006,8 +1006,20 @@ var start = async (serverEntry, outdir, configPath2) => {
1006
1006
  try {
1007
1007
  const buildConfig = await loadConfig(configPath2);
1008
1008
  buildConfig.buildDirectory = resolvedOutdir;
1009
- const buildModule = "../../core/build";
1010
- const { build } = await import(buildModule);
1009
+ const candidates = [
1010
+ resolve6(import.meta.dir, "..", "..", "core", "build"),
1011
+ resolve6(import.meta.dir, "..", "build")
1012
+ ];
1013
+ let build;
1014
+ for (const candidate of candidates) {
1015
+ try {
1016
+ const mod = await import(candidate);
1017
+ build = mod.build;
1018
+ break;
1019
+ } catch {}
1020
+ }
1021
+ if (!build)
1022
+ throw new Error("Could not locate build module");
1011
1023
  await build(buildConfig);
1012
1024
  } catch (err) {
1013
1025
  console.error(cliTag2("\x1B[31m", "Build step failed."));
package/package.json CHANGED
@@ -145,5 +145,5 @@
145
145
  "typecheck": "bun run vue-tsc --noEmit"
146
146
  },
147
147
  "types": "./dist/src/index.d.ts",
148
- "version": "0.17.6"
148
+ "version": "0.17.7"
149
149
  }