@vite-hub/workspace 0.0.3 → 0.0.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/LICENSE +201 -0
- package/README.md +13 -2
- package/dist/{ai-Ce3PtWFW.js → ai-BqCC8BpY.js} +2 -2
- package/dist/{ai-nmHdzjCM.d.ts → ai-CjxvGqM0.d.ts} +1 -1
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +1 -1
- package/dist/{asset-registry-CaG9b7tf.js → asset-registry-8QI3ML3K.js} +1 -1
- package/dist/chunk-2rV9d50f.js +35 -0
- package/dist/cloudflare.d.ts +1 -1
- package/dist/cloudflare.js +1 -1
- package/dist/collections.d.ts +2 -2
- package/dist/collections.js +1 -1
- package/dist/{config-CZLO0m9h.js → config-Bc3c4Su1.js} +213 -120
- package/dist/{config-CDoyls2X.js → config-CHLLWklZ.js} +9 -3
- package/dist/{config-3I1BnsdO.d.ts → config-DE9xlaIw.d.ts} +1 -1
- package/dist/{file-CHfsZpso.js → file-Bc1X7pco.js} +3 -3
- package/dist/{files-QRV55OCx.js → files-Q6xZjDHA.js} +20 -9
- package/dist/{github-CfA5vpJ5.js → github-DHnjxQIX.js} +24 -15
- package/dist/{glob-D0vD_wRY.js → glob-CEZKeZFC.js} +5 -4
- package/dist/host-DJH8cuoU.js +1030 -0
- package/dist/{hosted-C1-tTTTf.js → hosted-RPeJOCFz.js} +121 -31
- package/dist/hosted-vercel-blob-d6C8ND5j.js +23580 -0
- package/dist/hosted-vercel-blob.d.ts +1 -1
- package/dist/hosted-vercel-blob.js +1 -1
- package/dist/hosted.d.ts +1 -1
- package/dist/hosted.js +1 -1
- package/dist/index.d.ts +42 -51
- package/dist/index.js +124 -419
- package/dist/lifecycle-LrL3sA4n.js +316 -0
- package/dist/loader.d.ts +1 -1
- package/dist/loader.js +1 -1
- package/dist/metadata-target-B0tOmVW7.js +717 -0
- package/dist/mountx.d.ts +1 -1
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +1 -1
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.js +8 -2
- package/dist/{path-CNI6wKIU.js → path-Cp59koVz.js} +28 -4
- package/dist/{provider-C3_elpEh.js → provider-B1yLjCJJ.js} +194 -47
- package/dist/providers/github/store.d.ts +1 -1
- package/dist/providers/github/store.js +1 -1
- package/dist/publish.d.ts +1 -1
- package/dist/publish.js +2 -2
- package/dist/registry-D3yzt8HQ.js +127 -0
- package/dist/{registry-BIQVCBWI.d.ts → registry-Uj6IVxes.d.ts} +3 -3
- package/dist/{request-execution-u9mgUXKX.js → request-execution-B-dSFlGB.js} +8 -4
- package/dist/runtime/assets.d.ts +1 -1
- package/dist/runtime/assets.js +4 -2
- package/dist/runtime/empty-assets-registry.d.ts +1 -1
- package/dist/runtime/empty-registry.d.ts +1 -1
- package/dist/runtime/state.d.ts +4 -4
- package/dist/runtime/state.js +10 -7
- package/dist/runtime/workspace.d.ts +1 -1
- package/dist/runtime/workspace.js +1 -1
- package/dist/runtime-type-iEE6BjQJ.js +34 -0
- package/dist/runtime.d.ts +42 -7
- package/dist/runtime.js +275 -82
- package/dist/{search-C4REyHj9.js → search-BpiCF2Tw.js} +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +23 -50
- package/dist/{shared-jfogBrd5.js → shared-DTR1Hhma.js} +97 -39
- package/dist/source-metadata.d.ts +9 -2
- package/dist/source-metadata.js +34 -2
- package/dist/{state-TTqa3x3Y.d.ts → state-tYcRWEh2.d.ts} +13 -12
- package/dist/store-Dt_Jyys3.js +608 -0
- package/dist/{sync-DiuDmSGk.js → sync-DnTQwt8r.js} +6 -5
- package/dist/test.d.ts +1 -1
- package/dist/test.js +1 -1
- package/dist/token-CVzURBxC.js +61 -0
- package/dist/{types-60Yn149G.d.ts → types-CYuwjJ4V.d.ts} +94 -27
- package/dist/{use-CsV3oIxH.js → use-BTNDR5Rd.js} +145 -31
- package/dist/{use-CUFSnFCS.d.ts → use-BiHzt0xA.d.ts} +21 -4
- package/dist/vite-BptCrpv2.js +4526 -0
- package/dist/vite-CtA9guIM.d.ts +66 -0
- package/dist/vite.d.ts +2 -50
- package/dist/vite.js +2 -2
- package/dist/{workspace-C4k92Ow8.js → workspace-Dq08Yn72.js} +224 -529
- package/dist/{workspace-66SKyiec.d.ts → workspace-Xddf4G1B.d.ts} +1 -1
- package/package.json +15 -18
- package/dist/chunk-8H4AJuhK.js +0 -14
- package/dist/host-CAnbugpI.js +0 -370
- package/dist/hosted-vercel-blob-CWBILDVo.js +0 -257
- package/dist/lifecycle-BYoa9hVb.js +0 -176
- package/dist/registry-CqyDTW9Y.js +0 -74
- package/dist/store-Bs1SLh55.js +0 -414
- package/dist/vite-tbfDxtlu.js +0 -2191
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { rt as WorkspaceModuleOptions } from "./types-CYuwjJ4V.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
|
+
declare const setWorkspacePluginHosting: unique symbol;
|
|
41
|
+
type WorkspacePluginHosting = string | (() => string | undefined);
|
|
42
|
+
type WorkspaceVitePlugin = Plugin & WorkspaceCliContributingPlugin & {
|
|
43
|
+
[setWorkspacePluginHosting]?: (hosting: WorkspacePluginHosting) => void;
|
|
44
|
+
api: WorkspaceVitePluginAPI;
|
|
45
|
+
};
|
|
46
|
+
declare function hubWorkspace(options?: WorkspaceModuleOptions): WorkspaceVitePlugin;
|
|
47
|
+
declare module "vite" {
|
|
48
|
+
interface UserConfig {
|
|
49
|
+
workspace?: false | WorkspaceModuleOptions;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/build/discovery.d.ts
|
|
54
|
+
interface DiscoveredWorkspaceDefinition {
|
|
55
|
+
handler: string;
|
|
56
|
+
name: string;
|
|
57
|
+
path: string;
|
|
58
|
+
source?: string;
|
|
59
|
+
sourceRootDir?: string;
|
|
60
|
+
}
|
|
61
|
+
declare function discoverViteWorkspaceDefinitions(rootDir: string, options?: {
|
|
62
|
+
serverDirs?: string[];
|
|
63
|
+
serverRootDir?: string;
|
|
64
|
+
}): DiscoveredWorkspaceDefinition[];
|
|
65
|
+
//#endregion
|
|
66
|
+
export { WorkspaceVitePlugin as a, hubWorkspace as c, WorkspaceNitroConfigOptions as i, discoverViteWorkspaceDefinitions as n, WorkspaceVitePluginAPI as o, NitroConfig as r, createWorkspaceNitroConfig as s, DiscoveredWorkspaceDefinition as t };
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,50 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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 };
|
|
1
|
+
import { a as WorkspaceVitePlugin, c as hubWorkspace, i as WorkspaceNitroConfigOptions, n as discoverViteWorkspaceDefinitions, o as WorkspaceVitePluginAPI, r as NitroConfig, s as createWorkspaceNitroConfig, t as DiscoveredWorkspaceDefinition } from "./vite-CtA9guIM.js";
|
|
2
|
+
export { type DiscoveredWorkspaceDefinition, type NitroConfig, type WorkspaceNitroConfigOptions, type WorkspaceVitePlugin, type WorkspaceVitePluginAPI, createWorkspaceNitroConfig, discoverViteWorkspaceDefinitions, hubWorkspace };
|
package/dist/vite.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as hubWorkspace, t as createWorkspaceNitroConfig } from "./vite-
|
|
2
|
-
export { createWorkspaceNitroConfig, hubWorkspace };
|
|
1
|
+
import { i as discoverViteWorkspaceDefinitions, n as hubWorkspace, t as createWorkspaceNitroConfig } from "./vite-BptCrpv2.js";
|
|
2
|
+
export { createWorkspaceNitroConfig, discoverViteWorkspaceDefinitions, hubWorkspace };
|