webanvil 0.0.6 → 0.0.7
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 +21 -21
- package/README.md +490 -38
- package/bin/webanvil +6 -0
- package/bin/webanvil.cmd +2 -0
- package/dist/_chunks/commands.mjs +1867 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +30 -0
- package/dist/index.d.mts +646 -0
- package/dist/index.mjs +5 -0
- package/package.json +96 -60
- package/bin/run +0 -3
- package/bin/run.cmd +0 -3
- package/lib/commands/build.d.ts +0 -3
- package/lib/commands/build.d.ts.map +0 -1
- package/lib/commands/build.js +0 -34
- package/lib/commands/serve.d.ts +0 -3
- package/lib/commands/serve.d.ts.map +0 -1
- package/lib/commands/serve.js +0 -44
- package/lib/commons/io/core/File.d.ts +0 -11
- package/lib/commons/io/core/File.d.ts.map +0 -1
- package/lib/commons/io/core/File.js +0 -23
- package/lib/commons/io/core/Path.d.ts +0 -30
- package/lib/commons/io/core/Path.d.ts.map +0 -1
- package/lib/commons/io/core/Path.js +0 -122
- package/lib/commons/io/sync/fs.d.ts +0 -11
- package/lib/commons/io/sync/fs.d.ts.map +0 -1
- package/lib/commons/io/sync/fs.js +0 -46
- package/lib/commons/io/sync/index.d.ts +0 -5
- package/lib/commons/io/sync/index.d.ts.map +0 -1
- package/lib/commons/io/sync/index.js +0 -9
- package/lib/commons/io/sync/path.d.ts +0 -4
- package/lib/commons/io/sync/path.d.ts.map +0 -1
- package/lib/commons/io/sync/path.js +0 -13
- package/lib/core/Configuration.d.ts +0 -37
- package/lib/core/Configuration.d.ts.map +0 -1
- package/lib/core/Configuration.js +0 -56
- package/lib/core/EventEmitter.d.ts +0 -14
- package/lib/core/EventEmitter.d.ts.map +0 -1
- package/lib/core/EventEmitter.js +0 -42
- package/lib/core/Page.d.ts +0 -14
- package/lib/core/Page.d.ts.map +0 -1
- package/lib/core/Page.js +0 -34
- package/lib/core/Plugin.d.ts +0 -13
- package/lib/core/Plugin.d.ts.map +0 -1
- package/lib/core/Plugin.js +0 -12
- package/lib/core/Renderer/Renderer.d.ts +0 -8
- package/lib/core/Renderer/Renderer.d.ts.map +0 -1
- package/lib/core/Renderer/Renderer.js +0 -9
- package/lib/core/Renderer/index.d.ts +0 -8
- package/lib/core/Renderer/index.d.ts.map +0 -1
- package/lib/core/Renderer/index.js +0 -18
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -1
- package/lib/main.d.ts +0 -2
- package/lib/main.d.ts.map +0 -1
- package/lib/main.js +0 -36
- package/lib/plugins/outlinecss.d.ts +0 -4
- package/lib/plugins/outlinecss.d.ts.map +0 -1
- package/lib/plugins/outlinecss.js +0 -34
- package/lib/renderers/EJSRenderer.d.ts +0 -7
- package/lib/renderers/EJSRenderer.d.ts.map +0 -1
- package/lib/renderers/EJSRenderer.js +0 -34
package/dist/cli.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/dist/cli.mjs
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { build_default, check_default, clean_default, dev_default, format_default, lint_default, logger, preview_default, test_default, typecheck_default } from "./_chunks/commands.mjs";
|
|
2
|
+
import { execute } from "cmdore";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import { readPackageJSON } from "pkg-types";
|
|
5
|
+
const main = async (...varargs) => {
|
|
6
|
+
const packageJson = await readPackageJSON(fileURLToPath(new URL("..", import.meta.url)));
|
|
7
|
+
return execute([
|
|
8
|
+
build_default,
|
|
9
|
+
check_default,
|
|
10
|
+
clean_default,
|
|
11
|
+
dev_default,
|
|
12
|
+
format_default,
|
|
13
|
+
lint_default,
|
|
14
|
+
preview_default,
|
|
15
|
+
test_default,
|
|
16
|
+
typecheck_default
|
|
17
|
+
], {
|
|
18
|
+
argv: varargs,
|
|
19
|
+
metadata: {
|
|
20
|
+
name: packageJson.name ?? "webanvil",
|
|
21
|
+
version: packageJson.version
|
|
22
|
+
},
|
|
23
|
+
onError: "throw"
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
main(...process.argv.slice(2)).then((code) => process.exit(code)).catch((error) => {
|
|
27
|
+
logger.error(error instanceof Error ? error.message : String(error));
|
|
28
|
+
process.exit(1);
|
|
29
|
+
});
|
|
30
|
+
export {};
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,646 @@
|
|
|
1
|
+
import { rename } from "node:fs/promises";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { TsconfigJson } from "get-tsconfig";
|
|
4
|
+
import { InlineConfig, PluginOption, UserConfig as UserConfig$1 } from "vite";
|
|
5
|
+
import { OxfmtConfig } from "oxfmt";
|
|
6
|
+
import { OxlintConfig } from "oxlint";
|
|
7
|
+
import { InputOptions, OutputOptions, Plugin } from "rolldown";
|
|
8
|
+
import { TestUserConfig } from "vitest/config";
|
|
9
|
+
import { IsolatedDeclarationsOptions } from "rolldown/experimental";
|
|
10
|
+
declare const entry$1: {
|
|
11
|
+
readonly name: "entry";
|
|
12
|
+
readonly description: "Web entry or Node public root; unbundled Node builds emit its reachable graph with preserveModules.";
|
|
13
|
+
};
|
|
14
|
+
declare const filters: {
|
|
15
|
+
readonly name: "filters";
|
|
16
|
+
readonly description: "Test files or names to run.";
|
|
17
|
+
readonly variadic: true;
|
|
18
|
+
};
|
|
19
|
+
declare const paths: {
|
|
20
|
+
readonly name: "paths";
|
|
21
|
+
readonly description: "Files or directories to check.";
|
|
22
|
+
readonly variadic: true;
|
|
23
|
+
};
|
|
24
|
+
type WebAnvilUnplugin<Options> = {
|
|
25
|
+
rolldown: (options: Options) => Plugin | Plugin[];
|
|
26
|
+
vite: (options: Options) => PluginOption;
|
|
27
|
+
};
|
|
28
|
+
type UnpluginAdapter = {
|
|
29
|
+
rolldown: () => Plugin | Plugin[];
|
|
30
|
+
vite: () => PluginOption;
|
|
31
|
+
};
|
|
32
|
+
type WebAnvilPlugin = PluginOption | UnpluginAdapter;
|
|
33
|
+
declare const definePlugin: <Options>(plugin: WebAnvilUnplugin<Options>, options: Options) => UnpluginAdapter;
|
|
34
|
+
declare const isUnpluginAdapter: (plugin: unknown) => plugin is UnpluginAdapter;
|
|
35
|
+
declare const isWebAnvilPlugin: (plugin: unknown) => plugin is WebAnvilPlugin;
|
|
36
|
+
declare const resolveRolldownPlugins: (plugins: WebAnvilPlugin[]) => Plugin[];
|
|
37
|
+
declare const resolveVitePlugins: (plugins: WebAnvilPlugin[]) => PluginOption[];
|
|
38
|
+
type ToolName = "vite" | "vitest" | "rolldown" | "oxlint" | "oxfmt" | "typescript" | "typescript-native";
|
|
39
|
+
type ToolSource = "project" | "webanvil";
|
|
40
|
+
type ResolvedTool = {
|
|
41
|
+
name: ToolName;
|
|
42
|
+
packageName: string;
|
|
43
|
+
version: string;
|
|
44
|
+
source: ToolSource;
|
|
45
|
+
packageRoot: string;
|
|
46
|
+
import<T>(subpath?: string): Promise<T>;
|
|
47
|
+
executable?: string;
|
|
48
|
+
};
|
|
49
|
+
declare class Toolchain {
|
|
50
|
+
#private;
|
|
51
|
+
readonly cwd: string;
|
|
52
|
+
constructor(cwd?: string);
|
|
53
|
+
resolve(name: ToolName): Promise<ResolvedTool>;
|
|
54
|
+
}
|
|
55
|
+
type DeclarationLogger = {
|
|
56
|
+
info: (...arguments_: unknown[]) => void;
|
|
57
|
+
warn: (...arguments_: unknown[]) => void;
|
|
58
|
+
error: (...arguments_: unknown[]) => void;
|
|
59
|
+
};
|
|
60
|
+
type DeclarationVolarPlugin = {
|
|
61
|
+
extensionPatterns: RegExp[];
|
|
62
|
+
tsFileExtensionInfos?: Array<{
|
|
63
|
+
extension: string;
|
|
64
|
+
isMixedContent: boolean;
|
|
65
|
+
scriptKind?: number;
|
|
66
|
+
}>;
|
|
67
|
+
volarTypeScript?: object;
|
|
68
|
+
create?: (...arguments_: never[]) => unknown;
|
|
69
|
+
toTsFilename?: (id: string) => string;
|
|
70
|
+
};
|
|
71
|
+
type DeclarationConfig = {
|
|
72
|
+
generator?: "tsc" | "oxc" | "tsgo";
|
|
73
|
+
dtsInput?: boolean;
|
|
74
|
+
tsconfig?: string | boolean;
|
|
75
|
+
tsconfigRaw?: Omit<TsconfigJson, "compilerOptions">;
|
|
76
|
+
compilerOptions?: TsconfigJson.CompilerOptions;
|
|
77
|
+
sourcemap?: boolean;
|
|
78
|
+
resolver?: "oxc" | "tsc";
|
|
79
|
+
cjsDefault?: boolean;
|
|
80
|
+
sideEffects?: boolean;
|
|
81
|
+
logger?: DeclarationLogger;
|
|
82
|
+
build?: boolean;
|
|
83
|
+
incremental?: boolean;
|
|
84
|
+
vue?: boolean;
|
|
85
|
+
eager?: boolean;
|
|
86
|
+
newContext?: boolean;
|
|
87
|
+
emitJs?: boolean;
|
|
88
|
+
oxc?: boolean | Omit<IsolatedDeclarationsOptions, "sourcemap">;
|
|
89
|
+
tsgo?: boolean | {
|
|
90
|
+
path?: string;
|
|
91
|
+
};
|
|
92
|
+
volarPlugins?: DeclarationVolarPlugin[];
|
|
93
|
+
};
|
|
94
|
+
declare const copyMappingSchema: z.ZodObject<{
|
|
95
|
+
from: z.ZodString;
|
|
96
|
+
to: z.ZodString;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
type SyntaxTarget = string | string[];
|
|
99
|
+
declare const assertSyntaxTarget: (target: SyntaxTarget | undefined) => void;
|
|
100
|
+
declare const syntaxTargetSchema: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
101
|
+
declare const buildConfigSchema: z.ZodObject<{
|
|
102
|
+
bundle: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
104
|
+
web: "web";
|
|
105
|
+
node: "node";
|
|
106
|
+
}>>;
|
|
107
|
+
entry: z.ZodOptional<z.ZodString>;
|
|
108
|
+
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
109
|
+
outDir: z.ZodOptional<z.ZodString>;
|
|
110
|
+
declaration: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCustom<DeclarationConfig, DeclarationConfig>]>>;
|
|
111
|
+
sourcemap: z.ZodOptional<z.ZodBoolean>;
|
|
112
|
+
minify: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
copy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
114
|
+
from: z.ZodString;
|
|
115
|
+
to: z.ZodString;
|
|
116
|
+
}, z.core.$strict>>>;
|
|
117
|
+
formats: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
118
|
+
esm: "esm";
|
|
119
|
+
cjs: "cjs";
|
|
120
|
+
}>>>;
|
|
121
|
+
platform: z.ZodOptional<z.ZodEnum<{
|
|
122
|
+
node: "node";
|
|
123
|
+
browser: "browser";
|
|
124
|
+
neutral: "neutral";
|
|
125
|
+
}>>;
|
|
126
|
+
target: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
127
|
+
}, z.core.$strict>;
|
|
128
|
+
type RolldownConfig = {
|
|
129
|
+
input?: Omit<InputOptions, "cwd" | "input">;
|
|
130
|
+
output?: Partial<Record<"esm" | "cjs", Omit<OutputOptions, "cleanDir" | "dir" | "format" | "preserveModules" | "preserveModulesRoot">>>;
|
|
131
|
+
};
|
|
132
|
+
type LintConfig = Omit<OxlintConfig, "extends"> & {
|
|
133
|
+
extends?: Array<OxlintConfig | string>;
|
|
134
|
+
};
|
|
135
|
+
declare const formatConfigSchema: z.ZodCustom<OxfmtConfig, OxfmtConfig>;
|
|
136
|
+
declare const lintConfigSchema: z.ZodCustom<LintConfig, LintConfig>;
|
|
137
|
+
declare const rolldownConfigSchema: z.ZodCustom<RolldownConfig, RolldownConfig>;
|
|
138
|
+
declare const testConfigSchema: z.ZodCustom<TestUserConfig, TestUserConfig>;
|
|
139
|
+
declare const viteConfigSchema: z.ZodCustom<UserConfig$1, UserConfig$1>;
|
|
140
|
+
declare const userConfigSchema: z.ZodObject<{
|
|
141
|
+
build: z.ZodOptional<z.ZodObject<{
|
|
142
|
+
bundle: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
144
|
+
web: "web";
|
|
145
|
+
node: "node";
|
|
146
|
+
}>>;
|
|
147
|
+
entry: z.ZodOptional<z.ZodString>;
|
|
148
|
+
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
149
|
+
outDir: z.ZodOptional<z.ZodString>;
|
|
150
|
+
declaration: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCustom<DeclarationConfig, DeclarationConfig>]>>;
|
|
151
|
+
sourcemap: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
+
minify: z.ZodOptional<z.ZodBoolean>;
|
|
153
|
+
copy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
154
|
+
from: z.ZodString;
|
|
155
|
+
to: z.ZodString;
|
|
156
|
+
}, z.core.$strict>>>;
|
|
157
|
+
formats: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
158
|
+
esm: "esm";
|
|
159
|
+
cjs: "cjs";
|
|
160
|
+
}>>>;
|
|
161
|
+
platform: z.ZodOptional<z.ZodEnum<{
|
|
162
|
+
node: "node";
|
|
163
|
+
browser: "browser";
|
|
164
|
+
neutral: "neutral";
|
|
165
|
+
}>>;
|
|
166
|
+
target: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
167
|
+
}, z.core.$strict>>;
|
|
168
|
+
format: z.ZodOptional<z.ZodCustom<OxfmtConfig, OxfmtConfig>>;
|
|
169
|
+
lint: z.ZodOptional<z.ZodCustom<LintConfig, LintConfig>>;
|
|
170
|
+
rolldown: z.ZodOptional<z.ZodCustom<RolldownConfig, RolldownConfig>>;
|
|
171
|
+
test: z.ZodOptional<z.ZodCustom<TestUserConfig, TestUserConfig>>;
|
|
172
|
+
vite: z.ZodOptional<z.ZodCustom<UserConfig$1, UserConfig$1>>;
|
|
173
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodCustom<WebAnvilPlugin, WebAnvilPlugin>>>;
|
|
174
|
+
}, z.core.$strict>;
|
|
175
|
+
declare const effectiveUserConfigSchema: z.ZodObject<{
|
|
176
|
+
build: z.ZodOptional<z.ZodObject<{
|
|
177
|
+
bundle: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
179
|
+
web: "web";
|
|
180
|
+
node: "node";
|
|
181
|
+
}>>;
|
|
182
|
+
entry: z.ZodOptional<z.ZodString>;
|
|
183
|
+
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
184
|
+
outDir: z.ZodOptional<z.ZodString>;
|
|
185
|
+
declaration: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCustom<DeclarationConfig, DeclarationConfig>]>>;
|
|
186
|
+
sourcemap: z.ZodOptional<z.ZodBoolean>;
|
|
187
|
+
minify: z.ZodOptional<z.ZodBoolean>;
|
|
188
|
+
copy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
189
|
+
from: z.ZodString;
|
|
190
|
+
to: z.ZodString;
|
|
191
|
+
}, z.core.$strict>>>;
|
|
192
|
+
formats: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
193
|
+
esm: "esm";
|
|
194
|
+
cjs: "cjs";
|
|
195
|
+
}>>>;
|
|
196
|
+
platform: z.ZodOptional<z.ZodEnum<{
|
|
197
|
+
node: "node";
|
|
198
|
+
browser: "browser";
|
|
199
|
+
neutral: "neutral";
|
|
200
|
+
}>>;
|
|
201
|
+
target: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
202
|
+
}, z.core.$strict>>;
|
|
203
|
+
format: z.ZodOptional<z.ZodCustom<OxfmtConfig, OxfmtConfig>>;
|
|
204
|
+
lint: z.ZodOptional<z.ZodCustom<LintConfig, LintConfig>>;
|
|
205
|
+
rolldown: z.ZodOptional<z.ZodCustom<RolldownConfig, RolldownConfig>>;
|
|
206
|
+
test: z.ZodOptional<z.ZodCustom<TestUserConfig, TestUserConfig>>;
|
|
207
|
+
vite: z.ZodOptional<z.ZodCustom<UserConfig$1, UserConfig$1>>;
|
|
208
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodCustom<WebAnvilPlugin, WebAnvilPlugin>>>;
|
|
209
|
+
}, z.core.$strict>;
|
|
210
|
+
type BuildConfig = z.infer<typeof buildConfigSchema>;
|
|
211
|
+
type CopyMapping = z.infer<typeof copyMappingSchema>;
|
|
212
|
+
type FormatConfig = OxfmtConfig;
|
|
213
|
+
type TestConfig = TestUserConfig;
|
|
214
|
+
type ViteConfig = UserConfig$1;
|
|
215
|
+
type UserConfig = z.infer<typeof userConfigSchema>;
|
|
216
|
+
type UserConfigFactory = () => UserConfig | Promise<UserConfig>;
|
|
217
|
+
type ConfigExport = UserConfig | UserConfigFactory;
|
|
218
|
+
type ResolvedConfig = {
|
|
219
|
+
config: UserConfig;
|
|
220
|
+
configFile?: string;
|
|
221
|
+
};
|
|
222
|
+
type CommandArguments = Record<string, unknown>;
|
|
223
|
+
type ConfigSection = BuildConfig | FormatConfig | LintConfig | TestConfig;
|
|
224
|
+
type ResolvedArguments<TArguments extends CommandArguments> = { [TKey in keyof TArguments]-?: Exclude<TArguments[TKey], undefined>; };
|
|
225
|
+
declare const defaultConfig: {
|
|
226
|
+
build: {
|
|
227
|
+
mode: "node";
|
|
228
|
+
entry: string;
|
|
229
|
+
outDir: string;
|
|
230
|
+
};
|
|
231
|
+
test: {
|
|
232
|
+
environment: "node";
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
declare const loadConfig: (cwd?: string) => Promise<ResolvedConfig>;
|
|
236
|
+
declare const resolveEffectiveBuildConfig: (config: UserConfig, overrides: BuildConfig, explicitEntry: boolean) => BuildConfig;
|
|
237
|
+
declare const withConfig: <TConfig extends ConfigSection, TArguments extends CommandArguments, TResult>(select: (config: UserConfig) => TConfig | undefined, run: (arguments_: ResolvedArguments<TArguments>, config: TConfig, resolvedConfig: UserConfig, explicitArguments: TArguments) => TResult | Promise<TResult>) => (arguments_: TArguments) => Promise<TResult>;
|
|
238
|
+
type NodeBuildOptions = Pick<BuildConfig, "bundle" | "copy" | "declaration" | "entries" | "formats" | "minify" | "platform" | "sourcemap" | "target">;
|
|
239
|
+
type BuildOptions = NodeBuildOptions;
|
|
240
|
+
type ViteApi = typeof import("vite");
|
|
241
|
+
type ExplicitWebBuild = Partial<BuildOptions> & {
|
|
242
|
+
entry?: string;
|
|
243
|
+
outDir?: string;
|
|
244
|
+
};
|
|
245
|
+
type WebBuild = {
|
|
246
|
+
config: InlineConfig;
|
|
247
|
+
emptyOutDir: boolean;
|
|
248
|
+
outDir: string;
|
|
249
|
+
publicDir?: string;
|
|
250
|
+
vite: ViteApi;
|
|
251
|
+
};
|
|
252
|
+
declare const build: {
|
|
253
|
+
(mode: "web" | "node", entry: string, outDir: string, options?: BuildOptions, plugins?: WebAnvilPlugin[], viteConfig?: UserConfig$1, rolldownConfig?: RolldownConfig, toolchain?: Toolchain, explicit?: ExplicitWebBuild): Promise<void>;
|
|
254
|
+
webConfig(entry: string, outDir: string, options: BuildOptions, plugins: WebAnvilPlugin[], viteConfig?: UserConfig$1, toolchain?: Toolchain, explicit?: ExplicitWebBuild): Promise<WebBuild>;
|
|
255
|
+
publicOutputFiles({ outDir, publicDir }: WebBuild): Promise<string[]>;
|
|
256
|
+
web(web: WebBuild): Promise<string[]>;
|
|
257
|
+
};
|
|
258
|
+
declare const _default: import("cmdore").Command<readonly [{
|
|
259
|
+
readonly name: "mode";
|
|
260
|
+
readonly description: "Build mode: web uses Vite and node uses Rolldown.";
|
|
261
|
+
readonly arity: 1;
|
|
262
|
+
readonly schema: import("zod").ZodEnum<{
|
|
263
|
+
web: "web";
|
|
264
|
+
node: "node";
|
|
265
|
+
}>;
|
|
266
|
+
}, {
|
|
267
|
+
readonly name: "out-dir";
|
|
268
|
+
readonly description: "Directory where the build output is written.";
|
|
269
|
+
readonly arity: 1;
|
|
270
|
+
}, {
|
|
271
|
+
readonly name: "bundle";
|
|
272
|
+
readonly description: "Bundle the Node public roots; without it, emit their reachable graph with preserveModules.";
|
|
273
|
+
readonly arity: 0;
|
|
274
|
+
}, {
|
|
275
|
+
readonly name: "no-bundle";
|
|
276
|
+
readonly description: "Emit the reachable Node graph with preserveModules, overriding configuration that enables bundling.";
|
|
277
|
+
readonly arity: 0;
|
|
278
|
+
}, {
|
|
279
|
+
readonly name: "copy";
|
|
280
|
+
readonly description: "Copy source=destination mappings after the build.";
|
|
281
|
+
readonly schema: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodString>, import("zod").ZodTransform<{
|
|
282
|
+
from: string;
|
|
283
|
+
to: string;
|
|
284
|
+
}[], string[]>>;
|
|
285
|
+
}, {
|
|
286
|
+
readonly name: "declaration";
|
|
287
|
+
readonly description: "Emit TypeScript declarations for a Node build.";
|
|
288
|
+
readonly arity: 1;
|
|
289
|
+
readonly schema: import("zod").ZodPipe<import("zod").ZodEnum<{
|
|
290
|
+
true: "true";
|
|
291
|
+
false: "false";
|
|
292
|
+
}>, import("zod").ZodTransform<boolean, "true" | "false">>;
|
|
293
|
+
}, {
|
|
294
|
+
readonly name: "sourcemap";
|
|
295
|
+
readonly description: "Generate source maps: true or false.";
|
|
296
|
+
readonly arity: 1;
|
|
297
|
+
readonly schema: import("zod").ZodPipe<import("zod").ZodEnum<{
|
|
298
|
+
true: "true";
|
|
299
|
+
false: "false";
|
|
300
|
+
}>, import("zod").ZodTransform<boolean, "true" | "false">>;
|
|
301
|
+
}, {
|
|
302
|
+
readonly name: "minify";
|
|
303
|
+
readonly description: "Minify the build output: true or false.";
|
|
304
|
+
readonly arity: 1;
|
|
305
|
+
readonly schema: import("zod").ZodPipe<import("zod").ZodEnum<{
|
|
306
|
+
true: "true";
|
|
307
|
+
false: "false";
|
|
308
|
+
}>, import("zod").ZodTransform<boolean, "true" | "false">>;
|
|
309
|
+
}, {
|
|
310
|
+
readonly name: "formats";
|
|
311
|
+
readonly description: "Comma-separated Node output formats: esm,cjs.";
|
|
312
|
+
readonly arity: 1;
|
|
313
|
+
readonly schema: import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string[], string>>, import("zod").ZodArray<import("zod").ZodEnum<{
|
|
314
|
+
esm: "esm";
|
|
315
|
+
cjs: "cjs";
|
|
316
|
+
}>>>;
|
|
317
|
+
}, {
|
|
318
|
+
readonly name: "platform";
|
|
319
|
+
readonly description: "Node build platform: node, browser, or neutral.";
|
|
320
|
+
readonly arity: 1;
|
|
321
|
+
readonly schema: import("zod").ZodEnum<{
|
|
322
|
+
node: "node";
|
|
323
|
+
browser: "browser";
|
|
324
|
+
neutral: "neutral";
|
|
325
|
+
}>;
|
|
326
|
+
}, {
|
|
327
|
+
readonly name: "target";
|
|
328
|
+
readonly description: "Production syntax target, or comma-separated targets.";
|
|
329
|
+
readonly arity: 1;
|
|
330
|
+
readonly schema: import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string | string[], string>>, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
|
|
331
|
+
}], readonly [{
|
|
332
|
+
readonly name: "entry";
|
|
333
|
+
readonly description: "Web entry or Node public root; unbundled Node builds emit its reachable graph with preserveModules.";
|
|
334
|
+
}]>;
|
|
335
|
+
type CheckConfig = Pick<UserConfig, "format" | "lint">;
|
|
336
|
+
declare const checkProject: (fixFiles?: boolean, config?: CheckConfig) => Promise<void>;
|
|
337
|
+
declare const _default$1: import("cmdore").Command<readonly [{
|
|
338
|
+
readonly name: "fix";
|
|
339
|
+
readonly description: "Format files and apply safe lint fixes.";
|
|
340
|
+
readonly arity: 0;
|
|
341
|
+
}], readonly import("cmdore").Argument[]>;
|
|
342
|
+
declare const clean: () => Promise<void>;
|
|
343
|
+
declare const _default$2: import("cmdore").Command<readonly import("cmdore").Option[], readonly import("cmdore").Argument[]>;
|
|
344
|
+
declare const dev: {
|
|
345
|
+
(mode: "web" | "node", entry: string, outDir: string, host?: string, port?: number, plugins?: WebAnvilPlugin[], options?: NodeBuildOptions, viteConfig?: UserConfig$1, rolldownConfig?: RolldownConfig, toolchain?: Toolchain): Promise<void>;
|
|
346
|
+
web(host?: string, port?: number, plugins?: WebAnvilPlugin[], waitForTermination?: () => Promise<void>, viteConfig?: UserConfig$1, toolchain?: Toolchain): Promise<void>;
|
|
347
|
+
node(entry: string, outDir: string, plugins?: WebAnvilPlugin[], waitForTermination?: () => Promise<void>, options?: NodeBuildOptions, rolldownConfig?: RolldownConfig, toolchain?: Toolchain): Promise<void>;
|
|
348
|
+
};
|
|
349
|
+
declare const _default$3: import("cmdore").Command<readonly [{
|
|
350
|
+
readonly name: "mode";
|
|
351
|
+
readonly description: "Build mode: web uses Vite and node uses Rolldown.";
|
|
352
|
+
readonly arity: 1;
|
|
353
|
+
readonly schema: import("zod").ZodEnum<{
|
|
354
|
+
web: "web";
|
|
355
|
+
node: "node";
|
|
356
|
+
}>;
|
|
357
|
+
}, {
|
|
358
|
+
readonly name: "out-dir";
|
|
359
|
+
readonly description: "Directory where the build output is written.";
|
|
360
|
+
readonly arity: 1;
|
|
361
|
+
}, {
|
|
362
|
+
readonly name: "host";
|
|
363
|
+
readonly description: "Host interface for the web server.";
|
|
364
|
+
readonly arity: 1;
|
|
365
|
+
}, {
|
|
366
|
+
readonly name: "port";
|
|
367
|
+
readonly description: "Port for the web server.";
|
|
368
|
+
readonly arity: 1;
|
|
369
|
+
readonly schema: import("zod").ZodCoercedNumber<unknown>;
|
|
370
|
+
}, {
|
|
371
|
+
readonly name: "bundle";
|
|
372
|
+
readonly description: "Bundle the Node public roots; without it, emit their reachable graph with preserveModules.";
|
|
373
|
+
readonly arity: 0;
|
|
374
|
+
}, {
|
|
375
|
+
readonly name: "no-bundle";
|
|
376
|
+
readonly description: "Emit the reachable Node graph with preserveModules, overriding configuration that enables bundling.";
|
|
377
|
+
readonly arity: 0;
|
|
378
|
+
}, {
|
|
379
|
+
readonly name: "copy";
|
|
380
|
+
readonly description: "Copy source=destination mappings after the build.";
|
|
381
|
+
readonly schema: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodString>, import("zod").ZodTransform<{
|
|
382
|
+
from: string;
|
|
383
|
+
to: string;
|
|
384
|
+
}[], string[]>>;
|
|
385
|
+
}, {
|
|
386
|
+
readonly name: "declaration";
|
|
387
|
+
readonly description: "Emit TypeScript declarations for a Node build.";
|
|
388
|
+
readonly arity: 1;
|
|
389
|
+
readonly schema: import("zod").ZodPipe<import("zod").ZodEnum<{
|
|
390
|
+
true: "true";
|
|
391
|
+
false: "false";
|
|
392
|
+
}>, import("zod").ZodTransform<boolean, "true" | "false">>;
|
|
393
|
+
}, {
|
|
394
|
+
readonly name: "sourcemap";
|
|
395
|
+
readonly description: "Generate source maps: true or false.";
|
|
396
|
+
readonly arity: 1;
|
|
397
|
+
readonly schema: import("zod").ZodPipe<import("zod").ZodEnum<{
|
|
398
|
+
true: "true";
|
|
399
|
+
false: "false";
|
|
400
|
+
}>, import("zod").ZodTransform<boolean, "true" | "false">>;
|
|
401
|
+
}, {
|
|
402
|
+
readonly name: "minify";
|
|
403
|
+
readonly description: "Minify the build output: true or false.";
|
|
404
|
+
readonly arity: 1;
|
|
405
|
+
readonly schema: import("zod").ZodPipe<import("zod").ZodEnum<{
|
|
406
|
+
true: "true";
|
|
407
|
+
false: "false";
|
|
408
|
+
}>, import("zod").ZodTransform<boolean, "true" | "false">>;
|
|
409
|
+
}, {
|
|
410
|
+
readonly name: "formats";
|
|
411
|
+
readonly description: "Comma-separated Node output formats: esm,cjs.";
|
|
412
|
+
readonly arity: 1;
|
|
413
|
+
readonly schema: import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string[], string>>, import("zod").ZodArray<import("zod").ZodEnum<{
|
|
414
|
+
esm: "esm";
|
|
415
|
+
cjs: "cjs";
|
|
416
|
+
}>>>;
|
|
417
|
+
}, {
|
|
418
|
+
readonly name: "platform";
|
|
419
|
+
readonly description: "Node build platform: node, browser, or neutral.";
|
|
420
|
+
readonly arity: 1;
|
|
421
|
+
readonly schema: import("zod").ZodEnum<{
|
|
422
|
+
node: "node";
|
|
423
|
+
browser: "browser";
|
|
424
|
+
neutral: "neutral";
|
|
425
|
+
}>;
|
|
426
|
+
}, {
|
|
427
|
+
readonly name: "target";
|
|
428
|
+
readonly description: "Production syntax target, or comma-separated targets.";
|
|
429
|
+
readonly arity: 1;
|
|
430
|
+
readonly schema: import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string | string[], string>>, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
|
|
431
|
+
}], readonly [{
|
|
432
|
+
readonly name: "entry";
|
|
433
|
+
readonly description: "Web entry or Node public root; unbundled Node builds emit its reachable graph with preserveModules.";
|
|
434
|
+
}]>;
|
|
435
|
+
declare const format: (paths: string[], check?: boolean, config?: FormatConfig) => Promise<void>;
|
|
436
|
+
declare const _default$4: import("cmdore").Command<readonly [{
|
|
437
|
+
readonly name: "check";
|
|
438
|
+
readonly description: "Check formatting without writing files.";
|
|
439
|
+
readonly arity: 0;
|
|
440
|
+
}], readonly [{
|
|
441
|
+
readonly name: "paths";
|
|
442
|
+
readonly description: "Files or directories to check.";
|
|
443
|
+
readonly variadic: true;
|
|
444
|
+
}]>;
|
|
445
|
+
declare const lint: (paths: string[], fix?: boolean, config?: LintConfig) => Promise<void>;
|
|
446
|
+
declare const _default$5: import("cmdore").Command<readonly [{
|
|
447
|
+
readonly name: "fix";
|
|
448
|
+
readonly description: "Apply safe lint fixes.";
|
|
449
|
+
readonly arity: 0;
|
|
450
|
+
}], readonly [{
|
|
451
|
+
readonly name: "paths";
|
|
452
|
+
readonly description: "Files or directories to check.";
|
|
453
|
+
readonly variadic: true;
|
|
454
|
+
}]>;
|
|
455
|
+
declare const preview: (outDir: string, host?: string, port?: number, useOutDir?: boolean, waitForTermination?: () => Promise<void>, openBrowser?: boolean, viteConfig?: UserConfig$1) => Promise<void>;
|
|
456
|
+
declare const _default$6: import("cmdore").Command<readonly [{
|
|
457
|
+
readonly name: "out-dir";
|
|
458
|
+
readonly description: "Directory where the build output is written.";
|
|
459
|
+
readonly arity: 1;
|
|
460
|
+
}, {
|
|
461
|
+
readonly name: "host";
|
|
462
|
+
readonly description: "Host interface for the web server.";
|
|
463
|
+
readonly arity: 1;
|
|
464
|
+
}, {
|
|
465
|
+
readonly name: "port";
|
|
466
|
+
readonly description: "Port for the web server.";
|
|
467
|
+
readonly arity: 1;
|
|
468
|
+
readonly schema: import("zod").ZodCoercedNumber<unknown>;
|
|
469
|
+
}, {
|
|
470
|
+
readonly name: "open";
|
|
471
|
+
readonly description: "Open the preview in the browser.";
|
|
472
|
+
readonly arity: 0;
|
|
473
|
+
}], readonly import("cmdore").Argument[]>;
|
|
474
|
+
declare const test: (filters: string[], config?: TestConfig, options?: {
|
|
475
|
+
coverage?: boolean;
|
|
476
|
+
environment?: TestConfig["environment"];
|
|
477
|
+
ui?: boolean;
|
|
478
|
+
uiPort?: number;
|
|
479
|
+
watch?: boolean;
|
|
480
|
+
}, waitForTermination?: () => Promise<void>) => Promise<void>;
|
|
481
|
+
declare const _default$7: import("cmdore").Command<readonly [{
|
|
482
|
+
readonly name: "environment";
|
|
483
|
+
readonly description: "Vitest environment to use for this run.";
|
|
484
|
+
readonly arity: 1;
|
|
485
|
+
}, {
|
|
486
|
+
readonly name: "watch";
|
|
487
|
+
readonly description: "Watch test files and rerun affected tests.";
|
|
488
|
+
readonly arity: 0;
|
|
489
|
+
}, {
|
|
490
|
+
readonly name: "coverage";
|
|
491
|
+
readonly description: "Collect test coverage with V8.";
|
|
492
|
+
readonly arity: 0;
|
|
493
|
+
}, {
|
|
494
|
+
readonly name: "ui";
|
|
495
|
+
readonly description: "Start the Vitest user interface.";
|
|
496
|
+
readonly arity: 0;
|
|
497
|
+
}, {
|
|
498
|
+
readonly name: "ui-port";
|
|
499
|
+
readonly description: "Port for the Vitest user interface.";
|
|
500
|
+
readonly arity: 1;
|
|
501
|
+
readonly schema: import("zod").ZodCoercedNumber<unknown>;
|
|
502
|
+
}], readonly [{
|
|
503
|
+
readonly name: "filters";
|
|
504
|
+
readonly description: "Test files or names to run.";
|
|
505
|
+
readonly variadic: true;
|
|
506
|
+
}]>;
|
|
507
|
+
declare const typecheck: (paths: string[]) => Promise<void>;
|
|
508
|
+
declare const _default$8: import("cmdore").Command<readonly import("cmdore").Option[], readonly [{
|
|
509
|
+
readonly name: "paths";
|
|
510
|
+
readonly description: "Files or directories to check.";
|
|
511
|
+
readonly variadic: true;
|
|
512
|
+
}]>;
|
|
513
|
+
declare const bundle$1: {
|
|
514
|
+
readonly name: "bundle";
|
|
515
|
+
readonly description: "Bundle the Node public roots; without it, emit their reachable graph with preserveModules.";
|
|
516
|
+
readonly arity: 0;
|
|
517
|
+
};
|
|
518
|
+
declare const check: {
|
|
519
|
+
readonly name: "check";
|
|
520
|
+
readonly description: "Check formatting without writing files.";
|
|
521
|
+
readonly arity: 0;
|
|
522
|
+
};
|
|
523
|
+
declare const copy: {
|
|
524
|
+
readonly name: "copy";
|
|
525
|
+
readonly description: "Copy source=destination mappings after the build.";
|
|
526
|
+
readonly schema: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<{
|
|
527
|
+
from: string;
|
|
528
|
+
to: string;
|
|
529
|
+
}[], string[]>>;
|
|
530
|
+
};
|
|
531
|
+
declare const coverage: {
|
|
532
|
+
readonly name: "coverage";
|
|
533
|
+
readonly description: "Collect test coverage with V8.";
|
|
534
|
+
readonly arity: 0;
|
|
535
|
+
};
|
|
536
|
+
declare const declaration: {
|
|
537
|
+
readonly name: "declaration";
|
|
538
|
+
readonly description: "Emit TypeScript declarations for a Node build.";
|
|
539
|
+
readonly arity: 1;
|
|
540
|
+
readonly schema: z.ZodPipe<z.ZodEnum<{
|
|
541
|
+
true: "true";
|
|
542
|
+
false: "false";
|
|
543
|
+
}>, z.ZodTransform<boolean, "true" | "false">>;
|
|
544
|
+
};
|
|
545
|
+
declare const environment: {
|
|
546
|
+
readonly name: "environment";
|
|
547
|
+
readonly description: "Vitest environment to use for this run.";
|
|
548
|
+
readonly arity: 1;
|
|
549
|
+
};
|
|
550
|
+
declare const formats$1: {
|
|
551
|
+
readonly name: "formats";
|
|
552
|
+
readonly description: "Comma-separated Node output formats: esm,cjs.";
|
|
553
|
+
readonly arity: 1;
|
|
554
|
+
readonly schema: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodEnum<{
|
|
555
|
+
esm: "esm";
|
|
556
|
+
cjs: "cjs";
|
|
557
|
+
}>>>;
|
|
558
|
+
};
|
|
559
|
+
declare const fix: {
|
|
560
|
+
readonly name: "fix";
|
|
561
|
+
readonly description: "Apply safe lint fixes.";
|
|
562
|
+
readonly arity: 0;
|
|
563
|
+
};
|
|
564
|
+
declare const host: {
|
|
565
|
+
readonly name: "host";
|
|
566
|
+
readonly description: "Host interface for the web server.";
|
|
567
|
+
readonly arity: 1;
|
|
568
|
+
};
|
|
569
|
+
declare const minify$1: {
|
|
570
|
+
readonly name: "minify";
|
|
571
|
+
readonly description: "Minify the build output: true or false.";
|
|
572
|
+
readonly arity: 1;
|
|
573
|
+
readonly schema: z.ZodPipe<z.ZodEnum<{
|
|
574
|
+
true: "true";
|
|
575
|
+
false: "false";
|
|
576
|
+
}>, z.ZodTransform<boolean, "true" | "false">>;
|
|
577
|
+
};
|
|
578
|
+
declare const mode: {
|
|
579
|
+
readonly name: "mode";
|
|
580
|
+
readonly description: "Build mode: web uses Vite and node uses Rolldown.";
|
|
581
|
+
readonly arity: 1;
|
|
582
|
+
readonly schema: z.ZodEnum<{
|
|
583
|
+
web: "web";
|
|
584
|
+
node: "node";
|
|
585
|
+
}>;
|
|
586
|
+
};
|
|
587
|
+
declare const open: {
|
|
588
|
+
readonly name: "open";
|
|
589
|
+
readonly description: "Open the preview in the browser.";
|
|
590
|
+
readonly arity: 0;
|
|
591
|
+
};
|
|
592
|
+
declare const outDir$1: {
|
|
593
|
+
readonly name: "out-dir";
|
|
594
|
+
readonly description: "Directory where the build output is written.";
|
|
595
|
+
readonly arity: 1;
|
|
596
|
+
};
|
|
597
|
+
declare const platform$1: {
|
|
598
|
+
readonly name: "platform";
|
|
599
|
+
readonly description: "Node build platform: node, browser, or neutral.";
|
|
600
|
+
readonly arity: 1;
|
|
601
|
+
readonly schema: z.ZodEnum<{
|
|
602
|
+
node: "node";
|
|
603
|
+
browser: "browser";
|
|
604
|
+
neutral: "neutral";
|
|
605
|
+
}>;
|
|
606
|
+
};
|
|
607
|
+
declare const port: {
|
|
608
|
+
readonly name: "port";
|
|
609
|
+
readonly description: "Port for the web server.";
|
|
610
|
+
readonly arity: 1;
|
|
611
|
+
readonly schema: z.ZodCoercedNumber<unknown>;
|
|
612
|
+
};
|
|
613
|
+
declare const sourcemap$1: {
|
|
614
|
+
readonly name: "sourcemap";
|
|
615
|
+
readonly description: "Generate source maps: true or false.";
|
|
616
|
+
readonly arity: 1;
|
|
617
|
+
readonly schema: z.ZodPipe<z.ZodEnum<{
|
|
618
|
+
true: "true";
|
|
619
|
+
false: "false";
|
|
620
|
+
}>, z.ZodTransform<boolean, "true" | "false">>;
|
|
621
|
+
};
|
|
622
|
+
declare const target$1: {
|
|
623
|
+
readonly name: "target";
|
|
624
|
+
readonly description: "Production syntax target, or comma-separated targets.";
|
|
625
|
+
readonly arity: 1;
|
|
626
|
+
readonly schema: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string | string[], string>>, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
627
|
+
};
|
|
628
|
+
declare const ui: {
|
|
629
|
+
readonly name: "ui";
|
|
630
|
+
readonly description: "Start the Vitest user interface.";
|
|
631
|
+
readonly arity: 0;
|
|
632
|
+
};
|
|
633
|
+
declare const uiPort: {
|
|
634
|
+
readonly name: "ui-port";
|
|
635
|
+
readonly description: "Port for the Vitest user interface.";
|
|
636
|
+
readonly arity: 1;
|
|
637
|
+
readonly schema: z.ZodCoercedNumber<unknown>;
|
|
638
|
+
};
|
|
639
|
+
declare const watch: {
|
|
640
|
+
readonly name: "watch";
|
|
641
|
+
readonly description: "Watch test files and rerun affected tests.";
|
|
642
|
+
readonly arity: 0;
|
|
643
|
+
};
|
|
644
|
+
declare function defineConfig(config: UserConfig): UserConfig;
|
|
645
|
+
declare function defineConfig(config: UserConfigFactory): UserConfigFactory;
|
|
646
|
+
export { BuildConfig, ConfigExport, CopyMapping, FormatConfig, LintConfig, ResolvedConfig, RolldownConfig, SyntaxTarget, TestConfig, UnpluginAdapter, UserConfig, UserConfigFactory, ViteConfig, WebAnvilPlugin, WebAnvilUnplugin, assertSyntaxTarget, build, _default as buildCommand, buildConfigSchema, bundle$1 as bundle, check, _default$1 as checkCommand, checkProject, clean, _default$2 as cleanCommand, copy, copyMappingSchema, coverage, declaration, defaultConfig, defineConfig, definePlugin, dev, _default$3 as devCommand, effectiveUserConfigSchema, entry$1 as entry, environment, filters, fix, format, _default$4 as formatCommand, formatConfigSchema, formats$1 as formats, host, isUnpluginAdapter, isWebAnvilPlugin, lint, _default$5 as lintCommand, lintConfigSchema, loadConfig, minify$1 as minify, mode, open, outDir$1 as outDir, paths, platform$1 as platform, port, preview, _default$6 as previewCommand, resolveEffectiveBuildConfig, resolveRolldownPlugins, resolveVitePlugins, rolldownConfigSchema, sourcemap$1 as sourcemap, syntaxTargetSchema, target$1 as target, test, _default$7 as testCommand, testConfigSchema, typecheck, _default$8 as typecheckCommand, ui, uiPort, userConfigSchema, viteConfigSchema, watch, withConfig };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { assertSyntaxTarget, build, buildConfigSchema, build_default, bundle, check, checkProject, check_default, clean, clean_default, copy, copyMappingSchema, coverage, declaration, defaultConfig, defineConfig as defineConfig$1, definePlugin, dev, dev_default, effectiveUserConfigSchema, entry, environment, filters, fix, format, formatConfigSchema, format_default, formats, host, isUnpluginAdapter, isWebAnvilPlugin, lint, lintConfigSchema, lint_default, loadConfig, minify, mode, open, outDir, paths, platform, port, preview, preview_default, resolveEffectiveBuildConfig, resolveRolldownPlugins, resolveVitePlugins, rolldownConfigSchema, sourcemap, syntaxTargetSchema, target, test, testConfigSchema, test_default, typecheck, typecheck_default, ui, uiPort, userConfigSchema, viteConfigSchema, watch, withConfig } from "./_chunks/commands.mjs";
|
|
2
|
+
function defineConfig(config) {
|
|
3
|
+
return defineConfig$1(config);
|
|
4
|
+
}
|
|
5
|
+
export { assertSyntaxTarget, build, build_default as buildCommand, buildConfigSchema, bundle, check, check_default as checkCommand, checkProject, clean, clean_default as cleanCommand, copy, copyMappingSchema, coverage, declaration, defaultConfig, defineConfig, definePlugin, dev, dev_default as devCommand, effectiveUserConfigSchema, entry, environment, filters, fix, format, format_default as formatCommand, formatConfigSchema, formats, host, isUnpluginAdapter, isWebAnvilPlugin, lint, lint_default as lintCommand, lintConfigSchema, loadConfig, minify, mode, open, outDir, paths, platform, port, preview, preview_default as previewCommand, resolveEffectiveBuildConfig, resolveRolldownPlugins, resolveVitePlugins, rolldownConfigSchema, sourcemap, syntaxTargetSchema, target, test, test_default as testCommand, testConfigSchema, typecheck, typecheck_default as typecheckCommand, ui, uiPort, userConfigSchema, viteConfigSchema, watch, withConfig };
|