@jay-framework/production-server 0.22.0 → 0.22.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.
package/dist/index.js
CHANGED
|
@@ -6,8 +6,8 @@ import path from "node:path";
|
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import { DevSlowlyChangingPhase, slowRenderInstances, scanPlugins, runLoadParams, parseCookies } from "@jay-framework/stack-server-runtime";
|
|
9
|
-
import { l as loadProductionPageParts, g as buildPagePartsConfig, d as initializeServices, r as registerActionsFromManifest, i as isActionRequest, a as fetchActionRequest, c as fetchStaticFile, m as matchRequest, f as fetchPageRequest, F as FilesystemArtifactStore } from "./init-services-
|
|
10
|
-
import { e, b } from "./init-services-
|
|
9
|
+
import { l as loadProductionPageParts, g as buildPagePartsConfig, d as initializeServices, r as registerActionsFromManifest, i as isActionRequest, a as fetchActionRequest, c as fetchStaticFile, m as matchRequest, f as fetchPageRequest, F as FilesystemArtifactStore } from "./init-services-zmGSxSck.js";
|
|
10
|
+
import { e, b } from "./init-services-zmGSxSck.js";
|
|
11
11
|
import crypto, { createHash } from "node:crypto";
|
|
12
12
|
import fs$1 from "node:fs";
|
|
13
13
|
import { jayRuntime } from "@jay-framework/vite-plugin";
|
|
@@ -1331,8 +1331,8 @@ async function buildVersion(options) {
|
|
|
1331
1331
|
const publicFolder = path.join(options.projectRoot, "public");
|
|
1332
1332
|
try {
|
|
1333
1333
|
await fs.access(publicFolder);
|
|
1334
|
-
await fs.cp(publicFolder,
|
|
1335
|
-
logger.info("[Build] Copied public/ to frontend/
|
|
1334
|
+
await fs.cp(publicFolder, frontendDir, { recursive: true });
|
|
1335
|
+
logger.info("[Build] Copied public/ contents to frontend/");
|
|
1336
1336
|
} catch {
|
|
1337
1337
|
}
|
|
1338
1338
|
const sourceHash = await computeBuildHash(buildDir);
|
|
@@ -707,10 +707,7 @@ const MIME_TYPES = {
|
|
|
707
707
|
};
|
|
708
708
|
async function fetchStaticFile(pathname, frontendDir) {
|
|
709
709
|
const normalizedBase = path.resolve(frontendDir);
|
|
710
|
-
for (const candidate of [
|
|
711
|
-
path.join(frontendDir, pathname),
|
|
712
|
-
path.join(frontendDir, "public", pathname)
|
|
713
|
-
]) {
|
|
710
|
+
for (const candidate of [path.join(frontendDir, pathname)]) {
|
|
714
711
|
const normalizedFile = path.resolve(candidate);
|
|
715
712
|
if (!normalizedFile.startsWith(normalizedBase))
|
|
716
713
|
continue;
|
package/dist/serve-index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jay-framework/production-server",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,20 +30,20 @@
|
|
|
30
30
|
"test:watch": "vitest"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@jay-framework/compiler-jay-html": "^0.22.
|
|
34
|
-
"@jay-framework/compiler-jay-stack": "^0.22.
|
|
35
|
-
"@jay-framework/compiler-shared": "^0.22.
|
|
36
|
-
"@jay-framework/fullstack-component": "^0.22.
|
|
37
|
-
"@jay-framework/logger": "^0.22.
|
|
38
|
-
"@jay-framework/ssr-runtime": "^0.22.
|
|
39
|
-
"@jay-framework/stack-route-scanner": "^0.22.
|
|
40
|
-
"@jay-framework/stack-server-runtime": "^0.22.
|
|
41
|
-
"@jay-framework/view-state-merge": "^0.22.
|
|
42
|
-
"@jay-framework/vite-plugin": "^0.22.
|
|
33
|
+
"@jay-framework/compiler-jay-html": "^0.22.2",
|
|
34
|
+
"@jay-framework/compiler-jay-stack": "^0.22.2",
|
|
35
|
+
"@jay-framework/compiler-shared": "^0.22.2",
|
|
36
|
+
"@jay-framework/fullstack-component": "^0.22.2",
|
|
37
|
+
"@jay-framework/logger": "^0.22.2",
|
|
38
|
+
"@jay-framework/ssr-runtime": "^0.22.2",
|
|
39
|
+
"@jay-framework/stack-route-scanner": "^0.22.2",
|
|
40
|
+
"@jay-framework/stack-server-runtime": "^0.22.2",
|
|
41
|
+
"@jay-framework/view-state-merge": "^0.22.2",
|
|
42
|
+
"@jay-framework/vite-plugin": "^0.22.2",
|
|
43
43
|
"vite": "^5.0.11"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@jay-framework/dev-environment": "^0.22.
|
|
46
|
+
"@jay-framework/dev-environment": "^0.22.2",
|
|
47
47
|
"@types/node": "^22.15.21",
|
|
48
48
|
"rimraf": "^5.0.5",
|
|
49
49
|
"tsup": "^8.0.1",
|