@cedarjs/vite 5.0.0-canary.2563 → 5.0.0-canary.2564
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cedar-unified-dev.d.ts","sourceRoot":"","sources":["../src/cedar-unified-dev.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"cedar-unified-dev.d.ts","sourceRoot":"","sources":["../src/cedar-unified-dev.ts"],"names":[],"mappings":"AA+BA,wBAAsB,qBAAqB,kBAsI1C"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
1
|
import { createServerAdapter } from "@whatwg-node/server";
|
|
3
2
|
import { createServer } from "vite";
|
|
4
3
|
import yargsParser from "yargs-parser";
|
|
@@ -11,7 +10,7 @@ function isViteInternalRequest(url) {
|
|
|
11
10
|
function isApiRequest(url, apiUrl, apiGqlUrl) {
|
|
12
11
|
return url === apiUrl || url.startsWith(apiUrl + "/") || url.startsWith(apiUrl + "?") || url === apiGqlUrl || url.startsWith(apiGqlUrl + "/") || url.startsWith(apiGqlUrl + "?");
|
|
13
12
|
}
|
|
14
|
-
|
|
13
|
+
async function startUnifiedDevServer() {
|
|
15
14
|
process.env.__CEDAR_UNIFIED_DEV = "true";
|
|
16
15
|
const rwPaths = getPaths();
|
|
17
16
|
const cedarConfig = getConfig();
|
|
@@ -112,8 +111,7 @@ const startUnifiedDevServer = async () => {
|
|
|
112
111
|
};
|
|
113
112
|
process.on("SIGINT", shutdown);
|
|
114
113
|
process.on("SIGTERM", shutdown);
|
|
114
|
+
}
|
|
115
|
+
export {
|
|
116
|
+
startUnifiedDevServer
|
|
115
117
|
};
|
|
116
|
-
startUnifiedDevServer().catch((err) => {
|
|
117
|
-
console.error("Failed to start unified dev server:", err);
|
|
118
|
-
process.exit(1);
|
|
119
|
-
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
1
|
"use strict";
|
|
3
2
|
var __create = Object.create;
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
@@ -6,6 +5,10 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
9
12
|
var __copyProps = (to, from, except, desc) => {
|
|
10
13
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
14
|
for (let key of __getOwnPropNames(from))
|
|
@@ -22,6 +25,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
23
26
|
mod
|
|
24
27
|
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var cedar_unified_dev_exports = {};
|
|
30
|
+
__export(cedar_unified_dev_exports, {
|
|
31
|
+
startUnifiedDevServer: () => startUnifiedDevServer
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(cedar_unified_dev_exports);
|
|
25
34
|
var import_server = require("@whatwg-node/server");
|
|
26
35
|
var import_vite = require("vite");
|
|
27
36
|
var import_yargs_parser = __toESM(require("yargs-parser"), 1);
|
|
@@ -34,7 +43,7 @@ function isViteInternalRequest(url) {
|
|
|
34
43
|
function isApiRequest(url, apiUrl, apiGqlUrl) {
|
|
35
44
|
return url === apiUrl || url.startsWith(apiUrl + "/") || url.startsWith(apiUrl + "?") || url === apiGqlUrl || url.startsWith(apiGqlUrl + "/") || url.startsWith(apiGqlUrl + "?");
|
|
36
45
|
}
|
|
37
|
-
|
|
46
|
+
async function startUnifiedDevServer() {
|
|
38
47
|
process.env.__CEDAR_UNIFIED_DEV = "true";
|
|
39
48
|
const rwPaths = (0, import_project_config.getPaths)();
|
|
40
49
|
const cedarConfig = (0, import_project_config.getConfig)();
|
|
@@ -135,8 +144,8 @@ const startUnifiedDevServer = async () => {
|
|
|
135
144
|
};
|
|
136
145
|
process.on("SIGINT", shutdown);
|
|
137
146
|
process.on("SIGTERM", shutdown);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
147
|
+
}
|
|
148
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
149
|
+
0 && (module.exports = {
|
|
150
|
+
startUnifiedDevServer
|
|
142
151
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/vite",
|
|
3
|
-
"version": "5.0.0-canary.
|
|
3
|
+
"version": "5.0.0-canary.2564",
|
|
4
4
|
"description": "Vite configuration package for CedarJS",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"bin": {
|
|
43
43
|
"cedar-dev-fe": "./dist/devFeServer.js",
|
|
44
44
|
"cedar-serve-fe": "./dist/runFeServer.js",
|
|
45
|
-
"cedar-unified-dev": "./
|
|
45
|
+
"cedar-unified-dev": "./bins/cedar-unified-dev.mjs",
|
|
46
46
|
"cedar-vite-build": "./bins/cedar-vite-build.mjs",
|
|
47
47
|
"cedar-vite-dev": "./bins/cedar-vite-dev.mjs",
|
|
48
48
|
"vite": "./bins/vite.mjs"
|
|
@@ -67,17 +67,17 @@
|
|
|
67
67
|
"@babel/parser": "7.29.7",
|
|
68
68
|
"@babel/traverse": "7.29.7",
|
|
69
69
|
"@babel/types": "7.29.7",
|
|
70
|
-
"@cedarjs/api": "5.0.0-canary.
|
|
71
|
-
"@cedarjs/auth": "5.0.0-canary.
|
|
72
|
-
"@cedarjs/babel-config": "5.0.0-canary.
|
|
73
|
-
"@cedarjs/context": "5.0.0-canary.
|
|
74
|
-
"@cedarjs/cookie-jar": "5.0.0-canary.
|
|
75
|
-
"@cedarjs/graphql-server": "5.0.0-canary.
|
|
76
|
-
"@cedarjs/internal": "5.0.0-canary.
|
|
77
|
-
"@cedarjs/project-config": "5.0.0-canary.
|
|
78
|
-
"@cedarjs/server-store": "5.0.0-canary.
|
|
79
|
-
"@cedarjs/testing": "5.0.0-canary.
|
|
80
|
-
"@cedarjs/web": "5.0.0-canary.
|
|
70
|
+
"@cedarjs/api": "5.0.0-canary.2564",
|
|
71
|
+
"@cedarjs/auth": "5.0.0-canary.2564",
|
|
72
|
+
"@cedarjs/babel-config": "5.0.0-canary.2564",
|
|
73
|
+
"@cedarjs/context": "5.0.0-canary.2564",
|
|
74
|
+
"@cedarjs/cookie-jar": "5.0.0-canary.2564",
|
|
75
|
+
"@cedarjs/graphql-server": "5.0.0-canary.2564",
|
|
76
|
+
"@cedarjs/internal": "5.0.0-canary.2564",
|
|
77
|
+
"@cedarjs/project-config": "5.0.0-canary.2564",
|
|
78
|
+
"@cedarjs/server-store": "5.0.0-canary.2564",
|
|
79
|
+
"@cedarjs/testing": "5.0.0-canary.2564",
|
|
80
|
+
"@cedarjs/web": "5.0.0-canary.2564",
|
|
81
81
|
"@fastify/url-data": "6.0.3",
|
|
82
82
|
"@swc/core": "1.15.41",
|
|
83
83
|
"@universal-deploy/store": "^0.2.1",
|