@deltabox/toolchain 1.2.3 → 1.3.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.
- package/CHANGELOG.md +137 -2
- package/README.md +8 -0
- package/dist/changelog.d.ts +2 -2
- package/dist/changelog.js +1 -1
- package/dist/cli/commands/projects.js +1 -1
- package/dist/cli/commands/providers.js +1 -1
- package/dist/cli/commands/reset.js +1 -1
- package/dist/cli/commands/sync.js +1 -1
- package/dist/cli/commands/watch.js +1 -1
- package/dist/cli/index.d.ts +33 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/register.js +1 -1
- package/dist/cli/update-check.js +1 -0
- package/dist/config.d.ts +2 -1
- package/dist/config.js +1 -1
- package/dist/core.d.ts +2 -1
- package/dist/core.js +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1 -1
- package/dist/package.js +1 -1
- package/dist/packages/changelog/src/cli/index.js +1 -1
- package/dist/packages/changelog/src/index.d.ts +3 -3
- package/dist/packages/changelog/src/index.js +1 -1
- package/dist/packages/changelog/src/run.js +1 -1
- package/dist/packages/changelog/src/templates.d.ts +1 -1
- package/dist/packages/changelog/src/templates.js +3 -3
- package/dist/packages/changelog/src/utils/format.js +5 -5
- package/dist/packages/changelog/src/utils/git.js +1 -1
- package/dist/packages/changelog/src/utils/reformat.js +4 -4
- package/dist/packages/changelog/src/utils/repo.js +1 -1
- package/dist/packages/changelog/src/utils/summary.d.ts +7 -0
- package/dist/packages/changelog/src/utils/summary.js +1 -1
- package/dist/packages/changelog/src/utils/version.js +5 -5
- package/dist/packages/changelog/src/utils/write.js +1 -1
- package/dist/packages/config/src/cli/index.js +1 -1
- package/dist/packages/config/src/generated-format.d.ts +42 -0
- package/dist/packages/config/src/generated-format.js +3 -0
- package/dist/packages/config/src/generators/types.js +3 -1
- package/dist/packages/config/src/index.d.ts +3 -2
- package/dist/packages/config/src/index.js +1 -1
- package/dist/packages/core/src/gitignore.d.ts +19 -0
- package/dist/packages/core/src/gitignore.js +7 -0
- package/dist/packages/core/src/index.d.ts +3 -2
- package/dist/packages/core/src/index.js +1 -1
- package/dist/packages/core/src/loader.js +1 -1
- package/dist/packages/core/src/sync.d.ts +1 -1
- package/dist/packages/core/src/sync.js +1 -1
- package/dist/packages/core/src/watch.js +1 -1
- package/dist/packages/migrate/src/cli/index.js +1 -1
- package/dist/packages/migrate/src/oxfmt-map.js +1 -1
- package/dist/packages/project/src/cli/index.js +1 -1
- package/dist/packages/shared/src/config-schema.d.ts +100 -0
- package/dist/packages/shared/src/config-schema.js +1 -1
- package/dist/packages/shared/src/config-types.d.ts +68 -217
- package/dist/packages/shared/src/index.d.ts +5 -4
- package/dist/packages/shared/src/index.js +1 -1
- package/dist/packages/shared/src/logger.d.ts +68 -0
- package/dist/packages/shared/src/logger.js +1 -0
- package/dist/packages/shared/src/run.js +1 -1
- package/dist/packages/shared/src/toolchain.d.ts +9 -7
- package/dist/packages/shared/src/toolchain.js +1 -1
- package/dist/packages/template/src/cli/index.js +1 -1
- package/dist/packages/template/src/scaffold.js +1 -1
- package/dist/packages/tsconfig/src/cli/generate/index.js +1 -1
- package/dist/packages/tsconfig/src/cli/generate/utils.js +1 -1
- package/dist/packages/tsdown/src/cleanup.js +1 -1
- package/dist/packages/vite/src/cli/index.d.ts +5 -1
- package/dist/packages/vite/src/cli/index.js +1 -1
- package/dist/packages/vite/src/commands.d.ts +6 -0
- package/dist/packages/vite/src/commands.js +1 -1
- package/dist/packages/vite/src/index.d.ts +3 -3
- package/dist/packages/vite/src/index.js +1 -1
- package/dist/packages/vite/src/vp.d.ts +6 -0
- package/dist/packages/vite/src/vp.js +1 -1
- package/dist/shared.d.ts +4 -3
- package/dist/shared.js +1 -1
- package/dist/sync.js +1 -1
- package/dist/vite.d.ts +3 -3
- package/dist/vite.js +1 -1
- package/package.json +13 -12
|
@@ -800,6 +800,22 @@ export declare const watchConfigSchema: z.ZodObject<{
|
|
|
800
800
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
801
801
|
debounce: z.ZodOptional<z.ZodNumber>;
|
|
802
802
|
}, z.core.$strip>;
|
|
803
|
+
/** Logging (level, colour, prefix) for every toolchain message. */
|
|
804
|
+
export declare const loggerConfigSchema: z.ZodObject<{
|
|
805
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
806
|
+
debug: "debug";
|
|
807
|
+
error: "error";
|
|
808
|
+
info: "info";
|
|
809
|
+
silent: "silent";
|
|
810
|
+
warn: "warn";
|
|
811
|
+
}>>;
|
|
812
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
813
|
+
name: z.ZodOptional<z.ZodString>;
|
|
814
|
+
}, z.core.$strip>;
|
|
815
|
+
/** Provider command behaviour (colour of the provider passthrough commands). */
|
|
816
|
+
export declare const providersConfigSchema: z.ZodObject<{
|
|
817
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
818
|
+
}, z.core.$strip>;
|
|
803
819
|
/** Where a template source is loaded from. */
|
|
804
820
|
export declare const templateSourceTypeSchema: z.ZodEnum<{
|
|
805
821
|
builtin: "builtin";
|
|
@@ -1257,6 +1273,20 @@ export declare const toolingConfigSchema: z.ZodObject<{
|
|
|
1257
1273
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1258
1274
|
debounce: z.ZodOptional<z.ZodNumber>;
|
|
1259
1275
|
}, z.core.$strip>]>>;
|
|
1276
|
+
logger: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
1277
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
1278
|
+
debug: "debug";
|
|
1279
|
+
error: "error";
|
|
1280
|
+
info: "info";
|
|
1281
|
+
silent: "silent";
|
|
1282
|
+
warn: "warn";
|
|
1283
|
+
}>>;
|
|
1284
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
1285
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1286
|
+
}, z.core.$strip>]>>;
|
|
1287
|
+
providers: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
1288
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
1289
|
+
}, z.core.$strip>]>>;
|
|
1260
1290
|
}, z.core.$strip>;
|
|
1261
1291
|
/** The root `dbx.config` schema — the toolchain configuration lives under `toolchain`. */
|
|
1262
1292
|
export declare const dbxConfigSchema: z.ZodObject<{
|
|
@@ -1635,6 +1665,20 @@ export declare const dbxConfigSchema: z.ZodObject<{
|
|
|
1635
1665
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1636
1666
|
debounce: z.ZodOptional<z.ZodNumber>;
|
|
1637
1667
|
}, z.core.$strip>]>>;
|
|
1668
|
+
logger: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
1669
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
1670
|
+
debug: "debug";
|
|
1671
|
+
error: "error";
|
|
1672
|
+
info: "info";
|
|
1673
|
+
silent: "silent";
|
|
1674
|
+
warn: "warn";
|
|
1675
|
+
}>>;
|
|
1676
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
1677
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1678
|
+
}, z.core.$strip>]>>;
|
|
1679
|
+
providers: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
1680
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
1681
|
+
}, z.core.$strip>]>>;
|
|
1638
1682
|
}, z.core.$strip>>;
|
|
1639
1683
|
}, z.core.$strip>;
|
|
1640
1684
|
/**
|
|
@@ -2506,6 +2550,20 @@ export declare const CONFIG_TYPE_SCHEMAS: {
|
|
|
2506
2550
|
lintIgnore: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2507
2551
|
overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2508
2552
|
}, z.core.$strip>;
|
|
2553
|
+
readonly ToolingLoggerConfig: z.ZodObject<{
|
|
2554
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
2555
|
+
debug: "debug";
|
|
2556
|
+
error: "error";
|
|
2557
|
+
info: "info";
|
|
2558
|
+
silent: "silent";
|
|
2559
|
+
warn: "warn";
|
|
2560
|
+
}>>;
|
|
2561
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
2562
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2563
|
+
}, z.core.$strip>;
|
|
2564
|
+
readonly ToolingProvidersConfig: z.ZodObject<{
|
|
2565
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
2566
|
+
}, z.core.$strip>;
|
|
2509
2567
|
readonly ToolingConfigSections: z.ZodObject<{
|
|
2510
2568
|
project: z.ZodOptional<z.ZodObject<{
|
|
2511
2569
|
type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2881,6 +2939,20 @@ export declare const CONFIG_TYPE_SCHEMAS: {
|
|
|
2881
2939
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2882
2940
|
debounce: z.ZodOptional<z.ZodNumber>;
|
|
2883
2941
|
}, z.core.$strip>]>>;
|
|
2942
|
+
logger: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
2943
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
2944
|
+
debug: "debug";
|
|
2945
|
+
error: "error";
|
|
2946
|
+
info: "info";
|
|
2947
|
+
silent: "silent";
|
|
2948
|
+
warn: "warn";
|
|
2949
|
+
}>>;
|
|
2950
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
2951
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2952
|
+
}, z.core.$strip>]>>;
|
|
2953
|
+
providers: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
2954
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
2955
|
+
}, z.core.$strip>]>>;
|
|
2884
2956
|
}, z.core.$strip>;
|
|
2885
2957
|
readonly DbxConfigSections: z.ZodObject<{
|
|
2886
2958
|
toolchain: z.ZodOptional<z.ZodObject<{
|
|
@@ -3258,6 +3330,20 @@ export declare const CONFIG_TYPE_SCHEMAS: {
|
|
|
3258
3330
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3259
3331
|
debounce: z.ZodOptional<z.ZodNumber>;
|
|
3260
3332
|
}, z.core.$strip>]>>;
|
|
3333
|
+
logger: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
3334
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
3335
|
+
debug: "debug";
|
|
3336
|
+
error: "error";
|
|
3337
|
+
info: "info";
|
|
3338
|
+
silent: "silent";
|
|
3339
|
+
warn: "warn";
|
|
3340
|
+
}>>;
|
|
3341
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
3342
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3343
|
+
}, z.core.$strip>]>>;
|
|
3344
|
+
providers: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
3345
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
3346
|
+
}, z.core.$strip>]>>;
|
|
3261
3347
|
}, z.core.$strip>>;
|
|
3262
3348
|
}, z.core.$strip>;
|
|
3263
3349
|
};
|
|
@@ -3637,6 +3723,20 @@ export declare const CONFIG_SECTION_SCHEMAS: {
|
|
|
3637
3723
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3638
3724
|
debounce: z.ZodOptional<z.ZodNumber>;
|
|
3639
3725
|
}, z.core.$strip>;
|
|
3726
|
+
readonly logger: z.ZodObject<{
|
|
3727
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
3728
|
+
debug: "debug";
|
|
3729
|
+
error: "error";
|
|
3730
|
+
info: "info";
|
|
3731
|
+
silent: "silent";
|
|
3732
|
+
warn: "warn";
|
|
3733
|
+
}>>;
|
|
3734
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
3735
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3736
|
+
}, z.core.$strip>;
|
|
3737
|
+
readonly providers: z.ZodObject<{
|
|
3738
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
3739
|
+
}, z.core.$strip>;
|
|
3640
3740
|
};
|
|
3641
3741
|
/** One-line descriptions for the generated docs index. */
|
|
3642
3742
|
export declare const CONFIG_SECTION_DESCRIPTIONS: Record<keyof typeof CONFIG_SECTION_SCHEMAS, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{z as e}from"zod";const t=e.enum([`monorepo-root`,`monorepo-workspace`,`project`]).describe(`The project kind (detected when omitted).`).meta({id:`ProjectType`}),n=e.object({type:t.optional(),name:e.string().describe(`The unscoped project name.`).optional(),scope:e.string().describe("The npm scope, eg. `@acme`.").optional(),author:e.string().describe(`Package author.`).optional(),license:e.string().describe(`SPDX license id.`).optional(),homepage:e.string().describe(`Project homepage.`).optional(),repo:e.string().describe("Repository URL, eg. `https://github.com/acme/app`.").optional(),nodeVersion:e.string().describe("Node engine range, eg. `>=22`.").optional(),packageManager:e.string().describe("Package manager name (default `yarn`).").optional(),packageManagerVersion:e.string().describe("Package manager version, eg. `4.17.1`.").optional(),description:e.string().describe(`One-line description.`).optional()}).meta({id:`ToolingProjectConfig`}),r=e.object({name:e.string().optional(),id:e.string().optional(),if:e.string().optional(),uses:e.string().optional(),run:e.string().optional(),shell:e.string().optional(),"working-directory":e.string().optional(),with:e.record(e.string(),e.union([e.string(),e.number(),e.boolean()])).optional(),env:e.record(e.string(),e.string()).optional()}).meta({id:`WorkflowStep`}),i=e.object({job:e.string().describe(`Target job id (defaults to the primary/first job).`).optional(),before:e.array(r).describe(`Steps inserted at the start.`).optional(),after:e.array(r).describe(`Steps appended at the end.`).optional()}).meta({id:`WorkflowStepsConfig`}),a=e.object({enabled:e.boolean().describe(`Enable/disable this workflow (default true).`).optional(),pushBranches:e.array(e.string()).describe("Replace `on.push.branches`.").optional(),pullRequestBranches:e.array(e.string()).describe("Replace `on.pull_request.branches`.").optional(),triggers:e.record(e.string(),e.unknown()).describe("Extra `on.*` triggers.").optional(),extra:e.record(e.string(),e.unknown()).describe("Extra top-level keys (`permissions`, `concurrency`, `env`, ...).").optional(),steps:e.union([i,e.array(i)]).describe(`Extra steps for a job (one group, or per-job groups).`).optional(),jobs:e.record(e.string(),e.unknown()).describe(`Extra complete jobs merged in.`).optional(),tokens:e.record(e.string(),e.union([e.string(),e.number(),e.boolean()])).describe("Per-workflow token overrides (`nodeVersion`, `packageManager`, ...).").optional()}).meta({id:`WorkflowConfig`}),o=e.union([e.boolean(),a]).meta({id:`WorkflowSetting`}),s=e.object({ci:o.optional(),changelog:o.optional(),release:o.optional(),issues:o.optional(),sync:o.optional()}).meta({id:`ChangelogWorkflowsConfig`}),c=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),workflows:s.describe("Which workflows to write into `.github/workflows`.").optional(),branches:e.object({main:e.string().optional(),dev:e.string().optional()}).describe(`Branch names the workflows target.`).optional(),types:e.array(e.string()).describe(`Allowed commit types (commitlint).`).optional(),scopes:e.array(e.string()).describe(`Allowed commit scopes (commitlint).`).optional(),vscode:e.boolean().describe(`Write the Conventional-Commits VS Code settings.`).optional()}).meta({id:`ToolingChangelogConfig`}),l=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),vscode:e.boolean().describe(`Write the Biome VS Code settings (default true).`).optional(),overrides:e.record(e.string(),e.unknown()).describe("Deep-merged over the generated `biome.json` (arrays union).").optional()}).meta({id:`ToolingBiomeConfig`}),u=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),glob:e.string().describe("Glob for workspace `tsconfig.default.json` files.").optional(),appGlob:e.string().describe(`Glob for "override" (app) workspaces.`).optional(),refs:e.boolean().describe(`Wire project references (default false).`).optional(),composite:e.boolean().describe("Emit `composite: true` (default false).").optional(),aliases:e.boolean().describe(`Inject path aliases (default true).`).optional(),indent:e.number().describe(`JSON indentation (default 4).`).optional(),rootFile:e.string().describe("The monorepo tsconfig file name (default `tsconfig.monorepo.json`).").optional()}).meta({id:`ToolingTsconfigConfig`}),d=e.object({enabled:e.boolean().describe(`Watch by default (enabled when the section is defined).`).optional(),debounce:e.number().describe(`Debounce window in ms (default 150).`).optional()}).meta({id:`ToolingWatchConfig`}),f=e.enum([`builtin`,`local`,`npm`,`git`,`vite-plus`]).describe(`How to load the source.`).meta({id:`ToolingTemplateSourceType`}),
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{z as e}from"zod";const t=e.enum([`monorepo-root`,`monorepo-workspace`,`project`]).describe(`The project kind (detected when omitted).`).meta({id:`ProjectType`}),n=e.object({type:t.optional(),name:e.string().describe(`The unscoped project name.`).optional(),scope:e.string().describe("The npm scope, eg. `@acme`.").optional(),author:e.string().describe(`Package author.`).optional(),license:e.string().describe(`SPDX license id.`).optional(),homepage:e.string().describe(`Project homepage.`).optional(),repo:e.string().describe("Repository URL, eg. `https://github.com/acme/app`.").optional(),nodeVersion:e.string().describe("Node engine range, eg. `>=22`.").optional(),packageManager:e.string().describe("Package manager name (default `yarn`).").optional(),packageManagerVersion:e.string().describe("Package manager version, eg. `4.17.1`.").optional(),description:e.string().describe(`One-line description.`).optional()}).meta({id:`ToolingProjectConfig`}),r=e.object({name:e.string().optional(),id:e.string().optional(),if:e.string().optional(),uses:e.string().optional(),run:e.string().optional(),shell:e.string().optional(),"working-directory":e.string().optional(),with:e.record(e.string(),e.union([e.string(),e.number(),e.boolean()])).optional(),env:e.record(e.string(),e.string()).optional()}).meta({id:`WorkflowStep`}),i=e.object({job:e.string().describe(`Target job id (defaults to the primary/first job).`).optional(),before:e.array(r).describe(`Steps inserted at the start.`).optional(),after:e.array(r).describe(`Steps appended at the end.`).optional()}).meta({id:`WorkflowStepsConfig`}),a=e.object({enabled:e.boolean().describe(`Enable/disable this workflow (default true).`).optional(),pushBranches:e.array(e.string()).describe("Replace `on.push.branches`.").optional(),pullRequestBranches:e.array(e.string()).describe("Replace `on.pull_request.branches`.").optional(),triggers:e.record(e.string(),e.unknown()).describe("Extra `on.*` triggers.").optional(),extra:e.record(e.string(),e.unknown()).describe("Extra top-level keys (`permissions`, `concurrency`, `env`, ...).").optional(),steps:e.union([i,e.array(i)]).describe(`Extra steps for a job (one group, or per-job groups).`).optional(),jobs:e.record(e.string(),e.unknown()).describe(`Extra complete jobs merged in.`).optional(),tokens:e.record(e.string(),e.union([e.string(),e.number(),e.boolean()])).describe("Per-workflow token overrides (`nodeVersion`, `packageManager`, ...).").optional()}).meta({id:`WorkflowConfig`}),o=e.union([e.boolean(),a]).meta({id:`WorkflowSetting`}),s=e.object({ci:o.optional(),changelog:o.optional(),release:o.optional(),issues:o.optional(),sync:o.optional()}).meta({id:`ChangelogWorkflowsConfig`}),c=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),workflows:s.describe("Which workflows to write into `.github/workflows`.").optional(),branches:e.object({main:e.string().optional(),dev:e.string().optional()}).describe(`Branch names the workflows target.`).optional(),types:e.array(e.string()).describe(`Allowed commit types (commitlint).`).optional(),scopes:e.array(e.string()).describe(`Allowed commit scopes (commitlint).`).optional(),vscode:e.boolean().describe(`Write the Conventional-Commits VS Code settings.`).optional()}).meta({id:`ToolingChangelogConfig`}),l=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),vscode:e.boolean().describe(`Write the Biome VS Code settings (default true).`).optional(),overrides:e.record(e.string(),e.unknown()).describe("Deep-merged over the generated `biome.json` (arrays union).").optional()}).meta({id:`ToolingBiomeConfig`}),u=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),glob:e.string().describe("Glob for workspace `tsconfig.default.json` files.").optional(),appGlob:e.string().describe(`Glob for "override" (app) workspaces.`).optional(),refs:e.boolean().describe(`Wire project references (default false).`).optional(),composite:e.boolean().describe("Emit `composite: true` (default false).").optional(),aliases:e.boolean().describe(`Inject path aliases (default true).`).optional(),indent:e.number().describe(`JSON indentation (default 4).`).optional(),rootFile:e.string().describe("The monorepo tsconfig file name (default `tsconfig.monorepo.json`).").optional()}).meta({id:`ToolingTsconfigConfig`}),d=e.object({enabled:e.boolean().describe(`Watch by default (enabled when the section is defined).`).optional(),debounce:e.number().describe(`Debounce window in ms (default 150).`).optional()}).meta({id:`ToolingWatchConfig`}),f=e.object({level:e.enum([`debug`,`info`,`warn`,`error`,`silent`]).describe("Minimum level to print (default `info`).").optional(),color:e.boolean().describe(`Force colours on/off (default: auto).`).optional(),name:e.string().describe("Prefix non-indented lines with `<name>:` (default `dbx`).").optional()}).meta({id:`ToolingLoggerConfig`}),p=e.object({color:e.boolean().describe(`Force provider command colours on/off (default: inherit the logger).`).optional()}).meta({id:`ToolingProvidersConfig`}),m=e.enum([`builtin`,`local`,`npm`,`git`,`vite-plus`]).describe(`How to load the source.`).meta({id:`ToolingTemplateSourceType`}),h=e.enum([`project`,`workspace`,`application`,`folder`,`tooling`,`pipeline`]).describe(`What the template produces.`).meta({id:`ToolingTemplateKind`}),g=e.object({type:m,locate:e.string().describe(`A builtin id, local dir, npm scope, git URL or Vite+ id.`),id:e.string().describe(`Stable id (defaults to the basename/scope).`).optional(),name:e.string().describe(`Display name override.`).optional(),description:e.string().describe(`Description override.`).optional(),kind:h.optional(),ref:e.string().describe(`Git branch/tag/commit.`).optional(),subdir:e.string().describe(`Subdirectory within the source that holds the template.`).optional(),tags:e.array(e.string()).describe(`Free-form tags.`).optional(),online:e.boolean().describe(`Whether the source needs network access.`).optional()}).meta({id:`ToolingTemplateSource`}),_=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),sources:e.array(g).describe(`Extra sources on top of the builtin + registry sources.`).optional()}).meta({id:`ToolingTemplatesConfig`}),v=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),config:e.boolean().describe("Write the managed `vite.config.ts` (default true when the section is set).").optional(),defaultTemplate:e.string().describe("`create.defaultTemplate`, eg. `@acme` for `@acme/create`.").optional(),testInclude:e.array(e.string()).describe(`Extra Vitest include globs (default: tests under src + tests).`).optional(),lintIgnore:e.array(e.string()).describe(`Glob patterns Oxlint should ignore.`).optional(),overrides:e.record(e.string(),e.unknown()).describe("Deep-merged over the generated `vite.config.ts` object.").optional()}).meta({id:`ToolingViteConfig`});function y(t){return e.union([e.boolean(),t])}const b=e.object({project:n.optional(),changelog:y(c).optional(),biome:y(l).optional(),tsconfig:y(u).optional(),templates:y(_).optional(),vite:y(v).optional(),watch:y(d).optional(),logger:y(f).optional(),providers:y(p).optional()}).meta({id:`ToolingConfigSections`}),x=e.object({toolchain:b.optional()}).meta({id:`DbxConfigSections`}),S={ProjectType:t,ToolingProjectConfig:n,WorkflowStep:r,WorkflowStepsConfig:i,WorkflowConfig:a,WorkflowSetting:o,ChangelogWorkflowsConfig:s,ToolingChangelogConfig:c,ToolingBiomeConfig:l,ToolingTsconfigConfig:u,ToolingWatchConfig:d,ToolingTemplateSourceType:m,ToolingTemplateKind:h,ToolingTemplateSource:g,ToolingTemplatesConfig:_,ToolingViteConfig:v,ToolingLoggerConfig:f,ToolingProvidersConfig:p,ToolingConfigSections:b,DbxConfigSections:x},C={project:n,changelog:c,biome:l,tsconfig:u,templates:_,vite:v,watch:d,logger:f,providers:p},w={project:`Project metadata used as replacement tokens across every template.`,changelog:`Conventional-Commits CI, commitlint and the changelog pipeline.`,biome:"Biome config generation (for consumers that still want a `biome.json`).",tsconfig:`Workspace tsconfig generation (path aliases + project references).`,templates:`Template sources / scaffolding.`,vite:"Vite+ configuration (manages `vite.config.ts` + the `vite:*` commands).",watch:"Watch behaviour for `dbx watch`.",logger:`Logging level, colours and prefix for toolchain output.`,providers:`Provider command behaviour (eg. colour for the provider passthrough commands).`};export{w as CONFIG_SECTION_DESCRIPTIONS,C as CONFIG_SECTION_SCHEMAS,S as CONFIG_TYPE_SCHEMAS,l as biomeConfigSchema,c as changelogConfigSchema,s as changelogWorkflowsConfigSchema,x as dbxConfigSchema,f as loggerConfigSchema,n as projectConfigSchema,t as projectTypeSchema,p as providersConfigSchema,h as templateKindSchema,g as templateSourceSchema,m as templateSourceTypeSchema,_ as templatesConfigSchema,b as toolingConfigSchema,u as tsconfigConfigSchema,v as viteConfigSchema,d as watchConfigSchema,a as workflowConfigSchema,o as workflowSettingSchema,r as workflowStepSchema,i as workflowStepsConfigSchema};
|
|
@@ -4,55 +4,25 @@ import __tsdown_shims_url from 'node:url';
|
|
|
4
4
|
export type ProjectType = 'monorepo-root' | 'monorepo-workspace' | 'project';
|
|
5
5
|
export interface ToolingProjectConfig {
|
|
6
6
|
type?: ProjectType;
|
|
7
|
-
/**
|
|
8
|
-
* The unscoped project name.
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
7
|
+
/** The unscoped project name. */
|
|
11
8
|
name?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The npm scope, eg. `@acme`.
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
9
|
+
/** The npm scope, eg. `@acme`. */
|
|
16
10
|
scope?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Package author.
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
11
|
+
/** Package author. */
|
|
21
12
|
author?: string;
|
|
22
|
-
/**
|
|
23
|
-
* SPDX license id.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
13
|
+
/** SPDX license id. */
|
|
26
14
|
license?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Project homepage.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
15
|
+
/** Project homepage. */
|
|
31
16
|
homepage?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Repository URL, eg. `https://github.com/acme/app`.
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
17
|
+
/** Repository URL, eg. `https://github.com/acme/app`. */
|
|
36
18
|
repo?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Node engine range, eg. `>=22`.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
19
|
+
/** Node engine range, eg. `>=22`. */
|
|
41
20
|
nodeVersion?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Package manager name (default `yarn`).
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
21
|
+
/** Package manager name (default `yarn`). */
|
|
46
22
|
packageManager?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Package manager version, eg. `4.17.1`.
|
|
49
|
-
*
|
|
50
|
-
*/
|
|
23
|
+
/** Package manager version, eg. `4.17.1`. */
|
|
51
24
|
packageManagerVersion?: string;
|
|
52
|
-
/**
|
|
53
|
-
* One-line description.
|
|
54
|
-
*
|
|
55
|
-
*/
|
|
25
|
+
/** One-line description. */
|
|
56
26
|
description?: string;
|
|
57
27
|
}
|
|
58
28
|
export interface WorkflowStep {
|
|
@@ -67,62 +37,29 @@ export interface WorkflowStep {
|
|
|
67
37
|
env?: Record<string, string>;
|
|
68
38
|
}
|
|
69
39
|
export interface WorkflowStepsConfig {
|
|
70
|
-
/**
|
|
71
|
-
* Target job id (defaults to the primary/first job).
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
40
|
+
/** Target job id (defaults to the primary/first job). */
|
|
74
41
|
job?: string;
|
|
75
|
-
/**
|
|
76
|
-
* Steps inserted at the start.
|
|
77
|
-
*
|
|
78
|
-
*/
|
|
42
|
+
/** Steps inserted at the start. */
|
|
79
43
|
before?: Array<WorkflowStep>;
|
|
80
|
-
/**
|
|
81
|
-
* Steps appended at the end.
|
|
82
|
-
*
|
|
83
|
-
*/
|
|
44
|
+
/** Steps appended at the end. */
|
|
84
45
|
after?: Array<WorkflowStep>;
|
|
85
46
|
}
|
|
86
47
|
export interface WorkflowConfig {
|
|
87
|
-
/**
|
|
88
|
-
* Enable/disable this workflow (default true).
|
|
89
|
-
*
|
|
90
|
-
*/
|
|
48
|
+
/** Enable/disable this workflow (default true). */
|
|
91
49
|
enabled?: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Replace `on.push.branches`.
|
|
94
|
-
*
|
|
95
|
-
*/
|
|
50
|
+
/** Replace `on.push.branches`. */
|
|
96
51
|
pushBranches?: Array<string>;
|
|
97
|
-
/**
|
|
98
|
-
* Replace `on.pull_request.branches`.
|
|
99
|
-
*
|
|
100
|
-
*/
|
|
52
|
+
/** Replace `on.pull_request.branches`. */
|
|
101
53
|
pullRequestBranches?: Array<string>;
|
|
102
|
-
/**
|
|
103
|
-
* Extra `on.*` triggers.
|
|
104
|
-
*
|
|
105
|
-
*/
|
|
54
|
+
/** Extra `on.*` triggers. */
|
|
106
55
|
triggers?: Record<string, unknown>;
|
|
107
|
-
/**
|
|
108
|
-
* Extra top-level keys (`permissions`, `concurrency`, `env`, ...).
|
|
109
|
-
*
|
|
110
|
-
*/
|
|
56
|
+
/** Extra top-level keys (`permissions`, `concurrency`, `env`, ...). */
|
|
111
57
|
extra?: Record<string, unknown>;
|
|
112
|
-
/**
|
|
113
|
-
* Extra steps for a job (one group, or per-job groups).
|
|
114
|
-
*
|
|
115
|
-
*/
|
|
58
|
+
/** Extra steps for a job (one group, or per-job groups). */
|
|
116
59
|
steps?: WorkflowStepsConfig | Array<WorkflowStepsConfig>;
|
|
117
|
-
/**
|
|
118
|
-
* Extra complete jobs merged in.
|
|
119
|
-
*
|
|
120
|
-
*/
|
|
60
|
+
/** Extra complete jobs merged in. */
|
|
121
61
|
jobs?: Record<string, unknown>;
|
|
122
|
-
/**
|
|
123
|
-
* Per-workflow token overrides (`nodeVersion`, `packageManager`, ...).
|
|
124
|
-
*
|
|
125
|
-
*/
|
|
62
|
+
/** Per-workflow token overrides (`nodeVersion`, `packageManager`, ...). */
|
|
126
63
|
tokens?: Record<string, string | number | boolean>;
|
|
127
64
|
}
|
|
128
65
|
export type WorkflowSetting = boolean | WorkflowConfig;
|
|
@@ -134,199 +71,111 @@ export interface ChangelogWorkflowsConfig {
|
|
|
134
71
|
sync?: WorkflowSetting;
|
|
135
72
|
}
|
|
136
73
|
export interface ToolingChangelogConfig {
|
|
137
|
-
/**
|
|
138
|
-
* Master switch (enabled when the section is defined).
|
|
139
|
-
*
|
|
140
|
-
*/
|
|
74
|
+
/** Master switch (enabled when the section is defined). */
|
|
141
75
|
enabled?: boolean;
|
|
142
76
|
workflows?: ChangelogWorkflowsConfig;
|
|
143
77
|
branches?: {
|
|
144
78
|
main?: string;
|
|
145
79
|
dev?: string;
|
|
146
80
|
};
|
|
147
|
-
/**
|
|
148
|
-
* Allowed commit types (commitlint).
|
|
149
|
-
*
|
|
150
|
-
*/
|
|
81
|
+
/** Allowed commit types (commitlint). */
|
|
151
82
|
types?: Array<string>;
|
|
152
|
-
/**
|
|
153
|
-
* Allowed commit scopes (commitlint).
|
|
154
|
-
*
|
|
155
|
-
*/
|
|
83
|
+
/** Allowed commit scopes (commitlint). */
|
|
156
84
|
scopes?: Array<string>;
|
|
157
|
-
/**
|
|
158
|
-
* Write the Conventional-Commits VS Code settings.
|
|
159
|
-
*
|
|
160
|
-
*/
|
|
85
|
+
/** Write the Conventional-Commits VS Code settings. */
|
|
161
86
|
vscode?: boolean;
|
|
162
87
|
}
|
|
163
88
|
export interface ToolingBiomeConfig {
|
|
164
|
-
/**
|
|
165
|
-
* Master switch (enabled when the section is defined).
|
|
166
|
-
*
|
|
167
|
-
*/
|
|
89
|
+
/** Master switch (enabled when the section is defined). */
|
|
168
90
|
enabled?: boolean;
|
|
169
|
-
/**
|
|
170
|
-
* Write the Biome VS Code settings (default true).
|
|
171
|
-
*
|
|
172
|
-
*/
|
|
91
|
+
/** Write the Biome VS Code settings (default true). */
|
|
173
92
|
vscode?: boolean;
|
|
174
|
-
/**
|
|
175
|
-
* Deep-merged over the generated `biome.json` (arrays union).
|
|
176
|
-
*
|
|
177
|
-
*/
|
|
93
|
+
/** Deep-merged over the generated `biome.json` (arrays union). */
|
|
178
94
|
overrides?: Record<string, unknown>;
|
|
179
95
|
}
|
|
180
96
|
export interface ToolingTsconfigConfig {
|
|
181
|
-
/**
|
|
182
|
-
* Master switch (enabled when the section is defined).
|
|
183
|
-
*
|
|
184
|
-
*/
|
|
97
|
+
/** Master switch (enabled when the section is defined). */
|
|
185
98
|
enabled?: boolean;
|
|
186
|
-
/**
|
|
187
|
-
* Glob for workspace `tsconfig.default.json` files.
|
|
188
|
-
*
|
|
189
|
-
*/
|
|
99
|
+
/** Glob for workspace `tsconfig.default.json` files. */
|
|
190
100
|
glob?: string;
|
|
191
|
-
/**
|
|
192
|
-
* Glob for "override" (app) workspaces.
|
|
193
|
-
*
|
|
194
|
-
*/
|
|
101
|
+
/** Glob for "override" (app) workspaces. */
|
|
195
102
|
appGlob?: string;
|
|
196
|
-
/**
|
|
197
|
-
* Wire project references (default false).
|
|
198
|
-
*
|
|
199
|
-
*/
|
|
103
|
+
/** Wire project references (default false). */
|
|
200
104
|
refs?: boolean;
|
|
201
|
-
/**
|
|
202
|
-
* Emit `composite: true` (default false).
|
|
203
|
-
*
|
|
204
|
-
*/
|
|
105
|
+
/** Emit `composite: true` (default false). */
|
|
205
106
|
composite?: boolean;
|
|
206
|
-
/**
|
|
207
|
-
* Inject path aliases (default true).
|
|
208
|
-
*
|
|
209
|
-
*/
|
|
107
|
+
/** Inject path aliases (default true). */
|
|
210
108
|
aliases?: boolean;
|
|
211
|
-
/**
|
|
212
|
-
* JSON indentation (default 4).
|
|
213
|
-
*
|
|
214
|
-
*/
|
|
109
|
+
/** JSON indentation (default 4). */
|
|
215
110
|
indent?: number;
|
|
216
|
-
/**
|
|
217
|
-
* The monorepo tsconfig file name (default `tsconfig.monorepo.json`).
|
|
218
|
-
*
|
|
219
|
-
*/
|
|
111
|
+
/** The monorepo tsconfig file name (default `tsconfig.monorepo.json`). */
|
|
220
112
|
rootFile?: string;
|
|
221
113
|
}
|
|
222
114
|
export interface ToolingWatchConfig {
|
|
223
|
-
/**
|
|
224
|
-
* Watch by default (enabled when the section is defined).
|
|
225
|
-
*
|
|
226
|
-
*/
|
|
115
|
+
/** Watch by default (enabled when the section is defined). */
|
|
227
116
|
enabled?: boolean;
|
|
228
|
-
/**
|
|
229
|
-
* Debounce window in ms (default 150).
|
|
230
|
-
*
|
|
231
|
-
*/
|
|
117
|
+
/** Debounce window in ms (default 150). */
|
|
232
118
|
debounce?: number;
|
|
233
119
|
}
|
|
234
120
|
export type ToolingTemplateSourceType = 'builtin' | 'local' | 'npm' | 'git' | 'vite-plus';
|
|
235
121
|
export type ToolingTemplateKind = 'project' | 'workspace' | 'application' | 'folder' | 'tooling' | 'pipeline';
|
|
236
122
|
export interface ToolingTemplateSource {
|
|
237
|
-
/**
|
|
238
|
-
*
|
|
239
|
-
* @required
|
|
240
|
-
*/
|
|
123
|
+
/** @required */
|
|
241
124
|
type: ToolingTemplateSourceType;
|
|
242
125
|
/**
|
|
243
126
|
* A builtin id, local dir, npm scope, git URL or Vite+ id.
|
|
244
127
|
*
|
|
245
|
-
*
|
|
246
128
|
* @required
|
|
247
129
|
*/
|
|
248
130
|
locate: string;
|
|
249
|
-
/**
|
|
250
|
-
* Stable id (defaults to the basename/scope).
|
|
251
|
-
*
|
|
252
|
-
*/
|
|
131
|
+
/** Stable id (defaults to the basename/scope). */
|
|
253
132
|
id?: string;
|
|
254
|
-
/**
|
|
255
|
-
* Display name override.
|
|
256
|
-
*
|
|
257
|
-
*/
|
|
133
|
+
/** Display name override. */
|
|
258
134
|
name?: string;
|
|
259
|
-
/**
|
|
260
|
-
* Description override.
|
|
261
|
-
*
|
|
262
|
-
*/
|
|
135
|
+
/** Description override. */
|
|
263
136
|
description?: string;
|
|
264
137
|
kind?: ToolingTemplateKind;
|
|
265
|
-
/**
|
|
266
|
-
* Git branch/tag/commit.
|
|
267
|
-
*
|
|
268
|
-
*/
|
|
138
|
+
/** Git branch/tag/commit. */
|
|
269
139
|
ref?: string;
|
|
270
|
-
/**
|
|
271
|
-
* Subdirectory within the source that holds the template.
|
|
272
|
-
*
|
|
273
|
-
*/
|
|
140
|
+
/** Subdirectory within the source that holds the template. */
|
|
274
141
|
subdir?: string;
|
|
275
|
-
/**
|
|
276
|
-
* Free-form tags.
|
|
277
|
-
*
|
|
278
|
-
*/
|
|
142
|
+
/** Free-form tags. */
|
|
279
143
|
tags?: Array<string>;
|
|
280
|
-
/**
|
|
281
|
-
* Whether the source needs network access.
|
|
282
|
-
*
|
|
283
|
-
*/
|
|
144
|
+
/** Whether the source needs network access. */
|
|
284
145
|
online?: boolean;
|
|
285
146
|
}
|
|
286
147
|
export interface ToolingTemplatesConfig {
|
|
287
|
-
/**
|
|
288
|
-
* Master switch (enabled when the section is defined).
|
|
289
|
-
*
|
|
290
|
-
*/
|
|
148
|
+
/** Master switch (enabled when the section is defined). */
|
|
291
149
|
enabled?: boolean;
|
|
292
|
-
/**
|
|
293
|
-
* Extra sources on top of the builtin + registry sources.
|
|
294
|
-
*
|
|
295
|
-
*/
|
|
150
|
+
/** Extra sources on top of the builtin + registry sources. */
|
|
296
151
|
sources?: Array<ToolingTemplateSource>;
|
|
297
152
|
}
|
|
298
153
|
export interface ToolingViteConfig {
|
|
299
|
-
/**
|
|
300
|
-
* Master switch (enabled when the section is defined).
|
|
301
|
-
*
|
|
302
|
-
*/
|
|
154
|
+
/** Master switch (enabled when the section is defined). */
|
|
303
155
|
enabled?: boolean;
|
|
304
|
-
/**
|
|
305
|
-
* Write the managed `vite.config.ts` (default true when the section is set).
|
|
306
|
-
*
|
|
307
|
-
*/
|
|
156
|
+
/** Write the managed `vite.config.ts` (default true when the section is set). */
|
|
308
157
|
config?: boolean;
|
|
309
|
-
/**
|
|
310
|
-
* `create.defaultTemplate`, eg. `@acme` for `@acme/create`.
|
|
311
|
-
*
|
|
312
|
-
*/
|
|
158
|
+
/** `create.defaultTemplate`, eg. `@acme` for `@acme/create`. */
|
|
313
159
|
defaultTemplate?: string;
|
|
314
|
-
/**
|
|
315
|
-
* Extra Vitest include globs (default: tests under src + tests).
|
|
316
|
-
*
|
|
317
|
-
*/
|
|
160
|
+
/** Extra Vitest include globs (default: tests under src + tests). */
|
|
318
161
|
testInclude?: Array<string>;
|
|
319
|
-
/**
|
|
320
|
-
* Glob patterns Oxlint should ignore.
|
|
321
|
-
*
|
|
322
|
-
*/
|
|
162
|
+
/** Glob patterns Oxlint should ignore. */
|
|
323
163
|
lintIgnore?: Array<string>;
|
|
324
|
-
/**
|
|
325
|
-
* Deep-merged over the generated `vite.config.ts` object.
|
|
326
|
-
*
|
|
327
|
-
*/
|
|
164
|
+
/** Deep-merged over the generated `vite.config.ts` object. */
|
|
328
165
|
overrides?: Record<string, unknown>;
|
|
329
166
|
}
|
|
167
|
+
export interface ToolingLoggerConfig {
|
|
168
|
+
/** Minimum level to print (default `info`). */
|
|
169
|
+
level?: 'debug' | 'info' | 'warn' | 'error' | 'silent';
|
|
170
|
+
/** Force colours on/off (default: auto). */
|
|
171
|
+
color?: boolean;
|
|
172
|
+
/** Prefix non-indented lines with `<name>:` (default `dbx`). */
|
|
173
|
+
name?: string;
|
|
174
|
+
}
|
|
175
|
+
export interface ToolingProvidersConfig {
|
|
176
|
+
/** Force provider command colours on/off (default: inherit the logger). */
|
|
177
|
+
color?: boolean;
|
|
178
|
+
}
|
|
330
179
|
export interface ToolingConfigSections {
|
|
331
180
|
project?: ToolingProjectConfig;
|
|
332
181
|
changelog?: boolean | ToolingChangelogConfig;
|
|
@@ -335,6 +184,8 @@ export interface ToolingConfigSections {
|
|
|
335
184
|
templates?: boolean | ToolingTemplatesConfig;
|
|
336
185
|
vite?: boolean | ToolingViteConfig;
|
|
337
186
|
watch?: boolean | ToolingWatchConfig;
|
|
187
|
+
logger?: boolean | ToolingLoggerConfig;
|
|
188
|
+
providers?: boolean | ToolingProvidersConfig;
|
|
338
189
|
}
|
|
339
190
|
export interface DbxConfigSections {
|
|
340
191
|
toolchain?: ToolingConfigSections;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
3
|
import { mergeJsonAt, readJsonAt, readJsonFile, toJson, writeJsonFile } from "./fs-utils.js";
|
|
4
|
+
import { Colors, LOG_LEVELS, LogChannel, LogLevel, Logger, LoggerConfig, LoggerOptions, configureLogger, createLogger, getLogOverrides, getLogger, isLogLevel, logger, normalizeLogLevel, setLogConfig, setLogOverrides, stripAnsi } from "./logger.js";
|
|
4
5
|
import { Sortable, deepMerge, isPlainObject, mapValues, resolveSort, sort } from "./object-utils.js";
|
|
5
6
|
import { ToolingProvider, ToolingProviderAction, ToolingProviderCommand, providerActions } from "./provider.js";
|
|
6
7
|
import { RunOptions, run, spawnCross } from "./run.js";
|
|
7
8
|
import { asString, camelCase, camelCaseId, capitalize, constantCase, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, formatCliFlag, hasText, indent, isLocalhost, kebabCase, pascalCase, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, sanitizeSlashes, snakeCase, str, titleCase } from "./string-utils.js";
|
|
8
9
|
import { ReplacementOptions, ReplacementValue, Replacements, Replacer, applyReplacements, applyReplacementsDeep, createReplacer, defineReplacements, extractTokens, hasUnresolvedTokens, tokenPattern } from "./template.js";
|
|
9
|
-
import { ChangelogWorkflowsConfig, DbxConfigSections, ProjectType, ToolingBiomeConfig, ToolingChangelogConfig, ToolingConfigSections, ToolingProjectConfig, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig } from "./config-types.js";
|
|
10
|
+
import { ChangelogWorkflowsConfig, DbxConfigSections, ProjectType, ToolingBiomeConfig, ToolingChangelogConfig, ToolingConfigSections, ToolingLoggerConfig, ToolingProjectConfig, ToolingProvidersConfig, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig } from "./config-types.js";
|
|
10
11
|
import { Awaitable, GeneratedFile, JsonValue, PackageJson, ToolingArgument, ToolingCommand, ToolingCommandContext, ToolingOption } from "./types.js";
|
|
11
|
-
import { CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, CONFIG_TYPE_SCHEMAS, biomeConfigSchema, changelogConfigSchema, changelogWorkflowsConfigSchema, dbxConfigSchema, projectConfigSchema, projectTypeSchema, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema } from "./config-schema.js";
|
|
12
|
+
import { CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, CONFIG_TYPE_SCHEMAS, biomeConfigSchema, changelogConfigSchema, changelogWorkflowsConfigSchema, dbxConfigSchema, loggerConfigSchema, projectConfigSchema, projectTypeSchema, providersConfigSchema, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema } from "./config-schema.js";
|
|
12
13
|
import { CONFIG_FILE_NAMES, DbxConfig, ManagedFile, SyncContext, SyncSummary, SyncTask, ToolingConfig, ToolingHooks, ToolingSection, defineConfig, repoSlugFromUrl, resolveTokens, sectionConfig, sectionEnabled } from "./toolchain.js";
|
|
13
14
|
import { YamlValue, toYaml } from "./yaml.js";
|
|
14
15
|
declare namespace index_d_exports {
|
|
15
|
-
export { Awaitable, CONFIG_FILE_NAMES, CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, CONFIG_TYPE_SCHEMAS, ChangelogWorkflowsConfig, DbxConfig, DbxConfigSections, GeneratedFile, JsonValue, ManagedFile, PackageJson, ProjectType, ReplacementOptions, ReplacementValue, Replacements, Replacer, RunOptions, Sortable, SyncContext, SyncSummary, SyncTask, ToolingArgument, ToolingBiomeConfig, ToolingChangelogConfig, ToolingCommand, ToolingCommandContext, ToolingConfig, ToolingConfigSections, ToolingHooks, ToolingOption, ToolingProjectConfig, ToolingProvider, ToolingProviderAction, ToolingProviderCommand, ToolingSection, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, YamlValue, applyReplacements, applyReplacementsDeep, asString, biomeConfigSchema, camelCase, camelCaseId, capitalize, changelogConfigSchema, changelogWorkflowsConfigSchema, constantCase, createReplacer, dbxConfigSchema, deepMerge, defineConfig, defineReplacements, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, extractTokens, formatCliFlag, hasText, hasUnresolvedTokens, indent, isLocalhost, isPlainObject, kebabCase, mapValues, mergeJsonAt, pascalCase, projectConfigSchema, projectTypeSchema, providerActions, readJsonAt, readJsonFile, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, repoSlugFromUrl, resolveSort, resolveTokens, run, sanitizeSlashes, sectionConfig, sectionEnabled, snakeCase, sort, spawnCross, str, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, writeJsonFile };
|
|
16
|
+
export { Awaitable, CONFIG_FILE_NAMES, CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, CONFIG_TYPE_SCHEMAS, ChangelogWorkflowsConfig, Colors, DbxConfig, DbxConfigSections, GeneratedFile, JsonValue, LOG_LEVELS, LogChannel, LogLevel, Logger, LoggerConfig, LoggerOptions, ManagedFile, PackageJson, ProjectType, ReplacementOptions, ReplacementValue, Replacements, Replacer, RunOptions, Sortable, SyncContext, SyncSummary, SyncTask, ToolingArgument, ToolingBiomeConfig, ToolingChangelogConfig, ToolingCommand, ToolingCommandContext, ToolingConfig, ToolingConfigSections, ToolingHooks, ToolingLoggerConfig, ToolingOption, ToolingProjectConfig, ToolingProvider, ToolingProviderAction, ToolingProviderCommand, ToolingProvidersConfig, ToolingSection, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, YamlValue, applyReplacements, applyReplacementsDeep, asString, biomeConfigSchema, camelCase, camelCaseId, capitalize, changelogConfigSchema, changelogWorkflowsConfigSchema, configureLogger, constantCase, createLogger, createReplacer, dbxConfigSchema, deepMerge, defineConfig, defineReplacements, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, extractTokens, formatCliFlag, getLogOverrides, getLogger, hasText, hasUnresolvedTokens, indent, isLocalhost, isLogLevel, isPlainObject, kebabCase, logger, loggerConfigSchema, mapValues, mergeJsonAt, normalizeLogLevel, pascalCase, projectConfigSchema, projectTypeSchema, providerActions, providersConfigSchema, readJsonAt, readJsonFile, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, repoSlugFromUrl, resolveSort, resolveTokens, run, sanitizeSlashes, sectionConfig, sectionEnabled, setLogConfig, setLogOverrides, snakeCase, sort, spawnCross, str, stripAnsi, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, writeJsonFile };
|
|
16
17
|
}
|
|
17
18
|
//#endregion
|
|
18
|
-
export { Awaitable, CONFIG_FILE_NAMES, CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, CONFIG_TYPE_SCHEMAS, ChangelogWorkflowsConfig, DbxConfig, DbxConfigSections, GeneratedFile, JsonValue, ManagedFile, PackageJson, ProjectType, ReplacementOptions, ReplacementValue, Replacements, Replacer, RunOptions, Sortable, SyncContext, SyncSummary, SyncTask, ToolingArgument, ToolingBiomeConfig, ToolingChangelogConfig, ToolingCommand, ToolingCommandContext, ToolingConfig, ToolingConfigSections, ToolingHooks, ToolingOption, ToolingProjectConfig, ToolingProvider, ToolingProviderAction, ToolingProviderCommand, ToolingSection, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, type YamlValue, applyReplacements, applyReplacementsDeep, asString, biomeConfigSchema, camelCase, camelCaseId, capitalize, changelogConfigSchema, changelogWorkflowsConfigSchema, constantCase, createReplacer, dbxConfigSchema, deepMerge, defineConfig, defineReplacements, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, extractTokens, formatCliFlag, hasText, hasUnresolvedTokens, indent, index_d_exports, isLocalhost, isPlainObject, kebabCase, mapValues, mergeJsonAt, pascalCase, projectConfigSchema, projectTypeSchema, providerActions, readJsonAt, readJsonFile, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, repoSlugFromUrl, resolveSort, resolveTokens, run, sanitizeSlashes, sectionConfig, sectionEnabled, snakeCase, sort, spawnCross, str, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, writeJsonFile };
|
|
19
|
+
export { Awaitable, CONFIG_FILE_NAMES, CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, CONFIG_TYPE_SCHEMAS, ChangelogWorkflowsConfig, Colors, DbxConfig, DbxConfigSections, GeneratedFile, JsonValue, LOG_LEVELS, LogChannel, LogLevel, Logger, LoggerConfig, LoggerOptions, ManagedFile, PackageJson, ProjectType, ReplacementOptions, ReplacementValue, Replacements, Replacer, RunOptions, Sortable, SyncContext, SyncSummary, SyncTask, ToolingArgument, ToolingBiomeConfig, ToolingChangelogConfig, ToolingCommand, ToolingCommandContext, ToolingConfig, ToolingConfigSections, ToolingHooks, ToolingLoggerConfig, ToolingOption, ToolingProjectConfig, ToolingProvider, ToolingProviderAction, ToolingProviderCommand, ToolingProvidersConfig, ToolingSection, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, type YamlValue, applyReplacements, applyReplacementsDeep, asString, biomeConfigSchema, camelCase, camelCaseId, capitalize, changelogConfigSchema, changelogWorkflowsConfigSchema, configureLogger, constantCase, createLogger, createReplacer, dbxConfigSchema, deepMerge, defineConfig, defineReplacements, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, extractTokens, formatCliFlag, getLogOverrides, getLogger, hasText, hasUnresolvedTokens, indent, index_d_exports, isLocalhost, isLogLevel, isPlainObject, kebabCase, logger, loggerConfigSchema, mapValues, mergeJsonAt, normalizeLogLevel, pascalCase, projectConfigSchema, projectTypeSchema, providerActions, providersConfigSchema, readJsonAt, readJsonFile, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, repoSlugFromUrl, resolveSort, resolveTokens, run, sanitizeSlashes, sectionConfig, sectionEnabled, setLogConfig, setLogOverrides, snakeCase, sort, spawnCross, str, stripAnsi, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, writeJsonFile };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{__exportAll as ee}from"../../../_virtual/_rolldown/runtime.js";import{deepMerge as e,isPlainObject as t,mapValues as n,resolveSort as r,sort as i}from"./object-utils.js";import{mergeJsonAt as a,readJsonAt as o,readJsonFile as s,toJson as c,writeJsonFile as l}from"./fs-utils.js";import{
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{__exportAll as ee}from"../../../_virtual/_rolldown/runtime.js";import{deepMerge as e,isPlainObject as t,mapValues as n,resolveSort as r,sort as i}from"./object-utils.js";import{mergeJsonAt as a,readJsonAt as o,readJsonFile as s,toJson as c,writeJsonFile as l}from"./fs-utils.js";import{LOG_LEVELS as u,configureLogger as d,createLogger as f,getLogOverrides as p,getLogger as m,isLogLevel as h,logger as g,normalizeLogLevel as _,setLogConfig as v,setLogOverrides as y,stripAnsi as b}from"./logger.js";import{providerActions as x}from"./provider.js";import{run as S,spawnCross as C}from"./run.js";import{asString as w,camelCase as T,camelCaseId as E,capitalize as D,constantCase as O,ensureLeadingSlash as k,ensureSlashes as A,ensureTrailingSlash as j,formatCliFlag as M,hasText as N,indent as P,isLocalhost as F,kebabCase as I,pascalCase as L,removeDoubleSlashes as R,removeLeadingSlash as z,removeTrailingSlash as B,sanitizeSlashes as V,snakeCase as H,str as U,titleCase as te}from"./string-utils.js";import{applyReplacements as W,applyReplacementsDeep as G,createReplacer as K,defineReplacements as q,extractTokens as J,hasUnresolvedTokens as Y,tokenPattern as X}from"./template.js";import{CONFIG_SECTION_DESCRIPTIONS as Z,CONFIG_SECTION_SCHEMAS as Q,CONFIG_TYPE_SCHEMAS as $,biomeConfigSchema as ne,changelogConfigSchema as re,changelogWorkflowsConfigSchema as ie,dbxConfigSchema as ae,loggerConfigSchema as oe,projectConfigSchema as se,projectTypeSchema as ce,providersConfigSchema as le,templateKindSchema as ue,templateSourceSchema as de,templateSourceTypeSchema as fe,templatesConfigSchema as pe,toolingConfigSchema as me,tsconfigConfigSchema as he,viteConfigSchema as ge,watchConfigSchema as _e,workflowConfigSchema as ve,workflowSettingSchema as ye,workflowStepSchema as be,workflowStepsConfigSchema as xe}from"./config-schema.js";import{CONFIG_FILE_NAMES as Se,defineConfig as Ce,repoSlugFromUrl as we,resolveTokens as Te,sectionConfig as Ee,sectionEnabled as De}from"./toolchain.js";import{toYaml as Oe}from"./yaml.js";var ke=/* @__PURE__ */ ee({CONFIG_FILE_NAMES:()=>Se,CONFIG_SECTION_DESCRIPTIONS:()=>Z,CONFIG_SECTION_SCHEMAS:()=>Q,CONFIG_TYPE_SCHEMAS:()=>$,LOG_LEVELS:()=>u,applyReplacements:()=>W,applyReplacementsDeep:()=>G,asString:()=>w,biomeConfigSchema:()=>ne,camelCase:()=>T,camelCaseId:()=>E,capitalize:()=>D,changelogConfigSchema:()=>re,changelogWorkflowsConfigSchema:()=>ie,configureLogger:()=>d,constantCase:()=>O,createLogger:()=>f,createReplacer:()=>K,dbxConfigSchema:()=>ae,deepMerge:()=>e,defineConfig:()=>Ce,defineReplacements:()=>q,ensureLeadingSlash:()=>k,ensureSlashes:()=>A,ensureTrailingSlash:()=>j,extractTokens:()=>J,formatCliFlag:()=>M,getLogOverrides:()=>p,getLogger:()=>m,hasText:()=>N,hasUnresolvedTokens:()=>Y,indent:()=>P,isLocalhost:()=>F,isLogLevel:()=>h,isPlainObject:()=>t,kebabCase:()=>I,logger:()=>g,loggerConfigSchema:()=>oe,mapValues:()=>n,mergeJsonAt:()=>a,normalizeLogLevel:()=>_,pascalCase:()=>L,projectConfigSchema:()=>se,projectTypeSchema:()=>ce,providerActions:()=>x,providersConfigSchema:()=>le,readJsonAt:()=>o,readJsonFile:()=>s,removeDoubleSlashes:()=>R,removeLeadingSlash:()=>z,removeTrailingSlash:()=>B,repoSlugFromUrl:()=>we,resolveSort:()=>r,resolveTokens:()=>Te,run:()=>S,sanitizeSlashes:()=>V,sectionConfig:()=>Ee,sectionEnabled:()=>De,setLogConfig:()=>v,setLogOverrides:()=>y,snakeCase:()=>H,sort:()=>i,spawnCross:()=>C,str:()=>U,stripAnsi:()=>b,templateKindSchema:()=>ue,templateSourceSchema:()=>de,templateSourceTypeSchema:()=>fe,templatesConfigSchema:()=>pe,titleCase:()=>te,toJson:()=>c,toYaml:()=>Oe,tokenPattern:()=>X,toolingConfigSchema:()=>me,tsconfigConfigSchema:()=>he,viteConfigSchema:()=>ge,watchConfigSchema:()=>_e,workflowConfigSchema:()=>ve,workflowSettingSchema:()=>ye,workflowStepSchema:()=>be,workflowStepsConfigSchema:()=>xe,writeJsonFile:()=>l});export{Se as CONFIG_FILE_NAMES,Z as CONFIG_SECTION_DESCRIPTIONS,Q as CONFIG_SECTION_SCHEMAS,$ as CONFIG_TYPE_SCHEMAS,u as LOG_LEVELS,W as applyReplacements,G as applyReplacementsDeep,w as asString,ne as biomeConfigSchema,T as camelCase,E as camelCaseId,D as capitalize,re as changelogConfigSchema,ie as changelogWorkflowsConfigSchema,d as configureLogger,O as constantCase,f as createLogger,K as createReplacer,ae as dbxConfigSchema,e as deepMerge,Ce as defineConfig,q as defineReplacements,k as ensureLeadingSlash,A as ensureSlashes,j as ensureTrailingSlash,J as extractTokens,M as formatCliFlag,p as getLogOverrides,m as getLogger,N as hasText,Y as hasUnresolvedTokens,P as indent,F as isLocalhost,h as isLogLevel,t as isPlainObject,I as kebabCase,g as logger,oe as loggerConfigSchema,n as mapValues,a as mergeJsonAt,_ as normalizeLogLevel,L as pascalCase,se as projectConfigSchema,ce as projectTypeSchema,x as providerActions,le as providersConfigSchema,o as readJsonAt,s as readJsonFile,R as removeDoubleSlashes,z as removeLeadingSlash,B as removeTrailingSlash,we as repoSlugFromUrl,r as resolveSort,Te as resolveTokens,S as run,V as sanitizeSlashes,Ee as sectionConfig,De as sectionEnabled,v as setLogConfig,y as setLogOverrides,H as snakeCase,i as sort,C as spawnCross,ke as src_exports,U as str,b as stripAnsi,ue as templateKindSchema,de as templateSourceSchema,fe as templateSourceTypeSchema,pe as templatesConfigSchema,te as titleCase,c as toJson,Oe as toYaml,X as tokenPattern,me as toolingConfigSchema,he as tsconfigConfigSchema,ge as viteConfigSchema,_e as watchConfigSchema,ve as workflowConfigSchema,ye as workflowSettingSchema,be as workflowStepSchema,xe as workflowStepsConfigSchema,l as writeJsonFile};
|