@jay-framework/jay-stack-cli 0.24.3 → 0.24.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/index.js +3 -2
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -3724,11 +3724,12 @@ async function validatePackageJson(context, result) {
|
|
|
3724
3724
|
}
|
|
3725
3725
|
if (!packageJson.exports["./client"]) {
|
|
3726
3726
|
const interactivity = detectInteractivePhase(context);
|
|
3727
|
-
const
|
|
3727
|
+
const providesRoute = Array.isArray(context.manifest.routes) && context.manifest.routes.length > 0;
|
|
3728
|
+
const needsClient = context.manifest.contexts !== void 0 || interactivity === true || providesRoute;
|
|
3728
3729
|
if (needsClient) {
|
|
3729
3730
|
result.errors.push({
|
|
3730
3731
|
type: "export-mismatch",
|
|
3731
|
-
message: 'package.json exports missing "./client" entry point, but the plugin ' + (context.manifest.contexts !== void 0 ? "declares contexts (client-side by definition)" : "provides an interactive component"),
|
|
3732
|
+
message: 'package.json exports missing "./client" entry point, but the plugin ' + (context.manifest.contexts !== void 0 ? "declares contexts (client-side by definition)" : providesRoute && interactivity !== true ? "provides a route (hydrated in the browser)" : "provides an interactive component"),
|
|
3732
3733
|
location: packageJsonPath,
|
|
3733
3734
|
suggestion: 'Add "./client": "./dist/index.client.js" to exports. The client bundle provides components for hydration and client-side contexts. Build with: vite build (client) + vite build --ssr (server)'
|
|
3734
3735
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jay-framework/jay-stack-cli",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.4",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@inquirer/prompts": "^8.5.2",
|
|
28
|
-
"@jay-framework/compiler-jay-html": "^0.24.
|
|
29
|
-
"@jay-framework/compiler-shared": "^0.24.
|
|
30
|
-
"@jay-framework/dev-server": "^0.24.
|
|
31
|
-
"@jay-framework/fullstack-component": "^0.24.
|
|
32
|
-
"@jay-framework/logger": "^0.24.
|
|
33
|
-
"@jay-framework/plugin-validator": "^0.24.
|
|
34
|
-
"@jay-framework/production-build": "^0.24.
|
|
35
|
-
"@jay-framework/production-server": "^0.24.
|
|
36
|
-
"@jay-framework/stack-server-build": "^0.24.
|
|
37
|
-
"@jay-framework/stack-server-runtime": "^0.24.
|
|
28
|
+
"@jay-framework/compiler-jay-html": "^0.24.4",
|
|
29
|
+
"@jay-framework/compiler-shared": "^0.24.4",
|
|
30
|
+
"@jay-framework/dev-server": "^0.24.4",
|
|
31
|
+
"@jay-framework/fullstack-component": "^0.24.4",
|
|
32
|
+
"@jay-framework/logger": "^0.24.4",
|
|
33
|
+
"@jay-framework/plugin-validator": "^0.24.4",
|
|
34
|
+
"@jay-framework/production-build": "^0.24.4",
|
|
35
|
+
"@jay-framework/production-server": "^0.24.4",
|
|
36
|
+
"@jay-framework/stack-server-build": "^0.24.4",
|
|
37
|
+
"@jay-framework/stack-server-runtime": "^0.24.4",
|
|
38
38
|
"chalk": "^4.1.2",
|
|
39
39
|
"commander": "^14.0.0",
|
|
40
40
|
"express": "^5.0.1",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"yaml": "^2.3.4"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@jay-framework/dev-environment": "^0.24.
|
|
48
|
+
"@jay-framework/dev-environment": "^0.24.4",
|
|
49
49
|
"@types/express": "^5.0.2",
|
|
50
50
|
"@types/node": "^22.15.21",
|
|
51
51
|
"nodemon": "^3.0.3",
|