@vite-hub/workspace 0.0.0 → 0.0.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.
Files changed (84) hide show
  1. package/README.md +262 -1
  2. package/dist/ai-Cztw4eLk.js +472 -0
  3. package/dist/ai-hFdsvDHC.d.ts +162 -0
  4. package/dist/ai.d.ts +3 -0
  5. package/dist/ai.js +2 -0
  6. package/dist/artifacts-store-BAV9jZpd.js +555 -0
  7. package/dist/asset-registry-CaG9b7tf.js +19 -0
  8. package/dist/chunk-8H4AJuhK.js +14 -0
  9. package/dist/cli.d.ts +31 -0
  10. package/dist/cli.js +303 -0
  11. package/dist/cloudflare-env-CKxUs2fa.js +20 -0
  12. package/dist/cloudflare.d.ts +16 -0
  13. package/dist/cloudflare.js +3 -0
  14. package/dist/collections/client.d.ts +39 -0
  15. package/dist/collections/client.js +137 -0
  16. package/dist/collections.d.ts +59 -0
  17. package/dist/collections.js +159 -0
  18. package/dist/config--r5unwPc.js +7811 -0
  19. package/dist/config-Ca5DM8fF.d.ts +28 -0
  20. package/dist/config-DCQ6y30R.js +30 -0
  21. package/dist/file-B2q9NE18.js +24 -0
  22. package/dist/files-xy0le-_U.js +51 -0
  23. package/dist/github-lIO6-2sH.js +194 -0
  24. package/dist/glob-DeH0dzZX.js +23 -0
  25. package/dist/host-I-_vDs05.js +370 -0
  26. package/dist/hosted-vercel-blob.d.ts +15 -0
  27. package/dist/hosted-vercel-blob.js +26 -0
  28. package/dist/hosted.d.ts +18 -0
  29. package/dist/hosted.js +30 -0
  30. package/dist/index.d.ts +185 -0
  31. package/dist/index.js +541 -0
  32. package/dist/lifecycle-Lhk3dAMt.js +176 -0
  33. package/dist/loader.d.ts +17 -0
  34. package/dist/loader.js +22 -0
  35. package/dist/nitro.d.ts +2 -0
  36. package/dist/nitro.js +2 -0
  37. package/dist/nuxt.d.ts +26 -0
  38. package/dist/nuxt.js +36 -0
  39. package/dist/path-CNI6wKIU.js +115 -0
  40. package/dist/provider-CeQciesl.js +599 -0
  41. package/dist/providers/cloudflare/artifacts-store.d.ts +6 -0
  42. package/dist/providers/cloudflare/artifacts-store.js +2 -0
  43. package/dist/providers/github/store.d.ts +6 -0
  44. package/dist/providers/github/store.js +362 -0
  45. package/dist/providers/vercel/blob-store.d.ts +6 -0
  46. package/dist/providers/vercel/blob-store.js +235 -0
  47. package/dist/publish.d.ts +35 -0
  48. package/dist/publish.js +112 -0
  49. package/dist/registry-C7DMdBXN.js +74 -0
  50. package/dist/registry-CoC9JxVt.d.ts +11 -0
  51. package/dist/request-execution-C8qRcReq.js +80 -0
  52. package/dist/runtime/assets.d.ts +12 -0
  53. package/dist/runtime/assets.js +138 -0
  54. package/dist/runtime/empty-assets-registry.d.ts +6 -0
  55. package/dist/runtime/empty-assets-registry.js +4 -0
  56. package/dist/runtime/empty-registry.d.ts +6 -0
  57. package/dist/runtime/empty-registry.js +4 -0
  58. package/dist/runtime/state.d.ts +4 -0
  59. package/dist/runtime/state.js +15 -0
  60. package/dist/runtime/workspace.d.ts +2 -0
  61. package/dist/runtime/workspace.js +2 -0
  62. package/dist/runtime.d.ts +38 -0
  63. package/dist/runtime.js +643 -0
  64. package/dist/search-C4REyHj9.js +39 -0
  65. package/dist/server.d.ts +65 -0
  66. package/dist/server.js +355 -0
  67. package/dist/shared-BRycRSbo.js +255 -0
  68. package/dist/source-metadata.d.ts +2 -0
  69. package/dist/source-metadata.js +2 -0
  70. package/dist/state-DSAHEsq6.d.ts +25 -0
  71. package/dist/sync-DO42ypji.js +269 -0
  72. package/dist/target-D4Bqb1eH.js +11 -0
  73. package/dist/test.d.ts +2 -0
  74. package/dist/test.js +2 -0
  75. package/dist/types-DHkae7Cb.d.ts +628 -0
  76. package/dist/use-D16tf8Ph.d.ts +86 -0
  77. package/dist/use-d_PlAdOu.js +353 -0
  78. package/dist/utils-BPdaCyI6.js +55 -0
  79. package/dist/vite-NWC9mFjI.js +1882 -0
  80. package/dist/vite.d.ts +50 -0
  81. package/dist/vite.js +2 -0
  82. package/dist/workspace-f2DBLmPZ.d.ts +6 -0
  83. package/dist/workspace-n4wBmdaM.js +1476 -0
  84. package/package.json +197 -5
package/dist/vite.d.ts ADDED
@@ -0,0 +1,50 @@
1
+ import { nt as WorkspaceModuleOptions } from "./types-DHkae7Cb.js";
2
+ import { Plugin } from "vite";
3
+
4
+ //#region src/hosts/vite/plugin.d.ts
5
+ interface WorkspaceNitroConfigOptions {
6
+ aliases?: Record<string, string>;
7
+ command?: "build" | "serve";
8
+ env?: Record<string, string | undefined>;
9
+ hosting?: string;
10
+ nitro?: unknown;
11
+ viteRoot?: string;
12
+ workspace?: false | WorkspaceModuleOptions;
13
+ }
14
+ type NitroConfig = {
15
+ cloudflare?: {
16
+ wrangler?: {
17
+ artifacts?: Array<{
18
+ binding: string;
19
+ namespace: string;
20
+ }>;
21
+ compatibility_flags?: string[];
22
+ } & Record<string, unknown>;
23
+ } & Record<string, unknown>;
24
+ plugins?: unknown[];
25
+ rollupConfig?: {
26
+ external?: unknown;
27
+ } & Record<string, unknown>;
28
+ } & Record<string, unknown>;
29
+ declare function createWorkspaceNitroConfig(options?: WorkspaceNitroConfigOptions): Promise<NitroConfig | null>;
30
+ interface WorkspaceVitePluginAPI {
31
+ getWorkspaces: () => Array<{
32
+ name: string;
33
+ }>;
34
+ }
35
+ interface WorkspaceCliContributingPlugin {
36
+ vitehub?: {
37
+ cli?: () => unknown | Promise<unknown>;
38
+ };
39
+ }
40
+ type WorkspaceVitePlugin = Plugin & WorkspaceCliContributingPlugin & {
41
+ api: WorkspaceVitePluginAPI;
42
+ };
43
+ declare function hubWorkspace(options?: WorkspaceModuleOptions): WorkspaceVitePlugin;
44
+ declare module "vite" {
45
+ interface UserConfig {
46
+ workspace?: false | WorkspaceModuleOptions;
47
+ }
48
+ }
49
+ //#endregion
50
+ export { NitroConfig, WorkspaceNitroConfigOptions, WorkspaceVitePlugin, WorkspaceVitePluginAPI, createWorkspaceNitroConfig, hubWorkspace };
package/dist/vite.js ADDED
@@ -0,0 +1,2 @@
1
+ import { n as hubWorkspace, t as createWorkspaceNitroConfig } from "./vite-NWC9mFjI.js";
2
+ export { createWorkspaceNitroConfig, hubWorkspace };
@@ -0,0 +1,6 @@
1
+ import { P as WorkspaceDefinition, T as Workspace } from "./types-DHkae7Cb.js";
2
+
3
+ //#region src/core/workspace.d.ts
4
+ declare function createWorkspace(definition: WorkspaceDefinition): Workspace;
5
+ //#endregion
6
+ export { createWorkspace as t };