elegance-js 2.0.4 → 2.0.5

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.
@@ -1,7 +1,7 @@
1
1
  // src/page_compiler.ts
2
- import { registerLoader } from "ts-arc";
3
2
  import fs from "fs";
4
3
  import path from "path";
4
+ import { registerLoader, setArcTsConfig } from "ts-arc";
5
5
  import esbuild from "esbuild";
6
6
  import { fileURLToPath } from "url";
7
7
 
@@ -271,11 +271,12 @@ var resetLayouts = () => globalThis.__SERVER_CURRENT_LAYOUTS__ = /* @__PURE__ */
271
271
  if (!globalThis.__SERVER_CURRENT_LAYOUT_ID__) globalThis.__SERVER_CURRENT_LAYOUT_ID__ = 1;
272
272
 
273
273
  // src/page_compiler.ts
274
+ var __filename = fileURLToPath(import.meta.url);
275
+ var __dirname = path.dirname(__filename);
274
276
  registerLoader();
277
+ setArcTsConfig(__dirname);
275
278
  var packageDir = process.env.PACKAGE_PATH;
276
279
  if (packageDir === void 0) {
277
- const __filename = fileURLToPath(import.meta.url);
278
- const __dirname = path.dirname(__filename);
279
280
  packageDir = path.resolve(__dirname, "..");
280
281
  }
281
282
  var clientPath = path.resolve(packageDir, "./dist/client/client.mjs");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elegance-js",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "Web-Framework",
5
5
  "type": "module",
6
6
  "bin": {
@@ -35,7 +35,7 @@
35
35
  "license": "MIT",
36
36
  "dependencies": {
37
37
  "esbuild": "^0.25.9",
38
- "ts-arc": "^1.1.15"
38
+ "ts-arc": "^1.1.16"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@tailwindcss/cli": "^4.0.3",