elegance-js 2.0.2 → 2.0.4
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/build.mjs +1 -1
- package/dist/compile_docs.mjs +1 -1
- package/dist/page_compiler.mjs +2 -0
- package/package.json +4 -3
package/dist/build.mjs
CHANGED
|
@@ -1025,7 +1025,7 @@ var runBuild = (filepath, DIST_DIR) => {
|
|
|
1025
1025
|
child.removeAllListeners();
|
|
1026
1026
|
child.kill("SIGKILL");
|
|
1027
1027
|
}
|
|
1028
|
-
child = child_process.spawn("
|
|
1028
|
+
child = child_process.spawn("node", [filepath], {
|
|
1029
1029
|
stdio: ["inherit", "inherit", "inherit", "ipc"],
|
|
1030
1030
|
env: { ...process.env, DIST_DIR, OPTIONS: optionsString, PACKAGE_PATH: packageDir2 }
|
|
1031
1031
|
});
|
package/dist/compile_docs.mjs
CHANGED
|
@@ -1028,7 +1028,7 @@ var runBuild = (filepath, DIST_DIR) => {
|
|
|
1028
1028
|
child.removeAllListeners();
|
|
1029
1029
|
child.kill("SIGKILL");
|
|
1030
1030
|
}
|
|
1031
|
-
child = child_process.spawn("
|
|
1031
|
+
child = child_process.spawn("node", [filepath], {
|
|
1032
1032
|
stdio: ["inherit", "inherit", "inherit", "ipc"],
|
|
1033
1033
|
env: { ...process.env, DIST_DIR, OPTIONS: optionsString, PACKAGE_PATH: packageDir2 }
|
|
1034
1034
|
});
|
package/dist/page_compiler.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// src/page_compiler.ts
|
|
2
|
+
import { registerLoader } from "ts-arc";
|
|
2
3
|
import fs from "fs";
|
|
3
4
|
import path from "path";
|
|
4
5
|
import esbuild from "esbuild";
|
|
@@ -270,6 +271,7 @@ var resetLayouts = () => globalThis.__SERVER_CURRENT_LAYOUTS__ = /* @__PURE__ */
|
|
|
270
271
|
if (!globalThis.__SERVER_CURRENT_LAYOUT_ID__) globalThis.__SERVER_CURRENT_LAYOUT_ID__ = 1;
|
|
271
272
|
|
|
272
273
|
// src/page_compiler.ts
|
|
274
|
+
registerLoader();
|
|
273
275
|
var packageDir = process.env.PACKAGE_PATH;
|
|
274
276
|
if (packageDir === void 0) {
|
|
275
277
|
const __filename = fileURLToPath(import.meta.url);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elegance-js",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Web-Framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"native": "./scripts/native-test.js"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "esbuild --format=esm --platform=node --bundle --outdir=./dist --platform=node --external:esbuild --out-extension:.js=.mjs \"./src/**/*.ts\" && tsc",
|
|
13
|
+
"build": "esbuild --format=esm --platform=node --bundle --outdir=./dist --platform=node --external:ts-arc --external:esbuild --out-extension:.js=.mjs \"./src/**/*.ts\" && tsc",
|
|
14
14
|
"compile-docs": "node ./dist/compile_docs.mjs --environment=development",
|
|
15
15
|
"compile-docs-bun": "bun run ./dist/compile_docs.mjs --environment=development",
|
|
16
16
|
"prepare": "npm run build"
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"author": "vqldemar",
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"esbuild": "^0.25.9"
|
|
37
|
+
"esbuild": "^0.25.9",
|
|
38
|
+
"ts-arc": "^1.1.15"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
41
|
"@tailwindcss/cli": "^4.0.3",
|