@rayburst/cli 0.1.17 → 0.2.0

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.
Files changed (39) hide show
  1. package/README.md +165 -257
  2. package/dist/analysis/analyze-project.d.ts +9 -0
  3. package/dist/analysis/analyze-project.js +440 -0
  4. package/dist/git-utils.d.ts +33 -0
  5. package/dist/git-utils.js +96 -0
  6. package/dist/incremental-analyzer.d.ts +128 -0
  7. package/dist/incremental-analyzer.js +259 -0
  8. package/dist/index.d.ts +6 -0
  9. package/dist/index.js +6 -0
  10. package/dist/local-storage.d.ts +39 -0
  11. package/dist/local-storage.js +117 -0
  12. package/dist/registry.d.ts +89 -0
  13. package/dist/registry.js +287 -0
  14. package/dist/vite-plugin.d.ts +7 -0
  15. package/dist/vite-plugin.js +109 -0
  16. package/package.json +33 -30
  17. package/bin/rayburst.js +0 -232
  18. package/dist/assets/_commonjsHelpers-B85MJLTf.js +0 -5
  19. package/dist/assets/hostInit-BWYxHpMp.js +0 -9
  20. package/dist/assets/index-9R1akZrm.js +0 -578
  21. package/dist/assets/index-BW-RulSg.js +0 -258
  22. package/dist/assets/index-VnAMn3JB.js +0 -16587
  23. package/dist/assets/preload-helper-Dea3Szod.js +0 -54
  24. package/dist/assets/rayburstCli__loadRemote__rayburstApp_mf_1_App__loadRemote__-CHUYMhiU.js +0 -35
  25. package/dist/assets/rayburstCli__loadShare__react__loadShare__-CE7VtFm0.js +0 -19
  26. package/dist/assets/rayburstCli__mf_v__runtimeInit__mf_v__-C_SVfzik.js +0 -4173
  27. package/dist/assets/remoteEntry-B8biLITo.js +0 -122
  28. package/dist/assets/virtualExposes-DwA08f_D.js +0 -5
  29. package/dist/index.html +0 -56
  30. package/index.html +0 -54
  31. package/scripts/analyze-project.js +0 -475
  32. package/server.js +0 -188
  33. package/src/file-watcher.js +0 -174
  34. package/src/git-utils.js +0 -105
  35. package/src/incremental-analyzer.js +0 -295
  36. package/src/main.tsx +0 -126
  37. package/src/registry.js +0 -262
  38. package/vite-plugin-api.js +0 -123
  39. package/vite.config.ts +0 -73
@@ -1,54 +0,0 @@
1
- const scriptRel = /* @__PURE__ */ (function detectScriptRel() {
2
- const relList = typeof document !== "undefined" && document.createElement("link").relList;
3
- return relList && relList.supports && relList.supports("modulepreload") ? "modulepreload" : "preload";
4
- })();const assetsURL = function(dep) { return "/"+dep };const seen = {};const __vitePreload = function preload(baseModule, deps, importerUrl) {
5
- let promise = Promise.resolve();
6
- if (true && deps && deps.length > 0) {
7
- document.getElementsByTagName("link");
8
- const cspNonceMeta = document.querySelector("meta[property=csp-nonce]");
9
- const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");
10
- function allSettled(promises$2) {
11
- return Promise.all(promises$2.map((p) => Promise.resolve(p).then((value$1) => ({
12
- status: "fulfilled",
13
- value: value$1
14
- }), (reason) => ({
15
- status: "rejected",
16
- reason
17
- }))));
18
- }
19
- promise = allSettled(deps.map((dep) => {
20
- dep = assetsURL(dep);
21
- if (dep in seen) return;
22
- seen[dep] = true;
23
- const isCss = dep.endsWith(".css");
24
- const cssSelector = isCss ? "[rel=\"stylesheet\"]" : "";
25
- if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) return;
26
- const link = document.createElement("link");
27
- link.rel = isCss ? "stylesheet" : scriptRel;
28
- if (!isCss) link.as = "script";
29
- link.crossOrigin = "";
30
- link.href = dep;
31
- if (cspNonce) link.setAttribute("nonce", cspNonce);
32
- document.head.appendChild(link);
33
- if (isCss) return new Promise((res, rej) => {
34
- link.addEventListener("load", res);
35
- link.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`)));
36
- });
37
- }));
38
- }
39
- function handlePreloadError(err$2) {
40
- const e$1 = new Event("vite:preloadError", { cancelable: true });
41
- e$1.payload = err$2;
42
- window.dispatchEvent(e$1);
43
- if (!e$1.defaultPrevented) throw err$2;
44
- }
45
- return promise.then((res) => {
46
- for (const item of res || []) {
47
- if (item.status !== "rejected") continue;
48
- handlePreloadError(item.reason);
49
- }
50
- return baseModule().catch(handlePreloadError);
51
- });
52
- };
53
-
54
- export { __vitePreload as _ };
@@ -1,35 +0,0 @@
1
- import { g as getDefaultExportFromCjs } from './_commonjsHelpers-B85MJLTf.js';
2
- import { r as rayburstCli__mf_v__runtimeInit__mf_v__, a as index_cjs } from './rayburstCli__mf_v__runtimeInit__mf_v__-C_SVfzik.js';
3
-
4
- function _mergeNamespaces(n, m) {
5
- for (var i = 0; i < m.length; i++) {
6
- const e = m[i];
7
- if (typeof e !== 'string' && !Array.isArray(e)) { for (const k in e) {
8
- if (k !== 'default' && !(k in n)) {
9
- const d = Object.getOwnPropertyDescriptor(e, k);
10
- if (d) {
11
- Object.defineProperty(n, k, d.get ? d : {
12
- enumerable: true,
13
- get: () => e[k]
14
- });
15
- }
16
- }
17
- } }
18
- }
19
- return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' }));
20
- }
21
-
22
- const {loadRemote} = index_cjs;
23
- const {initPromise} = rayburstCli__mf_v__runtimeInit__mf_v__;
24
- const res = initPromise.then(_ => loadRemote("rayburstApp/App"));
25
- const exportModule = await initPromise.then(_ => res);
26
- var rayburstCli__loadRemote__rayburstApp_mf_1_App__loadRemote__ = exportModule;
27
-
28
- const rayburstCli__loadRemote__rayburstApp_mf_1_App__loadRemote___default = /*@__PURE__*/getDefaultExportFromCjs(rayburstCli__loadRemote__rayburstApp_mf_1_App__loadRemote__);
29
-
30
- const rayburstCli__loadRemote__rayburstApp_mf_1_App__loadRemote__$1 = /*#__PURE__*/_mergeNamespaces({
31
- __proto__: null,
32
- default: rayburstCli__loadRemote__rayburstApp_mf_1_App__loadRemote___default
33
- }, [rayburstCli__loadRemote__rayburstApp_mf_1_App__loadRemote__]);
34
-
35
- export { rayburstCli__loadRemote__rayburstApp_mf_1_App__loadRemote__$1 as r };
@@ -1,19 +0,0 @@
1
- import { g as getDefaultExportFromCjs } from './_commonjsHelpers-B85MJLTf.js';
2
- import { r as rayburstCli__mf_v__runtimeInit__mf_v__, a as index_cjs } from './rayburstCli__mf_v__runtimeInit__mf_v__-C_SVfzik.js';
3
-
4
- // dev uses dynamic import to separate chunks
5
-
6
- const {loadShare} = index_cjs;
7
- const {initPromise} = rayburstCli__mf_v__runtimeInit__mf_v__;
8
- const res = initPromise.then(_ => loadShare("react", {
9
- customShareInfo: {shareConfig:{
10
- singleton: true,
11
- strictVersion: false,
12
- requiredVersion: "^19.0.0"
13
- }}}));
14
- const exportModule = await res.then(factory => factory());
15
- var rayburstCli__loadShare__react__loadShare__ = exportModule;
16
-
17
- const React = /*@__PURE__*/getDefaultExportFromCjs(rayburstCli__loadShare__react__loadShare__);
18
-
19
- export { React as R, rayburstCli__loadShare__react__loadShare__ as r };