@deltabox/toolchain 2.3.4 → 2.4.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 +39 -8
- package/dist/core.d.ts +2 -1
- package/dist/core.js +1 -1
- package/dist/index.d.ts +7 -6
- package/dist/index.js +1 -1
- package/dist/migrate.d.ts +3 -3
- package/dist/migrate.js +1 -1
- package/dist/package.js +1 -1
- package/dist/packages/core/src/fmt-groups.d.ts +32 -0
- package/dist/packages/core/src/fmt-groups.js +1 -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/select.d.ts +3 -0
- package/dist/packages/core/src/select.js +1 -1
- package/dist/packages/core/src/sync.js +1 -1
- package/dist/packages/migrate/src/cli/index.js +1 -1
- package/dist/packages/migrate/src/index.d.ts +3 -3
- package/dist/packages/migrate/src/index.js +1 -1
- package/dist/packages/migrate/src/oxc.js +1 -1
- package/dist/packages/migrate/src/types.d.ts +3 -2
- package/dist/packages/migrate/src/vite-target.d.ts +7 -0
- package/dist/packages/migrate/src/vite-target.js +2 -2
- package/dist/packages/migrate/src/vite.d.ts +30 -1
- package/dist/packages/migrate/src/vite.js +10 -8
- package/dist/packages/project/src/cli/index.js +1 -1
- package/dist/packages/project/src/config.d.ts +20 -5
- package/dist/packages/project/src/config.js +1 -1
- package/dist/packages/project/src/index.d.ts +3 -3
- package/dist/packages/project/src/index.js +1 -1
- package/dist/packages/project/src/typescript.d.ts +26 -0
- package/dist/packages/project/src/typescript.js +17 -10
- package/dist/packages/shared/src/config-schema/changelog.d.ts +572 -10
- package/dist/packages/shared/src/config-schema/ci.d.ts +1746 -60
- package/dist/packages/shared/src/config-schema/index.d.ts +6090 -1032
- package/dist/packages/shared/src/config-schema/index.js +1 -1
- package/dist/packages/shared/src/config-schema/workflow.d.ts +3825 -481
- package/dist/packages/shared/src/config-schema/workflow.js +1 -1
- package/dist/packages/shared/src/config-types.d.ts +123 -15
- package/dist/packages/shared/src/ignore.d.ts +8 -0
- package/dist/packages/shared/src/ignore.js +1 -1
- package/dist/packages/shared/src/index.d.ts +7 -7
- package/dist/packages/shared/src/index.js +1 -1
- package/dist/packages/shared/src/string-utils.d.ts +9 -2
- package/dist/packages/shared/src/string-utils.js +2 -2
- package/dist/packages/shared/src/toolchain.d.ts +3 -3
- package/dist/packages/shared/src/toolchain.js +1 -1
- package/dist/packages/shared/src/vite-defaults.d.ts +33 -8
- package/dist/packages/shared/src/vite-defaults.js +1 -1
- package/dist/packages/vite/src/index.d.ts +3 -1
- package/dist/packages/vite/src/index.js +1 -1
- package/dist/packages/vite/src/resolve.js +1 -1
- package/dist/packages/vite/src/sync.js +3 -3
- package/dist/project.d.ts +2 -2
- package/dist/project.js +1 -1
- package/dist/shared.d.ts +6 -6
- package/dist/shared.js +1 -1
- package/dist/tooling.js +1 -1
- package/dist/vite.d.ts +2 -1
- package/dist/vite.js +1 -1
- package/package.json +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{externalConfigSchema as e}from"./external.js";import{configJsonValueSchema as t}from"./json.js";import{withEnabled as n}from"./meta.js";import{z as r}from"zod";const i=t=>e(t,`JsonObject`),a=e(`A complete GitHub Actions workflow.`,`GitHubWorkflow`),o=e(`A complete GitLab CI pipeline.`,`GitLabCi`),s=e(`A complete Azure Pipelines pipeline.`,`AzurePipelines`),c=r.object({name:r.string().describe(`Step display name.`).optional(),id:r.string().describe("Step id (for `steps.<id>` outputs).").optional(),if:r.string().describe("Conditional expression (`if:`).").optional(),uses:r.string().describe("Action to run (`uses:`), eg. `actions/checkout@v4`.").optional(),run:r.string().describe("Shell command(s) to run (`run:`).").optional(),shell:r.string().describe("Shell to run `run` in, eg. `bash`.").optional(),"working-directory":r.string().describe(`Directory the step runs in.`).optional(),with:r.record(r.string(),r.union([r.string(),r.number(),r.boolean()])).describe("Inputs for a `uses` action.").optional(),env:r.record(r.string(),r.string()).describe(`Environment variables for the step.`).optional()}).describe(`A GitHub Actions workflow step.`).meta({id:`WorkflowStep`}),l=r.object({job:r.string().describe(`Target job id (defaults to the primary/first job).`).optional(),before:r.array(c).describe(`Steps inserted at the start.`).optional(),after:r.array(c).describe(`Steps appended at the end.`).optional()}).describe(`Extra steps to inject into a workflow job.`).meta({id:`WorkflowStepsConfig`}),u=r.object({name:r.string().describe(`Job display name.`).optional(),"runs-on":r.string().describe(`The runner label or expression.`),if:r.string().describe("Conditional expression (`if:`).").optional(),needs:r.union([r.string(),r.array(r.string())]).describe(`Job id(s) this job depends on.`).optional(),environment:r.string().describe(`A GitHub environment name.`).optional(),permissions:r.record(r.string(),r.string()).describe(`Job permissions.`).optional(),env:r.record(r.string(),r.string()).describe(`Environment variables.`).optional(),outputs:r.record(r.string(),r.string()).describe(`Job outputs.`).optional(),concurrency:i(`Job concurrency settings.`).optional(),"timeout-minutes":r.number().describe(`The job timeout in minutes.`).optional(),strategy:i(`A build matrix / strategy.`).optional(),services:i(`Service containers.`).optional(),steps:r.array(c).describe(`The job steps.`)}).catchall(t).describe(`A complete GitHub Actions workflow job.`).meta({id:`WorkflowJob`}),d=
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{externalConfigSchema as e}from"./external.js";import{configJsonValueSchema as t}from"./json.js";import{withEnabled as n}from"./meta.js";import{z as r}from"zod";const i=t=>e(t,`JsonObject`),a=e(`A complete GitHub Actions workflow.`,`GitHubWorkflow`),o=e(`A complete GitLab CI pipeline.`,`GitLabCi`),s=e(`A complete Azure Pipelines pipeline.`,`AzurePipelines`),c=r.object({name:r.string().describe(`Step display name.`).optional(),id:r.string().describe("Step id (for `steps.<id>` outputs).").optional(),if:r.string().describe("Conditional expression (`if:`).").optional(),uses:r.string().describe("Action to run (`uses:`), eg. `actions/checkout@v4`.").optional(),run:r.string().describe("Shell command(s) to run (`run:`).").optional(),shell:r.string().describe("Shell to run `run` in, eg. `bash`.").optional(),"working-directory":r.string().describe(`Directory the step runs in.`).optional(),with:r.record(r.string(),r.union([r.string(),r.number(),r.boolean()])).describe("Inputs for a `uses` action.").optional(),env:r.record(r.string(),r.string()).describe(`Environment variables for the step.`).optional()}).describe(`A GitHub Actions workflow step.`).meta({id:`WorkflowStep`}),l=r.object({job:r.string().describe(`Target job id (defaults to the primary/first job).`).optional(),before:r.array(c).describe(`Steps inserted at the start.`).optional(),after:r.array(c).describe(`Steps appended at the end.`).optional()}).describe(`Extra steps to inject into a workflow job.`).meta({id:`WorkflowStepsConfig`}),u=r.object({name:r.string().describe(`Job display name.`).optional(),"runs-on":r.string().describe(`The runner label or expression.`),if:r.string().describe("Conditional expression (`if:`).").optional(),needs:r.union([r.string(),r.array(r.string())]).describe(`Job id(s) this job depends on.`).optional(),environment:r.string().describe(`A GitHub environment name.`).optional(),permissions:r.record(r.string(),r.string()).describe(`Job permissions.`).optional(),env:r.record(r.string(),r.string()).describe(`Environment variables.`).optional(),outputs:r.record(r.string(),r.string()).describe(`Job outputs.`).optional(),concurrency:i(`Job concurrency settings.`).optional(),"timeout-minutes":r.number().describe(`The job timeout in minutes.`).optional(),strategy:i(`A build matrix / strategy.`).optional(),services:i(`Service containers.`).optional(),steps:r.array(c).describe(`The job steps.`)}).catchall(t).describe(`A complete GitHub Actions workflow job.`).meta({id:`WorkflowJob`}),d=r.object({push:i("Push trigger (`on.push`).").optional(),pull_request:i("Pull-request trigger (`on.pull_request`).").optional(),pull_request_target:i("Pull-request-target trigger (`on.pull_request_target`).").optional(),workflow_dispatch:i("Manual trigger (`on.workflow_dispatch`).").optional(),workflow_call:i("Reusable workflow trigger (`on.workflow_call`).").optional(),workflow_run:i("Triggered by another workflow (`on.workflow_run`).").optional(),schedule:r.array(i("Scheduled trigger (`on.schedule`).")).describe("Scheduled trigger list (`on.schedule`).").optional(),release:i("Release trigger (`on.release`).").optional()}).catchall(t).describe("Extra `on.*` workflow triggers.").meta({id:`WorkflowTriggers`}),f=r.object({permissions:r.record(r.string(),r.string()).describe(`Workflow permissions.`).optional(),concurrency:r.union([r.string(),r.object({group:r.string().describe(`Concurrency group.`),"cancel-in-progress":r.union([r.boolean(),r.string()]).describe(`Cancel in-progress runs (boolean or expression).`).optional()}).catchall(t)]).describe(`Workflow concurrency.`).optional(),env:r.record(r.string(),r.string()).describe(`Workflow environment variables.`).optional(),defaults:r.object({run:r.object({shell:r.string().describe(`Default shell.`).optional(),"working-directory":r.string().describe(`Default working directory.`).optional()}).catchall(t).optional()}).catchall(t).describe("Default settings for `run` steps.").optional(),name:r.string().describe(`Workflow name.`).optional(),"run-name":r.string().describe(`Workflow run name.`).optional(),"timeout-minutes":r.number().describe(`Job timeout in minutes.`).optional(),container:i(`Container for the job.`).optional(),strategy:i(`Build matrix / strategy.`).optional()}).catchall(t).describe("Extra top-level workflow keys (`permissions`, `concurrency`, `env`, ...).").meta({id:`WorkflowExtra`}),p=r.object({name:r.string().describe("Project name (`{{name}}`).").optional(),scope:r.string().describe("Package scope (`{{scope}}`).").optional(),author:r.string().describe("Author (`{{author}}`).").optional(),license:r.string().describe("License (`{{license}}`).").optional(),homepage:r.string().describe("Homepage (`{{homepage}}`).").optional(),repo:r.string().describe("Repository URL (`{{repo}}`).").optional(),description:r.string().describe("Description (`{{description}}`).").optional(),nodeVersion:r.string().describe("Node version (`{{nodeVersion}}`).").optional(),packageManager:r.string().describe("Package manager (`{{packageManager}}`).").optional(),yarnVersion:r.string().describe("Yarn version (`{{yarnVersion}}`).").optional(),packageManagerVersion:r.string().describe("Package manager version (`{{packageManagerVersion}}`).").optional(),mainBranch:r.string().describe("Main branch (`{{mainBranch}}`).").optional(),devBranch:r.string().describe("Dev branch (`{{devBranch}}`).").optional()}).catchall(r.union([r.string(),r.number(),r.boolean()])).describe("Per-workflow token overrides (`nodeVersion`, `packageManager`, ...).").meta({id:`WorkflowTokens`}),m=n(r.object({provider:r.literal(`github`).describe("Workflow vendor for a full `workflow` object (default `github`).").optional(),pushBranches:r.array(r.string()).describe("Replace `on.push.branches`.").optional(),pullRequestBranches:r.array(r.string()).describe("Replace `on.pull_request.branches`.").optional(),triggers:d.optional(),extra:f.optional(),steps:r.union([l,r.array(l)]).describe(`Extra steps for a job (one group, or per-job groups).`).optional(),jobs:r.record(r.string(),u).describe(`Extra complete jobs merged in.`).optional(),tokens:p.optional(),filename:r.string().describe("Override the generated workflow file name (eg. `deploy.yml`).").optional(),dir:r.string().describe("Directory for the workflow file (default `.github/workflows`).").optional()}),`Enable/disable this workflow (default: enabled when present).`).describe(`Per-workflow overrides merged over the generated default.`).meta({id:`WorkflowOptions`}),h={filename:r.string().describe(`Override the generated file name.`).optional(),dir:r.string().describe(`Directory for the generated file.`).optional(),enabled:r.boolean().describe(`Enable/disable this workflow (default: enabled when present).`).optional()};function g(e){if(!e||typeof e!=`object`)return!1;let t=e.provider,n=e.workflow;return(t===`github`||t===`gitlab`||t===`azure`)&&typeof n==`object`&&!!n}const _=r.object({provider:r.literal(`github`).describe(`Use a complete GitHub Actions workflow.`),workflow:a.describe(`The complete workflow object.`),...h}).describe("A complete GitHub Actions workflow written to `.github/workflows/<id>.yml` (or `filename`/`dir`).").meta({id:`GitHubWorkflowSetting`}),v=r.object({provider:r.literal(`gitlab`).describe(`Use a GitLab CI pipeline.`),workflow:o.describe(`The complete pipeline object.`),...h}).describe("A complete GitLab CI pipeline written to `.gitlab-ci.yml` (or `filename`/`dir`).").meta({id:`GitLabWorkflowSetting`}),y=r.object({provider:r.literal(`azure`).describe(`Use an Azure Pipelines pipeline.`),workflow:s.describe(`The complete pipeline object.`),...h}).describe("A complete Azure Pipelines pipeline written to `azure-pipelines.yml` (or `filename`/`dir`).").meta({id:`AzureWorkflowSetting`}),b=[_,v,y],x=r.union([r.boolean(),r.string(),...b,m]).describe("`true`/`false` to enable/disable, an object to override parts of the default, a complete GitHub/GitLab/Azure workflow (with `provider`), or a raw YAML string written verbatim as the workflow file.").meta({id:`WorkflowSetting`}),S=r.union([r.string(),...b,m]).describe("A custom workflow: a raw YAML string, a complete GitHub/GitLab/Azure workflow (with `provider`), or GitHub settings merged over an empty workflow (use `triggers`, `extra` and `jobs` to define it).").meta({id:`CustomWorkflowSettings`}),C=r.object({ci:x.describe("The CI checks workflow (`ci.yml`).").optional(),changelog:x.describe("The changelog/version workflow (`changelog.yml`).").optional(),release:x.describe("The release workflow (`release.yml`).").optional(),issues:x.describe("The issue-title workflow (`issues.yml`).").optional(),sync:x.describe("The toolchain sync workflow (`sync.yml`).").optional(),custom:r.record(r.string(),S).describe("Additional custom workflows, keyed by id (eg. `custom.my-workflow`). Each id writes `<dir>/<filename ?? id>.yml`.").optional()}).describe("The GitHub Actions workflows to generate. Every workflow is opt-in: omit it (or set it to `false`) to leave it unmanaged.").meta({id:`WorkflowConfig`});export{y as azureWorkflowSettingSchema,S as customWorkflowSettingsSchema,_ as githubWorkflowSettingSchema,v as gitlabWorkflowSettingSchema,g as isVendorWorkflowConfig,C as workflowConfigSchema,f as workflowExtraSchema,u as workflowJobSchema,m as workflowOptionsSchema,x as workflowSettingSchema,c as workflowStepSchema,l as workflowStepsConfigSchema,p as workflowTokensSchema,d as workflowTriggersSchema};
|
|
@@ -142,16 +142,28 @@ export interface WorkflowOptions {
|
|
|
142
142
|
pushBranches?: Array<string>;
|
|
143
143
|
/** Replace `on.pull_request.branches`. */
|
|
144
144
|
pullRequestBranches?: Array<string>;
|
|
145
|
-
/**
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
145
|
+
/**
|
|
146
|
+
* Extra `on.*` workflow triggers.
|
|
147
|
+
*
|
|
148
|
+
* @allowExtraKeys true
|
|
149
|
+
*/
|
|
150
|
+
triggers?: WorkflowTriggers;
|
|
151
|
+
/**
|
|
152
|
+
* Extra top-level workflow keys (`permissions`, `concurrency`, `env`, ...).
|
|
153
|
+
*
|
|
154
|
+
* @allowExtraKeys true
|
|
155
|
+
*/
|
|
156
|
+
extra?: WorkflowExtra;
|
|
149
157
|
/** Extra steps for a job (one group, or per-job groups). */
|
|
150
158
|
steps?: WorkflowStepsConfig | Array<WorkflowStepsConfig>;
|
|
151
159
|
/** Extra complete jobs merged in. */
|
|
152
160
|
jobs?: Record<string, WorkflowJob>;
|
|
153
|
-
/**
|
|
154
|
-
|
|
161
|
+
/**
|
|
162
|
+
* Per-workflow token overrides (`nodeVersion`, `packageManager`, ...).
|
|
163
|
+
*
|
|
164
|
+
* @allowExtraKeys true
|
|
165
|
+
*/
|
|
166
|
+
tokens?: WorkflowTokens;
|
|
155
167
|
/** Override the generated workflow file name (eg. `deploy.yml`). */
|
|
156
168
|
filename?: string;
|
|
157
169
|
/** Directory for the workflow file (default `.github/workflows`). */
|
|
@@ -159,6 +171,64 @@ export interface WorkflowOptions {
|
|
|
159
171
|
/** Enable/disable this workflow (default: enabled when present). */
|
|
160
172
|
enabled?: boolean;
|
|
161
173
|
}
|
|
174
|
+
export interface WorkflowTriggers {
|
|
175
|
+
/** Push trigger (`on.push`). */
|
|
176
|
+
push?: JsonObject;
|
|
177
|
+
/** Pull-request trigger (`on.pull_request`). */
|
|
178
|
+
pull_request?: JsonObject;
|
|
179
|
+
/** Pull-request-target trigger (`on.pull_request_target`). */
|
|
180
|
+
pull_request_target?: JsonObject;
|
|
181
|
+
/** Manual trigger (`on.workflow_dispatch`). */
|
|
182
|
+
workflow_dispatch?: JsonObject;
|
|
183
|
+
/** Reusable workflow trigger (`on.workflow_call`). */
|
|
184
|
+
workflow_call?: JsonObject;
|
|
185
|
+
/** Triggered by another workflow (`on.workflow_run`). */
|
|
186
|
+
workflow_run?: JsonObject;
|
|
187
|
+
/** Scheduled trigger list (`on.schedule`). */
|
|
188
|
+
schedule?: Array<JsonObject>;
|
|
189
|
+
/** Release trigger (`on.release`). */
|
|
190
|
+
release?: JsonObject;
|
|
191
|
+
[key: string]: unknown;
|
|
192
|
+
}
|
|
193
|
+
export type ConfigJsonValue = string | number | boolean | null | ConfigJsonValue[] | {
|
|
194
|
+
[key: string]: ConfigJsonValue;
|
|
195
|
+
};
|
|
196
|
+
export interface WorkflowExtra {
|
|
197
|
+
/** Workflow permissions. */
|
|
198
|
+
permissions?: Record<string, string>;
|
|
199
|
+
/** Workflow concurrency. */
|
|
200
|
+
concurrency?: string | {
|
|
201
|
+
group: string;
|
|
202
|
+
'cancel-in-progress'?: boolean | string;
|
|
203
|
+
};
|
|
204
|
+
/** Workflow environment variables. */
|
|
205
|
+
env?: Record<string, string>;
|
|
206
|
+
/**
|
|
207
|
+
* Default settings for `run` steps.
|
|
208
|
+
*
|
|
209
|
+
* @allowExtraKeys true
|
|
210
|
+
*/
|
|
211
|
+
defaults?: {
|
|
212
|
+
/** @allowExtraKeys true */
|
|
213
|
+
run?: {
|
|
214
|
+
/** Default shell. */
|
|
215
|
+
shell?: string;
|
|
216
|
+
/** Default working directory. */
|
|
217
|
+
'working-directory'?: string;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
/** Workflow name. */
|
|
221
|
+
name?: string;
|
|
222
|
+
/** Workflow run name. */
|
|
223
|
+
'run-name'?: string;
|
|
224
|
+
/** Job timeout in minutes. */
|
|
225
|
+
'timeout-minutes'?: number;
|
|
226
|
+
/** Container for the job. */
|
|
227
|
+
container?: JsonObject;
|
|
228
|
+
/** Build matrix / strategy. */
|
|
229
|
+
strategy?: JsonObject;
|
|
230
|
+
[key: string]: unknown;
|
|
231
|
+
}
|
|
162
232
|
export interface WorkflowStepsConfig {
|
|
163
233
|
/** Target job id (defaults to the primary/first job). */
|
|
164
234
|
job?: string;
|
|
@@ -224,9 +294,35 @@ export interface WorkflowJob {
|
|
|
224
294
|
steps: Array<WorkflowStep>;
|
|
225
295
|
[key: string]: unknown;
|
|
226
296
|
}
|
|
227
|
-
export
|
|
228
|
-
|
|
229
|
-
|
|
297
|
+
export interface WorkflowTokens {
|
|
298
|
+
/** Project name (`{{name}}`). */
|
|
299
|
+
name?: string;
|
|
300
|
+
/** Package scope (`{{scope}}`). */
|
|
301
|
+
scope?: string;
|
|
302
|
+
/** Author (`{{author}}`). */
|
|
303
|
+
author?: string;
|
|
304
|
+
/** License (`{{license}}`). */
|
|
305
|
+
license?: string;
|
|
306
|
+
/** Homepage (`{{homepage}}`). */
|
|
307
|
+
homepage?: string;
|
|
308
|
+
/** Repository URL (`{{repo}}`). */
|
|
309
|
+
repo?: string;
|
|
310
|
+
/** Description (`{{description}}`). */
|
|
311
|
+
description?: string;
|
|
312
|
+
/** Node version (`{{nodeVersion}}`). */
|
|
313
|
+
nodeVersion?: string;
|
|
314
|
+
/** Package manager (`{{packageManager}}`). */
|
|
315
|
+
packageManager?: string;
|
|
316
|
+
/** Yarn version (`{{yarnVersion}}`). */
|
|
317
|
+
yarnVersion?: string;
|
|
318
|
+
/** Package manager version (`{{packageManagerVersion}}`). */
|
|
319
|
+
packageManagerVersion?: string;
|
|
320
|
+
/** Main branch (`{{mainBranch}}`). */
|
|
321
|
+
mainBranch?: string;
|
|
322
|
+
/** Dev branch (`{{devBranch}}`). */
|
|
323
|
+
devBranch?: string;
|
|
324
|
+
[key: string]: string | number | boolean | undefined;
|
|
325
|
+
}
|
|
230
326
|
export type WorkflowSetting = boolean | string | GitHubWorkflowSetting | GitLabWorkflowSetting | AzureWorkflowSetting | WorkflowOptions;
|
|
231
327
|
export interface CiChangelogConfig {
|
|
232
328
|
/** Workflow vendor for a full `workflow` object (default `github`). */
|
|
@@ -235,16 +331,28 @@ export interface CiChangelogConfig {
|
|
|
235
331
|
pushBranches?: Array<string>;
|
|
236
332
|
/** Replace `on.pull_request.branches`. */
|
|
237
333
|
pullRequestBranches?: Array<string>;
|
|
238
|
-
/**
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
334
|
+
/**
|
|
335
|
+
* Extra `on.*` workflow triggers.
|
|
336
|
+
*
|
|
337
|
+
* @allowExtraKeys true
|
|
338
|
+
*/
|
|
339
|
+
triggers?: WorkflowTriggers;
|
|
340
|
+
/**
|
|
341
|
+
* Extra top-level workflow keys (`permissions`, `concurrency`, `env`, ...).
|
|
342
|
+
*
|
|
343
|
+
* @allowExtraKeys true
|
|
344
|
+
*/
|
|
345
|
+
extra?: WorkflowExtra;
|
|
242
346
|
/** Extra steps for a job (one group, or per-job groups). */
|
|
243
347
|
steps?: WorkflowStepsConfig | Array<WorkflowStepsConfig>;
|
|
244
348
|
/** Extra complete jobs merged in. */
|
|
245
349
|
jobs?: Record<string, WorkflowJob>;
|
|
246
|
-
/**
|
|
247
|
-
|
|
350
|
+
/**
|
|
351
|
+
* Per-workflow token overrides (`nodeVersion`, `packageManager`, ...).
|
|
352
|
+
*
|
|
353
|
+
* @allowExtraKeys true
|
|
354
|
+
*/
|
|
355
|
+
tokens?: WorkflowTokens;
|
|
248
356
|
/** Override the generated workflow file name (eg. `deploy.yml`). */
|
|
249
357
|
filename?: string;
|
|
250
358
|
/** Directory for the workflow file (default `.github/workflows`). */
|
|
@@ -11,6 +11,14 @@ import __tsdown_shims_url from 'node:url';
|
|
|
11
11
|
*/
|
|
12
12
|
/** The common paths always ignored (dependency/build/cache dirs). */
|
|
13
13
|
export declare const DEFAULT_IGNORE_PATTERNS: readonly string[];
|
|
14
|
+
/**
|
|
15
|
+
* Common paths Oxfmt should leave alone. Starts from the shared build/cache
|
|
16
|
+
* ignores and adds generated JSON/YAML, lockfiles, changelogs and the managed
|
|
17
|
+
* `vite.config.ts` shim.
|
|
18
|
+
*/
|
|
19
|
+
export declare const DEFAULT_FMT_IGNORE_PATTERNS: readonly string[];
|
|
20
|
+
/** Common paths Oxlint should leave alone. */
|
|
21
|
+
export declare const DEFAULT_LINT_IGNORE_PATTERNS: readonly string[];
|
|
14
22
|
/** Options shared by the `tsconfig` / `watch` ignore resolution. */
|
|
15
23
|
export interface IgnoreOptions {
|
|
16
24
|
/** Extra glob(s) to exclude on top of the defaults. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as e}from"node:path";import"node:url";import.meta.url;import t from"node:fs";const n=[`**/node_modules/**`,`**/.git/**`,`**/.dbx/**`,`**/dist/**`,`**/build/**`,`**/out/**`,`**/coverage/**`,`**/.turbo/**`,`**/.yarn/**`,`**/.next/**`,`**/.cache/**`,`**/.output/**`,`**/.vite/**`,`**/.nyc_output/**`,`**/*.tsbuildinfo`],r=/* @__PURE__ */ new Set([`node_modules`,`.git`,`.dbx`,`dist`,`build`,`out`,`coverage`,`.turbo`,`.yarn`,`.next`,`.cache`,`.output`,`.vite`]);function
|
|
1
|
+
import{default as e}from"node:path";import"node:url";import.meta.url;import t from"node:fs";const n=[`**/node_modules/**`,`**/.git/**`,`**/.dbx/**`,`**/dist/**`,`**/build/**`,`**/out/**`,`**/coverage/**`,`**/.turbo/**`,`**/.yarn/**`,`**/.next/**`,`**/.cache/**`,`**/.output/**`,`**/.vite/**`,`**/.nyc_output/**`,`**/*.tsbuildinfo`],r=[...n,`**/.nuxt/**`,`**/.svelte-kit/**`,`**/.generated/**`,`**/generated/**`,`**/*.json`,`**/*.yml`,`**/*.yaml`,`**/*.lock`,`**/*.min.*`,`**/CHANGELOG.md`,`CHANGELOG.proposed.md`,`**/vite.config.ts`],i=[...n,`**/.nuxt/**`,`**/.svelte-kit/**`,`**/.generated/**`,`**/generated/**`,`**/*.min.*`,`**/vendor/**`],a=/* @__PURE__ */ new Set([`node_modules`,`.git`,`.dbx`,`dist`,`build`,`out`,`coverage`,`.turbo`,`.yarn`,`.next`,`.cache`,`.output`,`.vite`]);function o(e){return e===void 0?[]:Array.isArray(e)?e:[e]}function s(e,t){let n=e.trim();if(!n||n.startsWith(`#`)||n.startsWith(`!`))return[];n.endsWith(`/`)&&(n=n.replace(/\/+$/,``));let r=n.startsWith(`/`);if(r&&(n=n.slice(1)),!n)return[];let i=t?`${t}/`:``,a=`${r?i:`${i}**/`}${n}`;return a.endsWith(`/**`)?[a]:[a,`${a}/**`]}function c(e,n){let r;try{r=t.readFileSync(e,`utf-8`)}catch{return[]}let i=[];for(let e of r.split(/\r?\n/))i.push(...s(e,n));return i}function l(n=process.cwd()){let r=[],i=e.join(n,`.gitignore`);t.existsSync(i)&&r.push(...c(i,``));let o=i=>{let s;try{s=t.readdirSync(i,{withFileTypes:!0})}catch{return}for(let t of s){if(t.isSymbolicLink())continue;let s=e.join(i,t.name);if(t.isDirectory()){if(a.has(t.name))continue;o(s)}else if(t.isFile()&&t.name===`.gitignore`){let t=e.relative(n,i).replace(/\\/g,`/`);if(t===``)continue;r.push(...c(s,t))}}};return o(n),r}function u(e=process.cwd(),t={}){let r=[...n,...o(t.exclude)];return t.gitignore!==!1&&r.push(...l(e)),r}function d(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];r===`*`?e[n+1]===`*`?e[n+2]===`/`?(t+=`(?:.*/)?`,n+=2):(t+=`.*`,n+=1):t+=`[^/]*`:r===`?`?t+=`[^/]`:".+^${}()|[]\\".includes(r)?t+=`\\${r}`:t+=r}return RegExp(`^${t}$`)}function f(e,t){let n=e.replace(/\\/g,`/`).replace(/^\.\//,``);for(let e of t){let t=d(e);if(t.test(n)||t.test(`${n}/`))return!0}return!1}export{r as DEFAULT_FMT_IGNORE_PATTERNS,n as DEFAULT_IGNORE_PATTERNS,i as DEFAULT_LINT_IGNORE_PATTERNS,l as collectGitignorePatterns,f as isIgnoredPath,u as resolveIgnorePatterns};
|
|
@@ -6,7 +6,7 @@ import { Colors, LOG_LEVELS, LogChannel, LogLevel, LogSuppression, Logger, Logge
|
|
|
6
6
|
import { ChangelogAuthorInfo, ChangelogBumpRuleCallbackContext, ChangelogBumpRuleContext, ChangelogCommitFormatContext, ChangelogCommitFormatOptions, ChangelogCommitRecord, ChangelogIssueInfo, ChangelogProvider, ChangelogProviderContext, ChangelogProviderSetting } from "./changelog-callbacks.js";
|
|
7
7
|
import { ChangelogGroupConfig, ChangelogGroupContext, ChangelogGroupEntry, ChangelogGroupHidden, ChangelogGroupItem, ChangelogGroupOrder, ChangelogGroupTitle, ChangelogGroupsContext, ChangelogGroupsSetting } from "./changelog-groups.js";
|
|
8
8
|
import { insertMissingJsonc, mergeJsonAt, readJsonAt, readJsonFile, readJsoncAt, readJsoncFile, toJson, writeJsonFile } from "./fs-utils.js";
|
|
9
|
-
import { DEFAULT_IGNORE_PATTERNS, IgnoreOptions, collectGitignorePatterns, isIgnoredPath, resolveIgnorePatterns } from "./ignore.js";
|
|
9
|
+
import { DEFAULT_FMT_IGNORE_PATTERNS, DEFAULT_IGNORE_PATTERNS, DEFAULT_LINT_IGNORE_PATTERNS, IgnoreOptions, collectGitignorePatterns, isIgnoredPath, resolveIgnorePatterns } from "./ignore.js";
|
|
10
10
|
import { ERROR_MAP, ErrorId, MessageId, WARNING_MAP, WarningId, errorMessage, formatMessage, formatMessageId, warningMessage } from "./messages.js";
|
|
11
11
|
import { Sortable, applyOverrides, deepMerge, isPlainObject, isUnsafeKey, mapValues, resolveSort, sort } from "./object-utils.js";
|
|
12
12
|
import { AzurePipelines } from "./config-schema/generated/azure-pipelines.js";
|
|
@@ -15,7 +15,7 @@ import { GitHubWorkflow } from "./config-schema/generated/github-workflow.js";
|
|
|
15
15
|
import { GitLabCi } from "./config-schema/generated/gitlab-ci.js";
|
|
16
16
|
import { OxfmtConfig } from "./config-schema/generated/oxfmt-config.js";
|
|
17
17
|
import { OxlintConfig } from "./config-schema/generated/oxlint-config.js";
|
|
18
|
-
import { AzureWorkflowSetting, ChangelogBranchesConfig, ChangelogBumpRule, ChangelogBumpRuleMatch, ChangelogCommitFormatConfig, ChangelogCommitlintConfig, ChangelogConfig, ChangelogProviderConfig, ChangelogVersioning, ChangelogVersioningConfig, ChangelogVersioningTarget, ChangelogWorkflowSetting, CiChangelogConfig, ConfigJsonValue, CustomWorkflowSettings, DbxConfigSections, GitHubWorkflowSetting, GitLabWorkflowSetting, ProjectType, ToolchainBiomeConfig, ToolchainCatalogsConfig, ToolchainCiConfig, ToolchainConfigSections, ToolchainFmtConfig, ToolchainLintConfig, ToolchainLoggerConfig, ToolchainProjectConfig, ToolchainProvidersConfig, ToolchainRegistryConfig, ToolchainRegistryPolicy, ToolchainTemplateKind, ToolchainTemplateSource, ToolchainTemplateSourceType, ToolchainTemplatesConfig, ToolchainTsconfigConfig, ToolchainTsconfigOverrides, ToolchainViteConfig, ToolchainVscodeSettings, ToolchainWatchConfig, WorkflowJob, WorkflowOptions, WorkflowSetting, WorkflowStep, WorkflowStepsConfig } from "./config-types.js";
|
|
18
|
+
import { AzureWorkflowSetting, ChangelogBranchesConfig, ChangelogBumpRule, ChangelogBumpRuleMatch, ChangelogCommitFormatConfig, ChangelogCommitlintConfig, ChangelogConfig, ChangelogProviderConfig, ChangelogVersioning, ChangelogVersioningConfig, ChangelogVersioningTarget, ChangelogWorkflowSetting, CiChangelogConfig, ConfigJsonValue, CustomWorkflowSettings, DbxConfigSections, GitHubWorkflowSetting, GitLabWorkflowSetting, ProjectType, ToolchainBiomeConfig, ToolchainCatalogsConfig, ToolchainCiConfig, ToolchainConfigSections, ToolchainFmtConfig, ToolchainLintConfig, ToolchainLoggerConfig, ToolchainProjectConfig, ToolchainProvidersConfig, ToolchainRegistryConfig, ToolchainRegistryPolicy, ToolchainTemplateKind, ToolchainTemplateSource, ToolchainTemplateSourceType, ToolchainTemplatesConfig, ToolchainTsconfigConfig, ToolchainTsconfigOverrides, ToolchainViteConfig, ToolchainVscodeSettings, ToolchainWatchConfig, WorkflowExtra, WorkflowJob, WorkflowOptions, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, WorkflowTokens, WorkflowTriggers } from "./config-types.js";
|
|
19
19
|
import { ReplacementOptions, ReplacementValue, Replacements, Replacer, applyReplacements, applyReplacementsDeep, createReplacer, defineReplacements, extractTokens, hasUnresolvedTokens, tokenPattern } from "./template.js";
|
|
20
20
|
import { biomeConfigOptionsSchema, biomeConfigSchema } from "./config-schema/biome.js";
|
|
21
21
|
import { catalogsConfigSchema } from "./config-schema/catalogs.js";
|
|
@@ -32,7 +32,7 @@ import { templateKindSchema, templateSourceSchema, templateSourceTypeSchema, tem
|
|
|
32
32
|
import { tsconfigConfigSchema } from "./config-schema/tsconfig.js";
|
|
33
33
|
import { viteConfigSchema } from "./config-schema/vite.js";
|
|
34
34
|
import { watchConfigSchema } from "./config-schema/watch.js";
|
|
35
|
-
import { VendorWorkflowConfig, azureWorkflowSettingSchema, customWorkflowSettingsSchema, githubWorkflowSettingSchema, gitlabWorkflowSettingSchema, isVendorWorkflowConfig, workflowConfigSchema, workflowJobSchema, workflowOptionsSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema } from "./config-schema/workflow.js";
|
|
35
|
+
import { VendorWorkflowConfig, azureWorkflowSettingSchema, customWorkflowSettingsSchema, githubWorkflowSettingSchema, gitlabWorkflowSettingSchema, isVendorWorkflowConfig, workflowConfigSchema, workflowExtraSchema, workflowJobSchema, workflowOptionsSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, workflowTokensSchema, workflowTriggersSchema } from "./config-schema/workflow.js";
|
|
36
36
|
import { configSchema, dbxConfigSchema, toolchainConfigSchema } from "./config-schema/index.js";
|
|
37
37
|
import { CONFIG_FILE_NAMES, DEFAULT_PACKAGE_MANAGER_VERSIONS, DbxConfig, DbxConfigFunction, DbxConfigInput, FORMATTER_PRECEDENCE, FormatterTool, LINTER_PRECEDENCE, LinterTool, ManagedFile, SyncContext, SyncSummary, SyncTask, ToolchainConfig, ToolchainHooks, ToolchainSection, changelogSectionEnabled, defineConfig, repoSlugFromUrl, resolveChangelogBranches, resolveChangelogConfig, resolveCiConfig, resolveCommitlintEnabled, resolveFmtTool, resolveFmtTools, resolveLintTool, resolveLintTools, resolveOxcFmtConfig, resolveOxcLintConfig, resolveTokens, sectionConfig, sectionEnabled } from "./toolchain.js";
|
|
38
38
|
import { Awaitable, GeneratedFile, JsonValue, PackageJson, ToolchainArgument, ToolchainCommand, ToolchainCommandContext, ToolchainOption } from "./types.js";
|
|
@@ -40,11 +40,11 @@ import { projectFromPackageJson, projectToPackageJson, splitPackageName } from "
|
|
|
40
40
|
import { ToolchainProvider, ToolchainProviderAction, ToolchainProviderCommand, providerActions } from "./provider.js";
|
|
41
41
|
import { RegistryPolicy, registrySourceAllowed } from "./registry-policy.js";
|
|
42
42
|
import { RunOptions, SpawnCrossOptions, isCmdShim, killProcessTree, run, spawnCross } from "./run.js";
|
|
43
|
-
import { asString, camelCase, camelCaseId, capitalize, constantCase, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, formatCliFlag, hasEscapeArtifacts, hasText, indent, isLocalhost, kebabCase, pascalCase, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, sanitizeSlashes, sanitizeText, snakeCase, str, stripControlChars, stripEscapeArtifacts, titleCase } from "./string-utils.js";
|
|
44
|
-
import {
|
|
43
|
+
import { asString, camelCase, camelCaseId, capitalize, constantCase, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, formatCliFlag, hasEscapeArtifacts, hasText, indent, isLocalhost, kebabCase, pascalCase, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, repairBacktickArtifacts, sanitizeSlashes, sanitizeText, snakeCase, str, stripControlChars, stripEscapeArtifacts, titleCase } from "./string-utils.js";
|
|
44
|
+
import { DEFAULT_FMT_RULES, DEFAULT_FMT_SORT_GROUP, DEFAULT_FMT_SORT_GROUPS, DEFAULT_FMT_SORT_IMPORTS, DEFAULT_LINT_RULES, FmtCustomGroup, FmtProjectIdentity, FmtSortGroup, FmtSortImports, ToolchainOxfmtConfig, ToolchainOxlintConfig, applyFmtCustomGroups, fmtCustomGroupsForProjects } from "./vite-defaults.js";
|
|
45
45
|
import { YamlValue, toYaml } from "./yaml.js";
|
|
46
46
|
declare namespace index_d_exports {
|
|
47
|
-
export { Awaitable, AzurePipelines, AzureWorkflowSetting, BiomeConfig, CONFIG_FILE_NAMES, ChangelogAuthorInfo, ChangelogBranchesConfig, ChangelogBreakingCommit, ChangelogBreakingSetting, ChangelogBumpRule, ChangelogBumpRuleCallbackContext, ChangelogBumpRuleContext, ChangelogBumpRuleMatch, ChangelogCommitFormatConfig, ChangelogCommitFormatContext, ChangelogCommitFormatOptions, ChangelogCommitRecord, ChangelogCommitlintConfig, ChangelogConfig, ChangelogGroupConfig, ChangelogGroupContext, ChangelogGroupEntry, ChangelogGroupHidden, ChangelogGroupItem, ChangelogGroupOrder, ChangelogGroupTitle, ChangelogGroupsContext, ChangelogGroupsSetting, ChangelogIssueInfo, ChangelogProvider, ChangelogProviderConfig, ChangelogProviderContext, ChangelogProviderSetting, ChangelogVersioning, ChangelogVersioningConfig, ChangelogVersioningTarget, ChangelogWorkflowSetting, CiChangelogConfig, Colors, ConfigJsonValue, CustomWorkflowSettings, DEFAULT_FMT_IGNORE_PATTERNS, DEFAULT_FMT_RULES, DEFAULT_IGNORE_PATTERNS, DEFAULT_LINT_IGNORE_PATTERNS, DEFAULT_LINT_RULES, DEFAULT_PACKAGE_MANAGER_VERSIONS, DbxConfig, DbxConfigFunction, DbxConfigInput, DbxConfigSections, ENABLED_DESCRIPTION, ERROR_MAP, ErrorId, FORMATTER_PRECEDENCE, FormatterTool, GeneratedFile, GitHubWorkflow, GitHubWorkflowSetting, GitLabCi, GitLabWorkflowSetting, IgnoreOptions, JsonValue, LINTER_PRECEDENCE, LOG_LEVELS, LinterTool, LogChannel, LogLevel, LogSuppression, Logger, LoggerConfig, LoggerOptions, ManagedFile, MessageId, OxfmtConfig, OxlintConfig, PackageJson, ProjectType, RegistryPolicy, ReplacementOptions, ReplacementValue, Replacements, Replacer, RunOptions, Sortable, SpawnCrossOptions, SyncContext, SyncSummary, SyncTask, TOOLCHAIN_PACKAGE, ToolchainArgument, ToolchainBiomeConfig, ToolchainCatalogsConfig, ToolchainCiConfig, ToolchainCommand, ToolchainCommandContext, ToolchainConfig, ToolchainConfigSections, ToolchainFmtConfig, ToolchainHooks, ToolchainLintConfig, ToolchainLogger, ToolchainLoggerConfig, ToolchainOption, ToolchainOxfmtConfig, ToolchainOxlintConfig, ToolchainProjectConfig, ToolchainProvider, ToolchainProviderAction, ToolchainProviderCommand, ToolchainProvidersConfig, ToolchainRegistryConfig, ToolchainRegistryPolicy, ToolchainSection, ToolchainTemplateKind, ToolchainTemplateSource, ToolchainTemplateSourceType, ToolchainTemplatesConfig, ToolchainTsconfigConfig, ToolchainTsconfigOverrides, ToolchainViteConfig, ToolchainVscodeSettings, ToolchainWatchConfig, VendorWorkflowConfig, WARNING_MAP, WarningId, WorkflowJob, WorkflowOptions, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, YamlValue, applyOverrides, applyReplacements, applyReplacementsDeep, asString, azureWorkflowSettingSchema, biomeConfigOptionsSchema, biomeConfigSchema, camelCase, camelCaseId, capitalize, catalogsConfigSchema, changelogBranchesConfigSchema, changelogBreakingCallbackSchema, changelogBreakingSettingSchema, changelogBumpRuleMatchSchema, changelogBumpRuleSchema, changelogCommitFormatConfigSchema, changelogCommitlintConfigSchema, changelogConfigSchema, changelogGroupConfigSchema, changelogGroupsSettingSchema, changelogProviderConfigSchema, changelogProviderSettingSchema, changelogSectionEnabled, changelogVersioningConfigSchema, changelogVersioningSchema, changelogVersioningTargetSchema, changelogWorkflowSettingSchema, ciChangelogConfigSchema, ciConfigSchema, collectGitignorePatterns, configJsonValueSchema, configSchema, configureLogger, constantCase, createLogger, createReplacer, customWorkflowSettingsSchema, dbxConfigSchema, deepMerge, defineConfig, defineReplacements, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, errorMessage, extractTokens, findOwnCliEntry, fmtConfigSchema, formatCliFlag, formatMessage, formatMessageId, getLogOverrides, getLogger, githubWorkflowSettingSchema, gitlabWorkflowSettingSchema, hasEscapeArtifacts, hasText, hasUnresolvedTokens, indent, insertMissingJsonc, isCmdShim, isIgnoredPath, isLocalhost, isLogLevel, isPlainObject, isUnsafeKey, isVendorWorkflowConfig, kebabCase, killProcessTree, lintConfigSchema, localToolchainVersion, logger, loggerConfigSchema, mapValues, mergeJsonAt, normalizeLogLevel, pascalCase, projectConfigSchema, projectFromPackageJson, projectToPackageJson, projectTypeSchema, providerActions, providersConfigSchema, readJsonAt, readJsonFile, readJsoncAt, readJsoncFile, registryConfigSchema, registryPolicySchema, registrySourceAllowed, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, repoSlugFromUrl, resolveChangelogBranches, resolveChangelogConfig, resolveCiConfig, resolveCommitlintEnabled, resolveFmtTool, resolveFmtTools, resolveIgnorePatterns, resolveLintTool, resolveLintTools, resolveOxcFmtConfig, resolveOxcLintConfig, resolveSort, resolveTokens, run, sanitizeSlashes, sanitizeText, section, sectionConfig, sectionEnabled, setLogConfig, setLogOverrides, snakeCase, sort, spawnCross, splitPackageName, str, stripAnsi, stripControlChars, stripEscapeArtifacts, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolchainConfigSchema, tsconfigConfigSchema, viteConfigSchema, vscodeSettingsSchema, warningMessage, watchConfigSchema, withEnabled, workflowConfigSchema, workflowJobSchema, workflowOptionsSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, writeJsonFile };
|
|
47
|
+
export { Awaitable, AzurePipelines, AzureWorkflowSetting, BiomeConfig, CONFIG_FILE_NAMES, ChangelogAuthorInfo, ChangelogBranchesConfig, ChangelogBreakingCommit, ChangelogBreakingSetting, ChangelogBumpRule, ChangelogBumpRuleCallbackContext, ChangelogBumpRuleContext, ChangelogBumpRuleMatch, ChangelogCommitFormatConfig, ChangelogCommitFormatContext, ChangelogCommitFormatOptions, ChangelogCommitRecord, ChangelogCommitlintConfig, ChangelogConfig, ChangelogGroupConfig, ChangelogGroupContext, ChangelogGroupEntry, ChangelogGroupHidden, ChangelogGroupItem, ChangelogGroupOrder, ChangelogGroupTitle, ChangelogGroupsContext, ChangelogGroupsSetting, ChangelogIssueInfo, ChangelogProvider, ChangelogProviderConfig, ChangelogProviderContext, ChangelogProviderSetting, ChangelogVersioning, ChangelogVersioningConfig, ChangelogVersioningTarget, ChangelogWorkflowSetting, CiChangelogConfig, Colors, ConfigJsonValue, CustomWorkflowSettings, DEFAULT_FMT_IGNORE_PATTERNS, DEFAULT_FMT_RULES, DEFAULT_FMT_SORT_GROUP, DEFAULT_FMT_SORT_GROUPS, DEFAULT_FMT_SORT_IMPORTS, DEFAULT_IGNORE_PATTERNS, DEFAULT_LINT_IGNORE_PATTERNS, DEFAULT_LINT_RULES, DEFAULT_PACKAGE_MANAGER_VERSIONS, DbxConfig, DbxConfigFunction, DbxConfigInput, DbxConfigSections, ENABLED_DESCRIPTION, ERROR_MAP, ErrorId, FORMATTER_PRECEDENCE, FmtCustomGroup, FmtProjectIdentity, FmtSortGroup, FmtSortImports, FormatterTool, GeneratedFile, GitHubWorkflow, GitHubWorkflowSetting, GitLabCi, GitLabWorkflowSetting, IgnoreOptions, JsonValue, LINTER_PRECEDENCE, LOG_LEVELS, LinterTool, LogChannel, LogLevel, LogSuppression, Logger, LoggerConfig, LoggerOptions, ManagedFile, MessageId, OxfmtConfig, OxlintConfig, PackageJson, ProjectType, RegistryPolicy, ReplacementOptions, ReplacementValue, Replacements, Replacer, RunOptions, Sortable, SpawnCrossOptions, SyncContext, SyncSummary, SyncTask, TOOLCHAIN_PACKAGE, ToolchainArgument, ToolchainBiomeConfig, ToolchainCatalogsConfig, ToolchainCiConfig, ToolchainCommand, ToolchainCommandContext, ToolchainConfig, ToolchainConfigSections, ToolchainFmtConfig, ToolchainHooks, ToolchainLintConfig, ToolchainLogger, ToolchainLoggerConfig, ToolchainOption, ToolchainOxfmtConfig, ToolchainOxlintConfig, ToolchainProjectConfig, ToolchainProvider, ToolchainProviderAction, ToolchainProviderCommand, ToolchainProvidersConfig, ToolchainRegistryConfig, ToolchainRegistryPolicy, ToolchainSection, ToolchainTemplateKind, ToolchainTemplateSource, ToolchainTemplateSourceType, ToolchainTemplatesConfig, ToolchainTsconfigConfig, ToolchainTsconfigOverrides, ToolchainViteConfig, ToolchainVscodeSettings, ToolchainWatchConfig, VendorWorkflowConfig, WARNING_MAP, WarningId, WorkflowExtra, WorkflowJob, WorkflowOptions, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, WorkflowTokens, WorkflowTriggers, YamlValue, applyFmtCustomGroups, applyOverrides, applyReplacements, applyReplacementsDeep, asString, azureWorkflowSettingSchema, biomeConfigOptionsSchema, biomeConfigSchema, camelCase, camelCaseId, capitalize, catalogsConfigSchema, changelogBranchesConfigSchema, changelogBreakingCallbackSchema, changelogBreakingSettingSchema, changelogBumpRuleMatchSchema, changelogBumpRuleSchema, changelogCommitFormatConfigSchema, changelogCommitlintConfigSchema, changelogConfigSchema, changelogGroupConfigSchema, changelogGroupsSettingSchema, changelogProviderConfigSchema, changelogProviderSettingSchema, changelogSectionEnabled, changelogVersioningConfigSchema, changelogVersioningSchema, changelogVersioningTargetSchema, changelogWorkflowSettingSchema, ciChangelogConfigSchema, ciConfigSchema, collectGitignorePatterns, configJsonValueSchema, configSchema, configureLogger, constantCase, createLogger, createReplacer, customWorkflowSettingsSchema, dbxConfigSchema, deepMerge, defineConfig, defineReplacements, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, errorMessage, extractTokens, findOwnCliEntry, fmtConfigSchema, fmtCustomGroupsForProjects, formatCliFlag, formatMessage, formatMessageId, getLogOverrides, getLogger, githubWorkflowSettingSchema, gitlabWorkflowSettingSchema, hasEscapeArtifacts, hasText, hasUnresolvedTokens, indent, insertMissingJsonc, isCmdShim, isIgnoredPath, isLocalhost, isLogLevel, isPlainObject, isUnsafeKey, isVendorWorkflowConfig, kebabCase, killProcessTree, lintConfigSchema, localToolchainVersion, logger, loggerConfigSchema, mapValues, mergeJsonAt, normalizeLogLevel, pascalCase, projectConfigSchema, projectFromPackageJson, projectToPackageJson, projectTypeSchema, providerActions, providersConfigSchema, readJsonAt, readJsonFile, readJsoncAt, readJsoncFile, registryConfigSchema, registryPolicySchema, registrySourceAllowed, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, repairBacktickArtifacts, repoSlugFromUrl, resolveChangelogBranches, resolveChangelogConfig, resolveCiConfig, resolveCommitlintEnabled, resolveFmtTool, resolveFmtTools, resolveIgnorePatterns, resolveLintTool, resolveLintTools, resolveOxcFmtConfig, resolveOxcLintConfig, resolveSort, resolveTokens, run, sanitizeSlashes, sanitizeText, section, sectionConfig, sectionEnabled, setLogConfig, setLogOverrides, snakeCase, sort, spawnCross, splitPackageName, str, stripAnsi, stripControlChars, stripEscapeArtifacts, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolchainConfigSchema, tsconfigConfigSchema, viteConfigSchema, vscodeSettingsSchema, warningMessage, watchConfigSchema, withEnabled, workflowConfigSchema, workflowExtraSchema, workflowJobSchema, workflowOptionsSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, workflowTokensSchema, workflowTriggersSchema, writeJsonFile };
|
|
48
48
|
}
|
|
49
49
|
//#endregion
|
|
50
|
-
export { Awaitable, type AzurePipelines, AzureWorkflowSetting, type BiomeConfig, CONFIG_FILE_NAMES, ChangelogAuthorInfo, ChangelogBranchesConfig, ChangelogBreakingCommit, ChangelogBreakingSetting, ChangelogBumpRule, ChangelogBumpRuleCallbackContext, ChangelogBumpRuleContext, ChangelogBumpRuleMatch, ChangelogCommitFormatConfig, ChangelogCommitFormatContext, ChangelogCommitFormatOptions, ChangelogCommitRecord, ChangelogCommitlintConfig, ChangelogConfig, ChangelogGroupConfig, ChangelogGroupContext, ChangelogGroupEntry, ChangelogGroupHidden, ChangelogGroupItem, ChangelogGroupOrder, ChangelogGroupTitle, ChangelogGroupsContext, ChangelogGroupsSetting, ChangelogIssueInfo, ChangelogProvider, ChangelogProviderConfig, ChangelogProviderContext, ChangelogProviderSetting, ChangelogVersioning, ChangelogVersioningConfig, ChangelogVersioningTarget, ChangelogWorkflowSetting, CiChangelogConfig, Colors, ConfigJsonValue, CustomWorkflowSettings, DEFAULT_FMT_IGNORE_PATTERNS, DEFAULT_FMT_RULES, DEFAULT_IGNORE_PATTERNS, DEFAULT_LINT_IGNORE_PATTERNS, DEFAULT_LINT_RULES, DEFAULT_PACKAGE_MANAGER_VERSIONS, DbxConfig, DbxConfigFunction, DbxConfigInput, DbxConfigSections, ENABLED_DESCRIPTION, ERROR_MAP, ErrorId, FORMATTER_PRECEDENCE, FormatterTool, GeneratedFile, type GitHubWorkflow, GitHubWorkflowSetting, type GitLabCi, GitLabWorkflowSetting, IgnoreOptions, JsonValue, LINTER_PRECEDENCE, LOG_LEVELS, LinterTool, LogChannel, LogLevel, LogSuppression, Logger, LoggerConfig, LoggerOptions, ManagedFile, MessageId, type OxfmtConfig, type OxlintConfig, PackageJson, ProjectType, RegistryPolicy, ReplacementOptions, ReplacementValue, Replacements, Replacer, RunOptions, Sortable, SpawnCrossOptions, SyncContext, SyncSummary, SyncTask, TOOLCHAIN_PACKAGE, ToolchainArgument, ToolchainBiomeConfig, ToolchainCatalogsConfig, ToolchainCiConfig, ToolchainCommand, ToolchainCommandContext, ToolchainConfig, ToolchainConfigSections, ToolchainFmtConfig, ToolchainHooks, ToolchainLintConfig, ToolchainLogger, ToolchainLoggerConfig, ToolchainOption, ToolchainOxfmtConfig, ToolchainOxlintConfig, ToolchainProjectConfig, ToolchainProvider, ToolchainProviderAction, ToolchainProviderCommand, ToolchainProvidersConfig, ToolchainRegistryConfig, ToolchainRegistryPolicy, ToolchainSection, ToolchainTemplateKind, ToolchainTemplateSource, ToolchainTemplateSourceType, ToolchainTemplatesConfig, ToolchainTsconfigConfig, ToolchainTsconfigOverrides, ToolchainViteConfig, ToolchainVscodeSettings, ToolchainWatchConfig, VendorWorkflowConfig, WARNING_MAP, WarningId, WorkflowJob, WorkflowOptions, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, type YamlValue, applyOverrides, applyReplacements, applyReplacementsDeep, asString, azureWorkflowSettingSchema, biomeConfigOptionsSchema, biomeConfigSchema, camelCase, camelCaseId, capitalize, catalogsConfigSchema, changelogBranchesConfigSchema, changelogBreakingCallbackSchema, changelogBreakingSettingSchema, changelogBumpRuleMatchSchema, changelogBumpRuleSchema, changelogCommitFormatConfigSchema, changelogCommitlintConfigSchema, changelogConfigSchema, changelogGroupConfigSchema, changelogGroupsSettingSchema, changelogProviderConfigSchema, changelogProviderSettingSchema, changelogSectionEnabled, changelogVersioningConfigSchema, changelogVersioningSchema, changelogVersioningTargetSchema, changelogWorkflowSettingSchema, ciChangelogConfigSchema, ciConfigSchema, collectGitignorePatterns, configJsonValueSchema, configSchema, configureLogger, constantCase, createLogger, createReplacer, customWorkflowSettingsSchema, dbxConfigSchema, deepMerge, defineConfig, defineReplacements, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, errorMessage, extractTokens, findOwnCliEntry, fmtConfigSchema, formatCliFlag, formatMessage, formatMessageId, getLogOverrides, getLogger, githubWorkflowSettingSchema, gitlabWorkflowSettingSchema, hasEscapeArtifacts, hasText, hasUnresolvedTokens, indent, index_d_exports, insertMissingJsonc, isCmdShim, isIgnoredPath, isLocalhost, isLogLevel, isPlainObject, isUnsafeKey, isVendorWorkflowConfig, kebabCase, killProcessTree, lintConfigSchema, localToolchainVersion, logger, loggerConfigSchema, mapValues, mergeJsonAt, normalizeLogLevel, pascalCase, projectConfigSchema, projectFromPackageJson, projectToPackageJson, projectTypeSchema, providerActions, providersConfigSchema, readJsonAt, readJsonFile, readJsoncAt, readJsoncFile, registryConfigSchema, registryPolicySchema, registrySourceAllowed, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, repoSlugFromUrl, resolveChangelogBranches, resolveChangelogConfig, resolveCiConfig, resolveCommitlintEnabled, resolveFmtTool, resolveFmtTools, resolveIgnorePatterns, resolveLintTool, resolveLintTools, resolveOxcFmtConfig, resolveOxcLintConfig, resolveSort, resolveTokens, run, sanitizeSlashes, sanitizeText, section, sectionConfig, sectionEnabled, setLogConfig, setLogOverrides, snakeCase, sort, spawnCross, splitPackageName, str, stripAnsi, stripControlChars, stripEscapeArtifacts, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolchainConfigSchema, tsconfigConfigSchema, viteConfigSchema, vscodeSettingsSchema, warningMessage, watchConfigSchema, withEnabled, workflowConfigSchema, workflowJobSchema, workflowOptionsSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, writeJsonFile };
|
|
50
|
+
export { Awaitable, type AzurePipelines, AzureWorkflowSetting, type BiomeConfig, CONFIG_FILE_NAMES, ChangelogAuthorInfo, ChangelogBranchesConfig, ChangelogBreakingCommit, ChangelogBreakingSetting, ChangelogBumpRule, ChangelogBumpRuleCallbackContext, ChangelogBumpRuleContext, ChangelogBumpRuleMatch, ChangelogCommitFormatConfig, ChangelogCommitFormatContext, ChangelogCommitFormatOptions, ChangelogCommitRecord, ChangelogCommitlintConfig, ChangelogConfig, ChangelogGroupConfig, ChangelogGroupContext, ChangelogGroupEntry, ChangelogGroupHidden, ChangelogGroupItem, ChangelogGroupOrder, ChangelogGroupTitle, ChangelogGroupsContext, ChangelogGroupsSetting, ChangelogIssueInfo, ChangelogProvider, ChangelogProviderConfig, ChangelogProviderContext, ChangelogProviderSetting, ChangelogVersioning, ChangelogVersioningConfig, ChangelogVersioningTarget, ChangelogWorkflowSetting, CiChangelogConfig, Colors, ConfigJsonValue, CustomWorkflowSettings, DEFAULT_FMT_IGNORE_PATTERNS, DEFAULT_FMT_RULES, DEFAULT_FMT_SORT_GROUP, DEFAULT_FMT_SORT_GROUPS, DEFAULT_FMT_SORT_IMPORTS, DEFAULT_IGNORE_PATTERNS, DEFAULT_LINT_IGNORE_PATTERNS, DEFAULT_LINT_RULES, DEFAULT_PACKAGE_MANAGER_VERSIONS, DbxConfig, DbxConfigFunction, DbxConfigInput, DbxConfigSections, ENABLED_DESCRIPTION, ERROR_MAP, ErrorId, FORMATTER_PRECEDENCE, FmtCustomGroup, FmtProjectIdentity, FmtSortGroup, FmtSortImports, FormatterTool, GeneratedFile, type GitHubWorkflow, GitHubWorkflowSetting, type GitLabCi, GitLabWorkflowSetting, IgnoreOptions, JsonValue, LINTER_PRECEDENCE, LOG_LEVELS, LinterTool, LogChannel, LogLevel, LogSuppression, Logger, LoggerConfig, LoggerOptions, ManagedFile, MessageId, type OxfmtConfig, type OxlintConfig, PackageJson, ProjectType, RegistryPolicy, ReplacementOptions, ReplacementValue, Replacements, Replacer, RunOptions, Sortable, SpawnCrossOptions, SyncContext, SyncSummary, SyncTask, TOOLCHAIN_PACKAGE, ToolchainArgument, ToolchainBiomeConfig, ToolchainCatalogsConfig, ToolchainCiConfig, ToolchainCommand, ToolchainCommandContext, ToolchainConfig, ToolchainConfigSections, ToolchainFmtConfig, ToolchainHooks, ToolchainLintConfig, ToolchainLogger, ToolchainLoggerConfig, ToolchainOption, ToolchainOxfmtConfig, ToolchainOxlintConfig, ToolchainProjectConfig, ToolchainProvider, ToolchainProviderAction, ToolchainProviderCommand, ToolchainProvidersConfig, ToolchainRegistryConfig, ToolchainRegistryPolicy, ToolchainSection, ToolchainTemplateKind, ToolchainTemplateSource, ToolchainTemplateSourceType, ToolchainTemplatesConfig, ToolchainTsconfigConfig, ToolchainTsconfigOverrides, ToolchainViteConfig, ToolchainVscodeSettings, ToolchainWatchConfig, VendorWorkflowConfig, WARNING_MAP, WarningId, WorkflowExtra, WorkflowJob, WorkflowOptions, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, WorkflowTokens, WorkflowTriggers, type YamlValue, applyFmtCustomGroups, applyOverrides, applyReplacements, applyReplacementsDeep, asString, azureWorkflowSettingSchema, biomeConfigOptionsSchema, biomeConfigSchema, camelCase, camelCaseId, capitalize, catalogsConfigSchema, changelogBranchesConfigSchema, changelogBreakingCallbackSchema, changelogBreakingSettingSchema, changelogBumpRuleMatchSchema, changelogBumpRuleSchema, changelogCommitFormatConfigSchema, changelogCommitlintConfigSchema, changelogConfigSchema, changelogGroupConfigSchema, changelogGroupsSettingSchema, changelogProviderConfigSchema, changelogProviderSettingSchema, changelogSectionEnabled, changelogVersioningConfigSchema, changelogVersioningSchema, changelogVersioningTargetSchema, changelogWorkflowSettingSchema, ciChangelogConfigSchema, ciConfigSchema, collectGitignorePatterns, configJsonValueSchema, configSchema, configureLogger, constantCase, createLogger, createReplacer, customWorkflowSettingsSchema, dbxConfigSchema, deepMerge, defineConfig, defineReplacements, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, errorMessage, extractTokens, findOwnCliEntry, fmtConfigSchema, fmtCustomGroupsForProjects, formatCliFlag, formatMessage, formatMessageId, getLogOverrides, getLogger, githubWorkflowSettingSchema, gitlabWorkflowSettingSchema, hasEscapeArtifacts, hasText, hasUnresolvedTokens, indent, index_d_exports, insertMissingJsonc, isCmdShim, isIgnoredPath, isLocalhost, isLogLevel, isPlainObject, isUnsafeKey, isVendorWorkflowConfig, kebabCase, killProcessTree, lintConfigSchema, localToolchainVersion, logger, loggerConfigSchema, mapValues, mergeJsonAt, normalizeLogLevel, pascalCase, projectConfigSchema, projectFromPackageJson, projectToPackageJson, projectTypeSchema, providerActions, providersConfigSchema, readJsonAt, readJsonFile, readJsoncAt, readJsoncFile, registryConfigSchema, registryPolicySchema, registrySourceAllowed, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, repairBacktickArtifacts, repoSlugFromUrl, resolveChangelogBranches, resolveChangelogConfig, resolveCiConfig, resolveCommitlintEnabled, resolveFmtTool, resolveFmtTools, resolveIgnorePatterns, resolveLintTool, resolveLintTools, resolveOxcFmtConfig, resolveOxcLintConfig, resolveSort, resolveTokens, run, sanitizeSlashes, sanitizeText, section, sectionConfig, sectionEnabled, setLogConfig, setLogOverrides, snakeCase, sort, spawnCross, splitPackageName, str, stripAnsi, stripControlChars, stripEscapeArtifacts, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolchainConfigSchema, tsconfigConfigSchema, viteConfigSchema, vscodeSettingsSchema, warningMessage, watchConfigSchema, withEnabled, workflowConfigSchema, workflowExtraSchema, workflowJobSchema, workflowOptionsSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, workflowTokensSchema, workflowTriggersSchema, writeJsonFile };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{__exportAll as ee}from"../../../_virtual/_rolldown/runtime.js";import{TOOLCHAIN_PACKAGE as te,findOwnCliEntry as e,localToolchainVersion as t}from"./bin.js";import{applyOverrides as n,deepMerge as r,isPlainObject as i,isUnsafeKey as a,mapValues as o,resolveSort as s,sort as c}from"./object-utils.js";import{insertMissingJsonc as l,mergeJsonAt as u,readJsonAt as d,readJsonFile as f,readJsoncAt as p,readJsoncFile as m,toJson as h,writeJsonFile as g}from"./fs-utils.js";import{DEFAULT_IGNORE_PATTERNS as _,collectGitignorePatterns as v,isIgnoredPath as y,resolveIgnorePatterns as b}from"./ignore.js";import{ERROR_MAP as x,WARNING_MAP as S,errorMessage as C,formatMessage as w,formatMessageId as T,warningMessage as E}from"./messages.js";import{LOG_LEVELS as D,configureLogger as O,createLogger as k,getLogOverrides as A,getLogger as j,isLogLevel as M,logger as N,normalizeLogLevel as P,setLogConfig as F,setLogOverrides as I,stripAnsi as L}from"./logger.js";import{projectFromPackageJson as R,projectToPackageJson as z,splitPackageName as B}from"./project.js";import{providerActions as V}from"./provider.js";import{registrySourceAllowed as H}from"./registry-policy.js";import{isCmdShim as U,killProcessTree as W,run as G,spawnCross as K}from"./run.js";import{asString as q,camelCase as J,camelCaseId as Y,capitalize as X,constantCase as Z,ensureLeadingSlash as Q,ensureSlashes as ne,ensureTrailingSlash as re,formatCliFlag as ie,hasEscapeArtifacts as ae,hasText as oe,indent as se,isLocalhost as ce,kebabCase as le,pascalCase as ue,removeDoubleSlashes as de,removeLeadingSlash as fe,removeTrailingSlash as pe,sanitizeSlashes as me,sanitizeText as he,snakeCase as ge,str as _e,stripControlChars as ve,stripEscapeArtifacts as ye,titleCase as be}from"./string-utils.js";import{applyReplacements as xe,applyReplacementsDeep as Se,createReplacer as Ce,defineReplacements as we,extractTokens as Te,hasUnresolvedTokens as Ee,tokenPattern as De}from"./template.js";import{configJsonValueSchema as Oe}from"./config-schema/json.js";import{ENABLED_DESCRIPTION as ke,section as Ae,withEnabled as je}from"./config-schema/meta.js";import{azureWorkflowSettingSchema as Me,customWorkflowSettingsSchema as Ne,githubWorkflowSettingSchema as Pe,gitlabWorkflowSettingSchema as $,isVendorWorkflowConfig as Fe,workflowConfigSchema as Ie,workflowJobSchema as Le,workflowOptionsSchema as Re,workflowSettingSchema as ze,workflowStepSchema as Be,workflowStepsConfigSchema as Ve}from"./config-schema/workflow.js";import{biomeConfigOptionsSchema as He,biomeConfigSchema as Ue}from"./config-schema/biome.js";import{catalogsConfigSchema as We}from"./config-schema/catalogs.js";import{changelogBranchesConfigSchema as Ge,changelogBreakingCallbackSchema as Ke,changelogBreakingSettingSchema as qe,changelogBumpRuleMatchSchema as Je,changelogBumpRuleSchema as Ye,changelogCommitFormatConfigSchema as Xe,changelogCommitlintConfigSchema as Ze,changelogConfigSchema as Qe,changelogGroupConfigSchema as $e,changelogGroupsSettingSchema as et,changelogProviderConfigSchema as tt,changelogProviderSettingSchema as nt,changelogVersioningConfigSchema as rt,changelogVersioningSchema as it,changelogVersioningTargetSchema as at,changelogWorkflowSettingSchema as ot,ciChangelogConfigSchema as st}from"./config-schema/changelog.js";import{ciConfigSchema as ct}from"./config-schema/ci.js";import{fmtConfigSchema as lt,lintConfigSchema as ut,vscodeSettingsSchema as dt}from"./config-schema/format.js";import{loggerConfigSchema as ft}from"./config-schema/logger.js";import{projectConfigSchema as pt,projectTypeSchema as mt}from"./config-schema/project.js";import{providersConfigSchema as ht}from"./config-schema/providers.js";import{registryConfigSchema as gt,registryPolicySchema as _t}from"./config-schema/registry.js";import{templateKindSchema as vt,templateSourceSchema as yt,templateSourceTypeSchema as bt,templatesConfigSchema as xt}from"./config-schema/templates.js";import{tsconfigConfigSchema as St}from"./config-schema/tsconfig.js";import{viteConfigSchema as Ct}from"./config-schema/vite.js";import{watchConfigSchema as wt}from"./config-schema/watch.js";import{configSchema as Tt,dbxConfigSchema as Et,toolchainConfigSchema as Dt}from"./config-schema/index.js";import{CONFIG_FILE_NAMES as Ot,DEFAULT_PACKAGE_MANAGER_VERSIONS as kt,FORMATTER_PRECEDENCE as At,LINTER_PRECEDENCE as jt,changelogSectionEnabled as Mt,defineConfig as Nt,repoSlugFromUrl as Pt,resolveChangelogBranches as Ft,resolveChangelogConfig as It,resolveCiConfig as Lt,resolveCommitlintEnabled as Rt,resolveFmtTool as zt,resolveFmtTools as Bt,resolveLintTool as Vt,resolveLintTools as Ht,resolveOxcFmtConfig as Ut,resolveOxcLintConfig as Wt,resolveTokens as Gt,sectionConfig as Kt,sectionEnabled as qt}from"./toolchain.js";import{DEFAULT_FMT_IGNORE_PATTERNS as Jt,DEFAULT_FMT_RULES as Yt,DEFAULT_LINT_IGNORE_PATTERNS as Xt,DEFAULT_LINT_RULES as Zt}from"./vite-defaults.js";import{toYaml as Qt}from"./yaml.js";var $t=/* @__PURE__ */ ee({CONFIG_FILE_NAMES:()=>Ot,DEFAULT_FMT_IGNORE_PATTERNS:()=>Jt,DEFAULT_FMT_RULES:()=>Yt,DEFAULT_IGNORE_PATTERNS:()=>_,DEFAULT_LINT_IGNORE_PATTERNS:()=>Xt,DEFAULT_LINT_RULES:()=>Zt,DEFAULT_PACKAGE_MANAGER_VERSIONS:()=>kt,ENABLED_DESCRIPTION:()=>ke,ERROR_MAP:()=>x,FORMATTER_PRECEDENCE:()=>At,LINTER_PRECEDENCE:()=>jt,LOG_LEVELS:()=>D,TOOLCHAIN_PACKAGE:()=>te,WARNING_MAP:()=>S,applyOverrides:()=>n,applyReplacements:()=>xe,applyReplacementsDeep:()=>Se,asString:()=>q,azureWorkflowSettingSchema:()=>Me,biomeConfigOptionsSchema:()=>He,biomeConfigSchema:()=>Ue,camelCase:()=>J,camelCaseId:()=>Y,capitalize:()=>X,catalogsConfigSchema:()=>We,changelogBranchesConfigSchema:()=>Ge,changelogBreakingCallbackSchema:()=>Ke,changelogBreakingSettingSchema:()=>qe,changelogBumpRuleMatchSchema:()=>Je,changelogBumpRuleSchema:()=>Ye,changelogCommitFormatConfigSchema:()=>Xe,changelogCommitlintConfigSchema:()=>Ze,changelogConfigSchema:()=>Qe,changelogGroupConfigSchema:()=>$e,changelogGroupsSettingSchema:()=>et,changelogProviderConfigSchema:()=>tt,changelogProviderSettingSchema:()=>nt,changelogSectionEnabled:()=>Mt,changelogVersioningConfigSchema:()=>rt,changelogVersioningSchema:()=>it,changelogVersioningTargetSchema:()=>at,changelogWorkflowSettingSchema:()=>ot,ciChangelogConfigSchema:()=>st,ciConfigSchema:()=>ct,collectGitignorePatterns:()=>v,configJsonValueSchema:()=>Oe,configSchema:()=>Tt,configureLogger:()=>O,constantCase:()=>Z,createLogger:()=>k,createReplacer:()=>Ce,customWorkflowSettingsSchema:()=>Ne,dbxConfigSchema:()=>Et,deepMerge:()=>r,defineConfig:()=>Nt,defineReplacements:()=>we,ensureLeadingSlash:()=>Q,ensureSlashes:()=>ne,ensureTrailingSlash:()=>re,errorMessage:()=>C,extractTokens:()=>Te,findOwnCliEntry:()=>e,fmtConfigSchema:()=>lt,formatCliFlag:()=>ie,formatMessage:()=>w,formatMessageId:()=>T,getLogOverrides:()=>A,getLogger:()=>j,githubWorkflowSettingSchema:()=>Pe,gitlabWorkflowSettingSchema:()=>$,hasEscapeArtifacts:()=>ae,hasText:()=>oe,hasUnresolvedTokens:()=>Ee,indent:()=>se,insertMissingJsonc:()=>l,isCmdShim:()=>U,isIgnoredPath:()=>y,isLocalhost:()=>ce,isLogLevel:()=>M,isPlainObject:()=>i,isUnsafeKey:()=>a,isVendorWorkflowConfig:()=>Fe,kebabCase:()=>le,killProcessTree:()=>W,lintConfigSchema:()=>ut,localToolchainVersion:()=>t,logger:()=>N,loggerConfigSchema:()=>ft,mapValues:()=>o,mergeJsonAt:()=>u,normalizeLogLevel:()=>P,pascalCase:()=>ue,projectConfigSchema:()=>pt,projectFromPackageJson:()=>R,projectToPackageJson:()=>z,projectTypeSchema:()=>mt,providerActions:()=>V,providersConfigSchema:()=>ht,readJsonAt:()=>d,readJsonFile:()=>f,readJsoncAt:()=>p,readJsoncFile:()=>m,registryConfigSchema:()=>gt,registryPolicySchema:()=>_t,registrySourceAllowed:()=>H,removeDoubleSlashes:()=>de,removeLeadingSlash:()=>fe,removeTrailingSlash:()=>pe,repoSlugFromUrl:()=>Pt,resolveChangelogBranches:()=>Ft,resolveChangelogConfig:()=>It,resolveCiConfig:()=>Lt,resolveCommitlintEnabled:()=>Rt,resolveFmtTool:()=>zt,resolveFmtTools:()=>Bt,resolveIgnorePatterns:()=>b,resolveLintTool:()=>Vt,resolveLintTools:()=>Ht,resolveOxcFmtConfig:()=>Ut,resolveOxcLintConfig:()=>Wt,resolveSort:()=>s,resolveTokens:()=>Gt,run:()=>G,sanitizeSlashes:()=>me,sanitizeText:()=>he,section:()=>Ae,sectionConfig:()=>Kt,sectionEnabled:()=>qt,setLogConfig:()=>F,setLogOverrides:()=>I,snakeCase:()=>ge,sort:()=>c,spawnCross:()=>K,splitPackageName:()=>B,str:()=>_e,stripAnsi:()=>L,stripControlChars:()=>ve,stripEscapeArtifacts:()=>ye,templateKindSchema:()=>vt,templateSourceSchema:()=>yt,templateSourceTypeSchema:()=>bt,templatesConfigSchema:()=>xt,titleCase:()=>be,toJson:()=>h,toYaml:()=>Qt,tokenPattern:()=>De,toolchainConfigSchema:()=>Dt,tsconfigConfigSchema:()=>St,viteConfigSchema:()=>Ct,vscodeSettingsSchema:()=>dt,warningMessage:()=>E,watchConfigSchema:()=>wt,withEnabled:()=>je,workflowConfigSchema:()=>Ie,workflowJobSchema:()=>Le,workflowOptionsSchema:()=>Re,workflowSettingSchema:()=>ze,workflowStepSchema:()=>Be,workflowStepsConfigSchema:()=>Ve,writeJsonFile:()=>g});export{Ot as CONFIG_FILE_NAMES,Jt as DEFAULT_FMT_IGNORE_PATTERNS,Yt as DEFAULT_FMT_RULES,_ as DEFAULT_IGNORE_PATTERNS,Xt as DEFAULT_LINT_IGNORE_PATTERNS,Zt as DEFAULT_LINT_RULES,kt as DEFAULT_PACKAGE_MANAGER_VERSIONS,ke as ENABLED_DESCRIPTION,x as ERROR_MAP,At as FORMATTER_PRECEDENCE,jt as LINTER_PRECEDENCE,D as LOG_LEVELS,te as TOOLCHAIN_PACKAGE,S as WARNING_MAP,n as applyOverrides,xe as applyReplacements,Se as applyReplacementsDeep,q as asString,Me as azureWorkflowSettingSchema,He as biomeConfigOptionsSchema,Ue as biomeConfigSchema,J as camelCase,Y as camelCaseId,X as capitalize,We as catalogsConfigSchema,Ge as changelogBranchesConfigSchema,Ke as changelogBreakingCallbackSchema,qe as changelogBreakingSettingSchema,Je as changelogBumpRuleMatchSchema,Ye as changelogBumpRuleSchema,Xe as changelogCommitFormatConfigSchema,Ze as changelogCommitlintConfigSchema,Qe as changelogConfigSchema,$e as changelogGroupConfigSchema,et as changelogGroupsSettingSchema,tt as changelogProviderConfigSchema,nt as changelogProviderSettingSchema,Mt as changelogSectionEnabled,rt as changelogVersioningConfigSchema,it as changelogVersioningSchema,at as changelogVersioningTargetSchema,ot as changelogWorkflowSettingSchema,st as ciChangelogConfigSchema,ct as ciConfigSchema,v as collectGitignorePatterns,Oe as configJsonValueSchema,Tt as configSchema,O as configureLogger,Z as constantCase,k as createLogger,Ce as createReplacer,Ne as customWorkflowSettingsSchema,Et as dbxConfigSchema,r as deepMerge,Nt as defineConfig,we as defineReplacements,Q as ensureLeadingSlash,ne as ensureSlashes,re as ensureTrailingSlash,C as errorMessage,Te as extractTokens,e as findOwnCliEntry,lt as fmtConfigSchema,ie as formatCliFlag,w as formatMessage,T as formatMessageId,A as getLogOverrides,j as getLogger,Pe as githubWorkflowSettingSchema,$ as gitlabWorkflowSettingSchema,ae as hasEscapeArtifacts,oe as hasText,Ee as hasUnresolvedTokens,se as indent,l as insertMissingJsonc,U as isCmdShim,y as isIgnoredPath,ce as isLocalhost,M as isLogLevel,i as isPlainObject,a as isUnsafeKey,Fe as isVendorWorkflowConfig,le as kebabCase,W as killProcessTree,ut as lintConfigSchema,t as localToolchainVersion,N as logger,ft as loggerConfigSchema,o as mapValues,u as mergeJsonAt,P as normalizeLogLevel,ue as pascalCase,pt as projectConfigSchema,R as projectFromPackageJson,z as projectToPackageJson,mt as projectTypeSchema,V as providerActions,ht as providersConfigSchema,d as readJsonAt,f as readJsonFile,p as readJsoncAt,m as readJsoncFile,gt as registryConfigSchema,_t as registryPolicySchema,H as registrySourceAllowed,de as removeDoubleSlashes,fe as removeLeadingSlash,pe as removeTrailingSlash,Pt as repoSlugFromUrl,Ft as resolveChangelogBranches,It as resolveChangelogConfig,Lt as resolveCiConfig,Rt as resolveCommitlintEnabled,zt as resolveFmtTool,Bt as resolveFmtTools,b as resolveIgnorePatterns,Vt as resolveLintTool,Ht as resolveLintTools,Ut as resolveOxcFmtConfig,Wt as resolveOxcLintConfig,s as resolveSort,Gt as resolveTokens,G as run,me as sanitizeSlashes,he as sanitizeText,Ae as section,Kt as sectionConfig,qt as sectionEnabled,F as setLogConfig,I as setLogOverrides,ge as snakeCase,c as sort,K as spawnCross,B as splitPackageName,$t as src_exports,_e as str,L as stripAnsi,ve as stripControlChars,ye as stripEscapeArtifacts,vt as templateKindSchema,yt as templateSourceSchema,bt as templateSourceTypeSchema,xt as templatesConfigSchema,be as titleCase,h as toJson,Qt as toYaml,De as tokenPattern,Dt as toolchainConfigSchema,St as tsconfigConfigSchema,Ct as viteConfigSchema,dt as vscodeSettingsSchema,E as warningMessage,wt as watchConfigSchema,je as withEnabled,Ie as workflowConfigSchema,Le as workflowJobSchema,Re as workflowOptionsSchema,ze as workflowSettingSchema,Be as workflowStepSchema,Ve as workflowStepsConfigSchema,g as writeJsonFile};
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{__exportAll as ee}from"../../../_virtual/_rolldown/runtime.js";import{TOOLCHAIN_PACKAGE as te,findOwnCliEntry as e,localToolchainVersion as t}from"./bin.js";import{applyOverrides as n,deepMerge as r,isPlainObject as i,isUnsafeKey as a,mapValues as o,resolveSort as s,sort as c}from"./object-utils.js";import{insertMissingJsonc as l,mergeJsonAt as u,readJsonAt as d,readJsonFile as f,readJsoncAt as p,readJsoncFile as m,toJson as h,writeJsonFile as g}from"./fs-utils.js";import{DEFAULT_FMT_IGNORE_PATTERNS as _,DEFAULT_IGNORE_PATTERNS as v,DEFAULT_LINT_IGNORE_PATTERNS as y,collectGitignorePatterns as b,isIgnoredPath as x,resolveIgnorePatterns as S}from"./ignore.js";import{ERROR_MAP as C,WARNING_MAP as w,errorMessage as T,formatMessage as E,formatMessageId as D,warningMessage as O}from"./messages.js";import{LOG_LEVELS as k,configureLogger as A,createLogger as j,getLogOverrides as M,getLogger as N,isLogLevel as P,logger as F,normalizeLogLevel as I,setLogConfig as L,setLogOverrides as R,stripAnsi as z}from"./logger.js";import{projectFromPackageJson as B,projectToPackageJson as V,splitPackageName as H}from"./project.js";import{providerActions as U}from"./provider.js";import{registrySourceAllowed as W}from"./registry-policy.js";import{isCmdShim as G,killProcessTree as K,run as q,spawnCross as J}from"./run.js";import{asString as Y,camelCase as X,camelCaseId as Z,capitalize as Q,constantCase as ne,ensureLeadingSlash as re,ensureSlashes as ie,ensureTrailingSlash as ae,formatCliFlag as oe,hasEscapeArtifacts as se,hasText as ce,indent as le,isLocalhost as ue,kebabCase as de,pascalCase as fe,removeDoubleSlashes as pe,removeLeadingSlash as me,removeTrailingSlash as he,repairBacktickArtifacts as ge,sanitizeSlashes as _e,sanitizeText as ve,snakeCase as ye,str as be,stripControlChars as xe,stripEscapeArtifacts as Se,titleCase as Ce}from"./string-utils.js";import{applyReplacements as we,applyReplacementsDeep as Te,createReplacer as Ee,defineReplacements as De,extractTokens as Oe,hasUnresolvedTokens as ke,tokenPattern as Ae}from"./template.js";import{configJsonValueSchema as je}from"./config-schema/json.js";import{ENABLED_DESCRIPTION as Me,section as Ne,withEnabled as Pe}from"./config-schema/meta.js";import{azureWorkflowSettingSchema as Fe,customWorkflowSettingsSchema as Ie,githubWorkflowSettingSchema as Le,gitlabWorkflowSettingSchema as Re,isVendorWorkflowConfig as $,workflowConfigSchema as ze,workflowExtraSchema as Be,workflowJobSchema as Ve,workflowOptionsSchema as He,workflowSettingSchema as Ue,workflowStepSchema as We,workflowStepsConfigSchema as Ge,workflowTokensSchema as Ke,workflowTriggersSchema as qe}from"./config-schema/workflow.js";import{biomeConfigOptionsSchema as Je,biomeConfigSchema as Ye}from"./config-schema/biome.js";import{catalogsConfigSchema as Xe}from"./config-schema/catalogs.js";import{changelogBranchesConfigSchema as Ze,changelogBreakingCallbackSchema as Qe,changelogBreakingSettingSchema as $e,changelogBumpRuleMatchSchema as et,changelogBumpRuleSchema as tt,changelogCommitFormatConfigSchema as nt,changelogCommitlintConfigSchema as rt,changelogConfigSchema as it,changelogGroupConfigSchema as at,changelogGroupsSettingSchema as ot,changelogProviderConfigSchema as st,changelogProviderSettingSchema as ct,changelogVersioningConfigSchema as lt,changelogVersioningSchema as ut,changelogVersioningTargetSchema as dt,changelogWorkflowSettingSchema as ft,ciChangelogConfigSchema as pt}from"./config-schema/changelog.js";import{ciConfigSchema as mt}from"./config-schema/ci.js";import{fmtConfigSchema as ht,lintConfigSchema as gt,vscodeSettingsSchema as _t}from"./config-schema/format.js";import{loggerConfigSchema as vt}from"./config-schema/logger.js";import{projectConfigSchema as yt,projectTypeSchema as bt}from"./config-schema/project.js";import{providersConfigSchema as xt}from"./config-schema/providers.js";import{registryConfigSchema as St,registryPolicySchema as Ct}from"./config-schema/registry.js";import{templateKindSchema as wt,templateSourceSchema as Tt,templateSourceTypeSchema as Et,templatesConfigSchema as Dt}from"./config-schema/templates.js";import{tsconfigConfigSchema as Ot}from"./config-schema/tsconfig.js";import{viteConfigSchema as kt}from"./config-schema/vite.js";import{watchConfigSchema as At}from"./config-schema/watch.js";import{configSchema as jt,dbxConfigSchema as Mt,toolchainConfigSchema as Nt}from"./config-schema/index.js";import{CONFIG_FILE_NAMES as Pt,DEFAULT_PACKAGE_MANAGER_VERSIONS as Ft,FORMATTER_PRECEDENCE as It,LINTER_PRECEDENCE as Lt,changelogSectionEnabled as Rt,defineConfig as zt,repoSlugFromUrl as Bt,resolveChangelogBranches as Vt,resolveChangelogConfig as Ht,resolveCiConfig as Ut,resolveCommitlintEnabled as Wt,resolveFmtTool as Gt,resolveFmtTools as Kt,resolveLintTool as qt,resolveLintTools as Jt,resolveOxcFmtConfig as Yt,resolveOxcLintConfig as Xt,resolveTokens as Zt,sectionConfig as Qt,sectionEnabled as $t}from"./toolchain.js";import{DEFAULT_FMT_RULES as en,DEFAULT_FMT_SORT_GROUP as tn,DEFAULT_FMT_SORT_GROUPS as nn,DEFAULT_FMT_SORT_IMPORTS as rn,DEFAULT_LINT_RULES as an,applyFmtCustomGroups as on,fmtCustomGroupsForProjects as sn}from"./vite-defaults.js";import{toYaml as cn}from"./yaml.js";var ln=/* @__PURE__ */ ee({CONFIG_FILE_NAMES:()=>Pt,DEFAULT_FMT_IGNORE_PATTERNS:()=>_,DEFAULT_FMT_RULES:()=>en,DEFAULT_FMT_SORT_GROUP:()=>tn,DEFAULT_FMT_SORT_GROUPS:()=>nn,DEFAULT_FMT_SORT_IMPORTS:()=>rn,DEFAULT_IGNORE_PATTERNS:()=>v,DEFAULT_LINT_IGNORE_PATTERNS:()=>y,DEFAULT_LINT_RULES:()=>an,DEFAULT_PACKAGE_MANAGER_VERSIONS:()=>Ft,ENABLED_DESCRIPTION:()=>Me,ERROR_MAP:()=>C,FORMATTER_PRECEDENCE:()=>It,LINTER_PRECEDENCE:()=>Lt,LOG_LEVELS:()=>k,TOOLCHAIN_PACKAGE:()=>te,WARNING_MAP:()=>w,applyFmtCustomGroups:()=>on,applyOverrides:()=>n,applyReplacements:()=>we,applyReplacementsDeep:()=>Te,asString:()=>Y,azureWorkflowSettingSchema:()=>Fe,biomeConfigOptionsSchema:()=>Je,biomeConfigSchema:()=>Ye,camelCase:()=>X,camelCaseId:()=>Z,capitalize:()=>Q,catalogsConfigSchema:()=>Xe,changelogBranchesConfigSchema:()=>Ze,changelogBreakingCallbackSchema:()=>Qe,changelogBreakingSettingSchema:()=>$e,changelogBumpRuleMatchSchema:()=>et,changelogBumpRuleSchema:()=>tt,changelogCommitFormatConfigSchema:()=>nt,changelogCommitlintConfigSchema:()=>rt,changelogConfigSchema:()=>it,changelogGroupConfigSchema:()=>at,changelogGroupsSettingSchema:()=>ot,changelogProviderConfigSchema:()=>st,changelogProviderSettingSchema:()=>ct,changelogSectionEnabled:()=>Rt,changelogVersioningConfigSchema:()=>lt,changelogVersioningSchema:()=>ut,changelogVersioningTargetSchema:()=>dt,changelogWorkflowSettingSchema:()=>ft,ciChangelogConfigSchema:()=>pt,ciConfigSchema:()=>mt,collectGitignorePatterns:()=>b,configJsonValueSchema:()=>je,configSchema:()=>jt,configureLogger:()=>A,constantCase:()=>ne,createLogger:()=>j,createReplacer:()=>Ee,customWorkflowSettingsSchema:()=>Ie,dbxConfigSchema:()=>Mt,deepMerge:()=>r,defineConfig:()=>zt,defineReplacements:()=>De,ensureLeadingSlash:()=>re,ensureSlashes:()=>ie,ensureTrailingSlash:()=>ae,errorMessage:()=>T,extractTokens:()=>Oe,findOwnCliEntry:()=>e,fmtConfigSchema:()=>ht,fmtCustomGroupsForProjects:()=>sn,formatCliFlag:()=>oe,formatMessage:()=>E,formatMessageId:()=>D,getLogOverrides:()=>M,getLogger:()=>N,githubWorkflowSettingSchema:()=>Le,gitlabWorkflowSettingSchema:()=>Re,hasEscapeArtifacts:()=>se,hasText:()=>ce,hasUnresolvedTokens:()=>ke,indent:()=>le,insertMissingJsonc:()=>l,isCmdShim:()=>G,isIgnoredPath:()=>x,isLocalhost:()=>ue,isLogLevel:()=>P,isPlainObject:()=>i,isUnsafeKey:()=>a,isVendorWorkflowConfig:()=>$,kebabCase:()=>de,killProcessTree:()=>K,lintConfigSchema:()=>gt,localToolchainVersion:()=>t,logger:()=>F,loggerConfigSchema:()=>vt,mapValues:()=>o,mergeJsonAt:()=>u,normalizeLogLevel:()=>I,pascalCase:()=>fe,projectConfigSchema:()=>yt,projectFromPackageJson:()=>B,projectToPackageJson:()=>V,projectTypeSchema:()=>bt,providerActions:()=>U,providersConfigSchema:()=>xt,readJsonAt:()=>d,readJsonFile:()=>f,readJsoncAt:()=>p,readJsoncFile:()=>m,registryConfigSchema:()=>St,registryPolicySchema:()=>Ct,registrySourceAllowed:()=>W,removeDoubleSlashes:()=>pe,removeLeadingSlash:()=>me,removeTrailingSlash:()=>he,repairBacktickArtifacts:()=>ge,repoSlugFromUrl:()=>Bt,resolveChangelogBranches:()=>Vt,resolveChangelogConfig:()=>Ht,resolveCiConfig:()=>Ut,resolveCommitlintEnabled:()=>Wt,resolveFmtTool:()=>Gt,resolveFmtTools:()=>Kt,resolveIgnorePatterns:()=>S,resolveLintTool:()=>qt,resolveLintTools:()=>Jt,resolveOxcFmtConfig:()=>Yt,resolveOxcLintConfig:()=>Xt,resolveSort:()=>s,resolveTokens:()=>Zt,run:()=>q,sanitizeSlashes:()=>_e,sanitizeText:()=>ve,section:()=>Ne,sectionConfig:()=>Qt,sectionEnabled:()=>$t,setLogConfig:()=>L,setLogOverrides:()=>R,snakeCase:()=>ye,sort:()=>c,spawnCross:()=>J,splitPackageName:()=>H,str:()=>be,stripAnsi:()=>z,stripControlChars:()=>xe,stripEscapeArtifacts:()=>Se,templateKindSchema:()=>wt,templateSourceSchema:()=>Tt,templateSourceTypeSchema:()=>Et,templatesConfigSchema:()=>Dt,titleCase:()=>Ce,toJson:()=>h,toYaml:()=>cn,tokenPattern:()=>Ae,toolchainConfigSchema:()=>Nt,tsconfigConfigSchema:()=>Ot,viteConfigSchema:()=>kt,vscodeSettingsSchema:()=>_t,warningMessage:()=>O,watchConfigSchema:()=>At,withEnabled:()=>Pe,workflowConfigSchema:()=>ze,workflowExtraSchema:()=>Be,workflowJobSchema:()=>Ve,workflowOptionsSchema:()=>He,workflowSettingSchema:()=>Ue,workflowStepSchema:()=>We,workflowStepsConfigSchema:()=>Ge,workflowTokensSchema:()=>Ke,workflowTriggersSchema:()=>qe,writeJsonFile:()=>g});export{Pt as CONFIG_FILE_NAMES,_ as DEFAULT_FMT_IGNORE_PATTERNS,en as DEFAULT_FMT_RULES,tn as DEFAULT_FMT_SORT_GROUP,nn as DEFAULT_FMT_SORT_GROUPS,rn as DEFAULT_FMT_SORT_IMPORTS,v as DEFAULT_IGNORE_PATTERNS,y as DEFAULT_LINT_IGNORE_PATTERNS,an as DEFAULT_LINT_RULES,Ft as DEFAULT_PACKAGE_MANAGER_VERSIONS,Me as ENABLED_DESCRIPTION,C as ERROR_MAP,It as FORMATTER_PRECEDENCE,Lt as LINTER_PRECEDENCE,k as LOG_LEVELS,te as TOOLCHAIN_PACKAGE,w as WARNING_MAP,on as applyFmtCustomGroups,n as applyOverrides,we as applyReplacements,Te as applyReplacementsDeep,Y as asString,Fe as azureWorkflowSettingSchema,Je as biomeConfigOptionsSchema,Ye as biomeConfigSchema,X as camelCase,Z as camelCaseId,Q as capitalize,Xe as catalogsConfigSchema,Ze as changelogBranchesConfigSchema,Qe as changelogBreakingCallbackSchema,$e as changelogBreakingSettingSchema,et as changelogBumpRuleMatchSchema,tt as changelogBumpRuleSchema,nt as changelogCommitFormatConfigSchema,rt as changelogCommitlintConfigSchema,it as changelogConfigSchema,at as changelogGroupConfigSchema,ot as changelogGroupsSettingSchema,st as changelogProviderConfigSchema,ct as changelogProviderSettingSchema,Rt as changelogSectionEnabled,lt as changelogVersioningConfigSchema,ut as changelogVersioningSchema,dt as changelogVersioningTargetSchema,ft as changelogWorkflowSettingSchema,pt as ciChangelogConfigSchema,mt as ciConfigSchema,b as collectGitignorePatterns,je as configJsonValueSchema,jt as configSchema,A as configureLogger,ne as constantCase,j as createLogger,Ee as createReplacer,Ie as customWorkflowSettingsSchema,Mt as dbxConfigSchema,r as deepMerge,zt as defineConfig,De as defineReplacements,re as ensureLeadingSlash,ie as ensureSlashes,ae as ensureTrailingSlash,T as errorMessage,Oe as extractTokens,e as findOwnCliEntry,ht as fmtConfigSchema,sn as fmtCustomGroupsForProjects,oe as formatCliFlag,E as formatMessage,D as formatMessageId,M as getLogOverrides,N as getLogger,Le as githubWorkflowSettingSchema,Re as gitlabWorkflowSettingSchema,se as hasEscapeArtifacts,ce as hasText,ke as hasUnresolvedTokens,le as indent,l as insertMissingJsonc,G as isCmdShim,x as isIgnoredPath,ue as isLocalhost,P as isLogLevel,i as isPlainObject,a as isUnsafeKey,$ as isVendorWorkflowConfig,de as kebabCase,K as killProcessTree,gt as lintConfigSchema,t as localToolchainVersion,F as logger,vt as loggerConfigSchema,o as mapValues,u as mergeJsonAt,I as normalizeLogLevel,fe as pascalCase,yt as projectConfigSchema,B as projectFromPackageJson,V as projectToPackageJson,bt as projectTypeSchema,U as providerActions,xt as providersConfigSchema,d as readJsonAt,f as readJsonFile,p as readJsoncAt,m as readJsoncFile,St as registryConfigSchema,Ct as registryPolicySchema,W as registrySourceAllowed,pe as removeDoubleSlashes,me as removeLeadingSlash,he as removeTrailingSlash,ge as repairBacktickArtifacts,Bt as repoSlugFromUrl,Vt as resolveChangelogBranches,Ht as resolveChangelogConfig,Ut as resolveCiConfig,Wt as resolveCommitlintEnabled,Gt as resolveFmtTool,Kt as resolveFmtTools,S as resolveIgnorePatterns,qt as resolveLintTool,Jt as resolveLintTools,Yt as resolveOxcFmtConfig,Xt as resolveOxcLintConfig,s as resolveSort,Zt as resolveTokens,q as run,_e as sanitizeSlashes,ve as sanitizeText,Ne as section,Qt as sectionConfig,$t as sectionEnabled,L as setLogConfig,R as setLogOverrides,ye as snakeCase,c as sort,J as spawnCross,H as splitPackageName,ln as src_exports,be as str,z as stripAnsi,xe as stripControlChars,Se as stripEscapeArtifacts,wt as templateKindSchema,Tt as templateSourceSchema,Et as templateSourceTypeSchema,Dt as templatesConfigSchema,Ce as titleCase,h as toJson,cn as toYaml,Ae as tokenPattern,Nt as toolchainConfigSchema,Ot as tsconfigConfigSchema,kt as viteConfigSchema,_t as vscodeSettingsSchema,O as warningMessage,At as watchConfigSchema,Pe as withEnabled,ze as workflowConfigSchema,Be as workflowExtraSchema,Ve as workflowJobSchema,He as workflowOptionsSchema,Ue as workflowSettingSchema,We as workflowStepSchema,Ge as workflowStepsConfigSchema,Ke as workflowTokensSchema,qe as workflowTriggersSchema,g as writeJsonFile};
|
|
@@ -60,11 +60,18 @@ export declare function stripControlChars(text: string): string;
|
|
|
60
60
|
export declare function stripEscapeArtifacts(text: string): string;
|
|
61
61
|
/** Whether text contains shell-escape artifacts that {@link sanitizeText} repairs. */
|
|
62
62
|
export declare function hasEscapeArtifacts(text: string): boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Repair the common backtick-to-backslash artifacts left by a shell. This is a
|
|
65
|
+
* heuristic: it only rewrites paired `\code\` spans and lone trailing `\` after
|
|
66
|
+
* an identifier, and never touches a backslash that is part of a path or regex.
|
|
67
|
+
*/
|
|
68
|
+
export declare function repairBacktickArtifacts(text: string): string;
|
|
63
69
|
/**
|
|
64
70
|
* Sanitize text that may have passed through a shell (commit bodies, generated
|
|
65
71
|
* descriptions) before it is rendered to markdown: restore shell-escape
|
|
66
|
-
* artifacts, strip any remaining bare
|
|
67
|
-
* to LF. Conservative by design — it
|
|
72
|
+
* artifacts, repair backtick-to-backslash artifacts, strip any remaining bare
|
|
73
|
+
* control characters, then normalize CRLF to LF. Conservative by design — it
|
|
74
|
+
* never removes an ordinary backslash.
|
|
68
75
|
*/
|
|
69
76
|
export declare function sanitizeText(text: string): string;
|
|
70
77
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import"node:path";import"node:url";import.meta.url;function e(e){return typeof e==`string`?e.trim():``}function t(e){return typeof e==`string`?e:``}function n(e){return typeof e==`string`&&e.trim().length>0}function r(e){return e.length>0?e.charAt(0).toUpperCase()+e.slice(1):e}function i(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).split(/[^a-zA-Z0-9]+/).filter(Boolean)}function a(e){return i(e).map((e,t)=>t===0?e.toLowerCase():r(e.toLowerCase())).join(``)}function o(e){return i(e).map(e=>r(e.toLowerCase())).join(``)}function s(e){return i(e).map(e=>e.toLowerCase()).join(`-`)}function c(e){return i(e).map(e=>e.toLowerCase()).join(`_`)}function l(e){return i(e).map(e=>e.toUpperCase()).join(`_`)}function u(e){return i(e).map(e=>r(e.toLowerCase())).join(` `)}function d(e){return a(e)}function f(e,t=``){return s(t&&e.startsWith(t)?e.slice(t.length):e)}function p(e,t=2){let n=` `.repeat(t);return e.split(`
|
|
2
2
|
`).map(e=>e.trim()?n+e:e).join(`
|
|
3
|
-
`)}function m(e){return/localhost|127\.0\.0\.1|0\.0\.0\.0|::/.test(e)}function h(e,t=`/`){return e.startsWith(t)?e:`${t}${e}`}function g(e,t=`/`){return e.endsWith(t)?e:`${e}${t}`}function _(e,t=`/`){return e.replace(RegExp(`^${S(t)}+`),``)}function v(e,t=`/`){return e.replace(RegExp(`${S(t)}+$`),``)}function y(e,t=`/`){return e.replace(RegExp(`${S(t)}+`,`g`),t)}function b(e,t=[`leading`,`trailing`,`double`],n=`/`){let r=e;for(let e of t)e===`leading`&&(r=_(r,n)),e===`trailing`&&(r=v(r,n)),e===`double`&&(r=y(r,n));return r}function x(e,t,n=`/`){if(!t.length)throw Error(`ensureSlashes: operations array cannot be empty.`);let r=e;for(let e of t)if(e===`leading`)r=h(r,n);else if(e===`trailing`)r=g(r,n);else throw Error(`ensureSlashes: invalid operation: ${e}`);return r}function S(e){return e===`/`?`\\/`:e}const C={0:`0`,7:`a`,8:`b`,9:`t`,10:`n`,11:`v`,12:`f`,13:`r`,27:`e`},w=/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/g,T=/\\([\u0000-\u001f])/g;function E(e){return C[e.charCodeAt(0)]??``}function D(e){return e.replace(w,E)}function O(e){return e.replace(T,(e,t)=>E(t))}function k(e){return/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]|\\[\u0000-\u001f]/.test(e)}function A(e){return D(O(e)).replace(/\r\n?/g,`
|
|
4
|
-
`)}export{t as asString,a as camelCase,d as camelCaseId,r as capitalize,l as constantCase,h as ensureLeadingSlash,x as ensureSlashes,g as ensureTrailingSlash,f as formatCliFlag,k as hasEscapeArtifacts,n as hasText,p as indent,m as isLocalhost,s as kebabCase,o as pascalCase,y as removeDoubleSlashes,_ as removeLeadingSlash,v as removeTrailingSlash,b as sanitizeSlashes,
|
|
3
|
+
`)}function m(e){return/localhost|127\.0\.0\.1|0\.0\.0\.0|::/.test(e)}function h(e,t=`/`){return e.startsWith(t)?e:`${t}${e}`}function g(e,t=`/`){return e.endsWith(t)?e:`${e}${t}`}function _(e,t=`/`){return e.replace(RegExp(`^${S(t)}+`),``)}function v(e,t=`/`){return e.replace(RegExp(`${S(t)}+$`),``)}function y(e,t=`/`){return e.replace(RegExp(`${S(t)}+`,`g`),t)}function b(e,t=[`leading`,`trailing`,`double`],n=`/`){let r=e;for(let e of t)e===`leading`&&(r=_(r,n)),e===`trailing`&&(r=v(r,n)),e===`double`&&(r=y(r,n));return r}function x(e,t,n=`/`){if(!t.length)throw Error(`ensureSlashes: operations array cannot be empty.`);let r=e;for(let e of t)if(e===`leading`)r=h(r,n);else if(e===`trailing`)r=g(r,n);else throw Error(`ensureSlashes: invalid operation: ${e}`);return r}function S(e){return e===`/`?`\\/`:e}const C={0:`0`,7:`a`,8:`b`,9:`t`,10:`n`,11:`v`,12:`f`,13:`r`,27:`e`},w=/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/g,T=/\\([\u0000-\u001f])/g;function E(e){return C[e.charCodeAt(0)]??``}function D(e){return e.replace(w,E)}function O(e){return e.replace(T,(e,t)=>E(t))}function k(e){return/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]|\\[\u0000-\u001f]/.test(e)||new RegExp(A.source).test(e)||new RegExp(j.source).test(e)}const A=/(^|[\s([{>"'])\\([^\s\\](?:[^\\\n:]*[^\s\\])?)\\(?=[\s)\]}>.,;:!?"'`]|$)/g,j=/(^|[\s([{>"'])([A-Za-z_$][\w$]*(?:[./@-][\w$./@-]*)*)\\(?=[\s)\]}>.,;:!?"'`]|$)/g;function M(e){return/[./@_$-]/.test(e)||!/[A-Z]/.test(e)||e===e.toUpperCase()}function N(e){return/[a-z][A-Z]|[./@_$-]/.test(e)||e===e.toUpperCase()}function P(e){return e.replace(A,(e,t,n)=>M(n)?`${t}\`${n}\``:e).replace(j,(e,t,n)=>N(n)?`${t}\`${n}\``:e)}function F(e){return D(P(O(e))).replace(/\r\n?/g,`
|
|
4
|
+
`)}export{t as asString,a as camelCase,d as camelCaseId,r as capitalize,l as constantCase,h as ensureLeadingSlash,x as ensureSlashes,g as ensureTrailingSlash,f as formatCliFlag,k as hasEscapeArtifacts,n as hasText,p as indent,m as isLocalhost,s as kebabCase,o as pascalCase,y as removeDoubleSlashes,_ as removeLeadingSlash,v as removeTrailingSlash,P as repairBacktickArtifacts,b as sanitizeSlashes,F as sanitizeText,c as snakeCase,e as str,D as stripControlChars,O as stripEscapeArtifacts,u as titleCase};
|
|
@@ -6,7 +6,7 @@ import { GitHubWorkflow } from "./config-schema/generated/github-workflow.js";
|
|
|
6
6
|
import { GitLabCi } from "./config-schema/generated/gitlab-ci.js";
|
|
7
7
|
import { OxfmtConfig } from "./config-schema/generated/oxfmt-config.js";
|
|
8
8
|
import { OxlintConfig } from "./config-schema/generated/oxlint-config.js";
|
|
9
|
-
import { AzureWorkflowSetting, ChangelogBranchesConfig, ChangelogBumpRule, ChangelogBumpRuleMatch, ChangelogCommitFormatConfig, ChangelogCommitlintConfig, ChangelogConfig, ChangelogProviderConfig, ChangelogVersioning, ChangelogVersioningConfig, ChangelogVersioningTarget, ChangelogWorkflowSetting, CiChangelogConfig, ConfigJsonValue, CustomWorkflowSettings, DbxConfigSections, GitHubWorkflowSetting, GitLabWorkflowSetting, ProjectType, ToolchainBiomeConfig, ToolchainCatalogsConfig, ToolchainCiConfig, ToolchainConfigSections, ToolchainFmtConfig, ToolchainLintConfig, ToolchainLoggerConfig, ToolchainProjectConfig, ToolchainProvidersConfig, ToolchainRegistryConfig, ToolchainRegistryPolicy, ToolchainTemplateKind, ToolchainTemplateSource, ToolchainTemplateSourceType, ToolchainTemplatesConfig, ToolchainTsconfigConfig, ToolchainTsconfigOverrides, ToolchainViteConfig, ToolchainVscodeSettings, ToolchainWatchConfig, WorkflowJob, WorkflowOptions, WorkflowSetting, WorkflowStep, WorkflowStepsConfig } from "./config-types.js";
|
|
9
|
+
import { AzureWorkflowSetting, ChangelogBranchesConfig, ChangelogBumpRule, ChangelogBumpRuleMatch, ChangelogCommitFormatConfig, ChangelogCommitlintConfig, ChangelogConfig, ChangelogProviderConfig, ChangelogVersioning, ChangelogVersioningConfig, ChangelogVersioningTarget, ChangelogWorkflowSetting, CiChangelogConfig, ConfigJsonValue, CustomWorkflowSettings, DbxConfigSections, GitHubWorkflowSetting, GitLabWorkflowSetting, ProjectType, ToolchainBiomeConfig, ToolchainCatalogsConfig, ToolchainCiConfig, ToolchainConfigSections, ToolchainFmtConfig, ToolchainLintConfig, ToolchainLoggerConfig, ToolchainProjectConfig, ToolchainProvidersConfig, ToolchainRegistryConfig, ToolchainRegistryPolicy, ToolchainTemplateKind, ToolchainTemplateSource, ToolchainTemplateSourceType, ToolchainTemplatesConfig, ToolchainTsconfigConfig, ToolchainTsconfigOverrides, ToolchainViteConfig, ToolchainVscodeSettings, ToolchainWatchConfig, WorkflowExtra, WorkflowJob, WorkflowOptions, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, WorkflowTokens, WorkflowTriggers } from "./config-types.js";
|
|
10
10
|
import { Replacements } from "./template.js";
|
|
11
11
|
import { biomeConfigOptionsSchema, biomeConfigSchema } from "./config-schema/biome.js";
|
|
12
12
|
import { catalogsConfigSchema } from "./config-schema/catalogs.js";
|
|
@@ -23,7 +23,7 @@ import { templateKindSchema, templateSourceSchema, templateSourceTypeSchema, tem
|
|
|
23
23
|
import { tsconfigConfigSchema } from "./config-schema/tsconfig.js";
|
|
24
24
|
import { viteConfigSchema } from "./config-schema/vite.js";
|
|
25
25
|
import { watchConfigSchema } from "./config-schema/watch.js";
|
|
26
|
-
import { VendorWorkflowConfig, azureWorkflowSettingSchema, customWorkflowSettingsSchema, githubWorkflowSettingSchema, gitlabWorkflowSettingSchema, isVendorWorkflowConfig, workflowConfigSchema, workflowJobSchema, workflowOptionsSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema } from "./config-schema/workflow.js";
|
|
26
|
+
import { VendorWorkflowConfig, azureWorkflowSettingSchema, customWorkflowSettingsSchema, githubWorkflowSettingSchema, gitlabWorkflowSettingSchema, isVendorWorkflowConfig, workflowConfigSchema, workflowExtraSchema, workflowJobSchema, workflowOptionsSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, workflowTokensSchema, workflowTriggersSchema } from "./config-schema/workflow.js";
|
|
27
27
|
import { configSchema, dbxConfigSchema, toolchainConfigSchema } from "./config-schema/index.js";
|
|
28
28
|
import { Awaitable } from "./types.js";
|
|
29
29
|
//#region packages/shared/src/toolchain.d.ts
|
|
@@ -254,4 +254,4 @@ export interface SyncTask {
|
|
|
254
254
|
run: (ctx: SyncContext) => Awaitable<ManagedFile[] | void>;
|
|
255
255
|
}
|
|
256
256
|
//#endregion
|
|
257
|
-
export { type AzurePipelines, AzureWorkflowSetting, type BiomeConfig, ChangelogBranchesConfig, ChangelogBumpRule, ChangelogBumpRuleMatch, ChangelogCommitFormatConfig, ChangelogCommitlintConfig, ChangelogConfig, ChangelogProviderConfig, ChangelogVersioning, ChangelogVersioningConfig, ChangelogVersioningTarget, ChangelogWorkflowSetting, CiChangelogConfig, ConfigJsonValue, CustomWorkflowSettings, DbxConfigSections, ENABLED_DESCRIPTION, type GitHubWorkflow, GitHubWorkflowSetting, type GitLabCi, GitLabWorkflowSetting, type OxfmtConfig, type OxlintConfig, ProjectType, ToolchainBiomeConfig, ToolchainCatalogsConfig, ToolchainCiConfig, ToolchainConfigSections, ToolchainFmtConfig, ToolchainLintConfig, ToolchainLoggerConfig, ToolchainProjectConfig, ToolchainProvidersConfig, ToolchainRegistryConfig, ToolchainRegistryPolicy, ToolchainTemplateKind, ToolchainTemplateSource, ToolchainTemplateSourceType, ToolchainTemplatesConfig, ToolchainTsconfigConfig, ToolchainTsconfigOverrides, ToolchainViteConfig, ToolchainVscodeSettings, ToolchainWatchConfig, VendorWorkflowConfig, WorkflowJob, WorkflowOptions, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, azureWorkflowSettingSchema, biomeConfigOptionsSchema, biomeConfigSchema, catalogsConfigSchema, changelogBranchesConfigSchema, changelogBreakingCallbackSchema, changelogBreakingSettingSchema, changelogBumpRuleMatchSchema, changelogBumpRuleSchema, changelogCommitFormatConfigSchema, changelogCommitlintConfigSchema, changelogConfigSchema, changelogGroupConfigSchema, changelogGroupsSettingSchema, changelogProviderConfigSchema, changelogProviderSettingSchema, changelogVersioningConfigSchema, changelogVersioningSchema, changelogVersioningTargetSchema, changelogWorkflowSettingSchema, ciChangelogConfigSchema, ciConfigSchema, configJsonValueSchema, configSchema, customWorkflowSettingsSchema, dbxConfigSchema, fmtConfigSchema, githubWorkflowSettingSchema, gitlabWorkflowSettingSchema, isVendorWorkflowConfig, lintConfigSchema, loggerConfigSchema, projectConfigSchema, projectTypeSchema, providersConfigSchema, registryConfigSchema, registryPolicySchema, section, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, toolchainConfigSchema, tsconfigConfigSchema, viteConfigSchema, vscodeSettingsSchema, watchConfigSchema, withEnabled, workflowConfigSchema, workflowJobSchema, workflowOptionsSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema };
|
|
257
|
+
export { type AzurePipelines, AzureWorkflowSetting, type BiomeConfig, ChangelogBranchesConfig, ChangelogBumpRule, ChangelogBumpRuleMatch, ChangelogCommitFormatConfig, ChangelogCommitlintConfig, ChangelogConfig, ChangelogProviderConfig, ChangelogVersioning, ChangelogVersioningConfig, ChangelogVersioningTarget, ChangelogWorkflowSetting, CiChangelogConfig, ConfigJsonValue, CustomWorkflowSettings, DbxConfigSections, ENABLED_DESCRIPTION, type GitHubWorkflow, GitHubWorkflowSetting, type GitLabCi, GitLabWorkflowSetting, type OxfmtConfig, type OxlintConfig, ProjectType, ToolchainBiomeConfig, ToolchainCatalogsConfig, ToolchainCiConfig, ToolchainConfigSections, ToolchainFmtConfig, ToolchainLintConfig, ToolchainLoggerConfig, ToolchainProjectConfig, ToolchainProvidersConfig, ToolchainRegistryConfig, ToolchainRegistryPolicy, ToolchainTemplateKind, ToolchainTemplateSource, ToolchainTemplateSourceType, ToolchainTemplatesConfig, ToolchainTsconfigConfig, ToolchainTsconfigOverrides, ToolchainViteConfig, ToolchainVscodeSettings, ToolchainWatchConfig, VendorWorkflowConfig, WorkflowExtra, WorkflowJob, WorkflowOptions, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, WorkflowTokens, WorkflowTriggers, azureWorkflowSettingSchema, biomeConfigOptionsSchema, biomeConfigSchema, catalogsConfigSchema, changelogBranchesConfigSchema, changelogBreakingCallbackSchema, changelogBreakingSettingSchema, changelogBumpRuleMatchSchema, changelogBumpRuleSchema, changelogCommitFormatConfigSchema, changelogCommitlintConfigSchema, changelogConfigSchema, changelogGroupConfigSchema, changelogGroupsSettingSchema, changelogProviderConfigSchema, changelogProviderSettingSchema, changelogVersioningConfigSchema, changelogVersioningSchema, changelogVersioningTargetSchema, changelogWorkflowSettingSchema, ciChangelogConfigSchema, ciConfigSchema, configJsonValueSchema, configSchema, customWorkflowSettingsSchema, dbxConfigSchema, fmtConfigSchema, githubWorkflowSettingSchema, gitlabWorkflowSettingSchema, isVendorWorkflowConfig, lintConfigSchema, loggerConfigSchema, projectConfigSchema, projectTypeSchema, providersConfigSchema, registryConfigSchema, registryPolicySchema, section, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, toolchainConfigSchema, tsconfigConfigSchema, viteConfigSchema, vscodeSettingsSchema, watchConfigSchema, withEnabled, workflowConfigSchema, workflowExtraSchema, workflowJobSchema, workflowOptionsSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, workflowTokensSchema, workflowTriggersSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{deepMerge as e,isPlainObject as t}from"./object-utils.js";import{configJsonValueSchema as n}from"./config-schema/json.js";import{ENABLED_DESCRIPTION as r,section as i,withEnabled as a}from"./config-schema/meta.js";import{azureWorkflowSettingSchema as ee,customWorkflowSettingsSchema as te,githubWorkflowSettingSchema as ne,gitlabWorkflowSettingSchema as re,isVendorWorkflowConfig as o,workflowConfigSchema as
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{deepMerge as e,isPlainObject as t}from"./object-utils.js";import{configJsonValueSchema as n}from"./config-schema/json.js";import{ENABLED_DESCRIPTION as r,section as i,withEnabled as a}from"./config-schema/meta.js";import{azureWorkflowSettingSchema as ee,customWorkflowSettingsSchema as te,githubWorkflowSettingSchema as ne,gitlabWorkflowSettingSchema as re,isVendorWorkflowConfig as o,workflowConfigSchema as ie,workflowExtraSchema as ae,workflowJobSchema as oe,workflowOptionsSchema as se,workflowSettingSchema as ce,workflowStepSchema as le,workflowStepsConfigSchema as ue,workflowTokensSchema as de,workflowTriggersSchema as fe}from"./config-schema/workflow.js";import{biomeConfigOptionsSchema as pe,biomeConfigSchema as s}from"./config-schema/biome.js";import{catalogsConfigSchema as c}from"./config-schema/catalogs.js";import{changelogBranchesConfigSchema as l,changelogBreakingCallbackSchema as u,changelogBreakingSettingSchema as d,changelogBumpRuleMatchSchema as f,changelogBumpRuleSchema as p,changelogCommitFormatConfigSchema as m,changelogCommitlintConfigSchema as h,changelogConfigSchema as g,changelogGroupConfigSchema as _,changelogGroupsSettingSchema as v,changelogProviderConfigSchema as y,changelogProviderSettingSchema as b,changelogVersioningConfigSchema as x,changelogVersioningSchema as S,changelogVersioningTargetSchema as C,changelogWorkflowSettingSchema as w,ciChangelogConfigSchema as T}from"./config-schema/changelog.js";import{ciConfigSchema as E}from"./config-schema/ci.js";import{fmtConfigSchema as D,lintConfigSchema as O,vscodeSettingsSchema as k}from"./config-schema/format.js";import{loggerConfigSchema as A}from"./config-schema/logger.js";import{projectConfigSchema as j,projectTypeSchema as M}from"./config-schema/project.js";import{providersConfigSchema as N}from"./config-schema/providers.js";import{registryConfigSchema as P,registryPolicySchema as me}from"./config-schema/registry.js";import{templateKindSchema as F,templateSourceSchema as I,templateSourceTypeSchema as L,templatesConfigSchema as R}from"./config-schema/templates.js";import{tsconfigConfigSchema as z}from"./config-schema/tsconfig.js";import{viteConfigSchema as he}from"./config-schema/vite.js";import{watchConfigSchema as ge}from"./config-schema/watch.js";import{configSchema as _e,dbxConfigSchema as ve,toolchainConfigSchema as ye}from"./config-schema/index.js";function be(e){return e}function B(e){return e===void 0?!1:typeof e==`boolean`?e:e.enabled!==!1}function V(e){return e!==void 0&&typeof e==`object`?e:void 0}const xe=[`dbx.config.ts`,`dbx.config.mts`,`dbx.config.js`,`dbx.config.mjs`,`dbx.config.cjs`,`dbx.config.json`];function H(e){if(!e)return;let t=e.match(/github\.com[/:]([^/]+)\/([^/.]+?)(?:\.git)?$/);return t?.[1]&&t[2]?`${t[1]}/${t[2]}`:void 0}function U(e){return e===void 0?[]:Array.isArray(e)?e:[e]}function W(e={}){return B(e.ci)?V(e.ci):void 0}function G(t={}){let n=V(t.changelog),r=n&&B(n)?n:void 0,i=W(t)?.changelog;if(i===!1)return;if(i===void 0||i===!0||typeof i==`string`||o(i))return r;let a=i;if(B(a))return r?e(r,a):a}const K={yarn:`4.17.1`,pnpm:`10.11.1`,npm:`11.19.0`,bun:`1.3.0`},q=[`oxc`,`biome`,`prettier`,`dprint`],J=[`oxc`,`biome`,`eslint`];function Y(e){return B(e)?V(e):void 0}function X(e={}){let t=Y(e.fmt)??{},n=Y(e.vite),r=/* @__PURE__ */ new Set;return n?.fmt!==void 0&&n.fmt!==!1&&r.add(`oxc`),t.oxc!==void 0&&t.oxc!==!1&&r.add(`oxc`),t.biome!==void 0&&t.biome!==!1&&r.add(`biome`),t.prettier!==void 0&&t.prettier!==!1&&r.add(`prettier`),t.dprint!==void 0&&t.dprint!==!1&&r.add(`dprint`),q.filter(e=>r.has(e))}function Z(e={}){let t=Y(e.lint)??{},n=Y(e.vite),r=/* @__PURE__ */ new Set;return n?.lint!==void 0&&n.lint!==!1&&r.add(`oxc`),t.oxc!==void 0&&t.oxc!==!1&&r.add(`oxc`),t.biome!==void 0&&t.biome!==!1&&r.add(`biome`),t.eslint!==void 0&&t.eslint!==!1&&r.add(`eslint`),J.filter(e=>r.has(e))}function Se(e={}){return X(e)[0]}function Ce(e={}){return Z(e)[0]}function we(n={}){let r=Y(n.fmt)?.oxc,i=Y(n.vite)?.fmt;return i===void 0?r:i===!1?!1:i===!0?r??!0:r===void 0?i:t(r)&&t(i)?e(r,i):i}function Q(n={}){let r=Y(n.lint)?.oxc,i=Y(n.vite)?.lint;return i===void 0?r:i===!1?!1:i===!0?r??!0:r===void 0?i:t(r)&&t(i)?e(r,i):i}function Te(e={}){let t=W(e)?.changelog;return t===void 0?!1:typeof t==`boolean`?t:typeof t==`string`?t.trim().length>0:B(t)}function Ee(e){let t=e?.commitlint;return t===void 0?!0:typeof t==`boolean`?t:t.enabled!==!1}function $(e){let t=e?.branches??{},n=U(t.main);n.length===0&&n.push(`main`);let r=U(t.dev);return{main:n,dev:r.length>0?r:n}}function De(e={}){let t=e.project??{},n=$(G(e)??{}),r=t.name??`app`,i=t.packageManager??`yarn`,a=t.packageManagerVersion??K[i]??`4.17.1`;return{name:r,scope:t.scope??``,author:t.author??``,license:t.license??`MIT`,homepage:t.homepage??``,repo:t.repo??``,repoSlug:H(t.repo)??``,description:t.description??``,nodeVersion:t.nodeVersion??`22`,packageManager:i,yarnVersion:a,packageManagerVersion:a,mainBranch:n.main[0]??`main`,devBranch:n.dev[0]??`main`}}export{xe as CONFIG_FILE_NAMES,K as DEFAULT_PACKAGE_MANAGER_VERSIONS,r as ENABLED_DESCRIPTION,q as FORMATTER_PRECEDENCE,J as LINTER_PRECEDENCE,ee as azureWorkflowSettingSchema,pe as biomeConfigOptionsSchema,s as biomeConfigSchema,c as catalogsConfigSchema,l as changelogBranchesConfigSchema,u as changelogBreakingCallbackSchema,d as changelogBreakingSettingSchema,f as changelogBumpRuleMatchSchema,p as changelogBumpRuleSchema,m as changelogCommitFormatConfigSchema,h as changelogCommitlintConfigSchema,g as changelogConfigSchema,_ as changelogGroupConfigSchema,v as changelogGroupsSettingSchema,y as changelogProviderConfigSchema,b as changelogProviderSettingSchema,Te as changelogSectionEnabled,x as changelogVersioningConfigSchema,S as changelogVersioningSchema,C as changelogVersioningTargetSchema,w as changelogWorkflowSettingSchema,T as ciChangelogConfigSchema,E as ciConfigSchema,n as configJsonValueSchema,_e as configSchema,te as customWorkflowSettingsSchema,ve as dbxConfigSchema,be as defineConfig,D as fmtConfigSchema,ne as githubWorkflowSettingSchema,re as gitlabWorkflowSettingSchema,o as isVendorWorkflowConfig,O as lintConfigSchema,A as loggerConfigSchema,j as projectConfigSchema,M as projectTypeSchema,N as providersConfigSchema,P as registryConfigSchema,me as registryPolicySchema,H as repoSlugFromUrl,$ as resolveChangelogBranches,G as resolveChangelogConfig,W as resolveCiConfig,Ee as resolveCommitlintEnabled,Se as resolveFmtTool,X as resolveFmtTools,Ce as resolveLintTool,Z as resolveLintTools,we as resolveOxcFmtConfig,Q as resolveOxcLintConfig,De as resolveTokens,i as section,V as sectionConfig,B as sectionEnabled,F as templateKindSchema,I as templateSourceSchema,L as templateSourceTypeSchema,R as templatesConfigSchema,ye as toolchainConfigSchema,z as tsconfigConfigSchema,he as viteConfigSchema,k as vscodeSettingsSchema,ge as watchConfigSchema,a as withEnabled,ie as workflowConfigSchema,ae as workflowExtraSchema,oe as workflowJobSchema,se as workflowOptionsSchema,ce as workflowSettingSchema,le as workflowStepSchema,ue as workflowStepsConfigSchema,de as workflowTokensSchema,fe as workflowTriggersSchema};
|
|
@@ -7,20 +7,45 @@ import { OxlintConfig } from "./config-schema/generated/oxlint-config.js";
|
|
|
7
7
|
export type ToolchainOxfmtConfig = OxfmtConfig;
|
|
8
8
|
/** The Oxlint options accepted by Vite+ (`toolchain.vite.lint`). */
|
|
9
9
|
export type ToolchainOxlintConfig = OxlintConfig;
|
|
10
|
+
/** The object form of Oxfmt's `sortImports` option. */
|
|
11
|
+
export type FmtSortImports = Exclude<NonNullable<OxfmtConfig['sortImports']>, boolean>;
|
|
12
|
+
/** One custom `sortImports` group. */
|
|
13
|
+
export type FmtCustomGroup = NonNullable<FmtSortImports['customGroups']>[number];
|
|
14
|
+
/** One entry in `sortImports.groups`. */
|
|
15
|
+
export type FmtSortGroup = NonNullable<FmtSortImports['groups']>[number];
|
|
16
|
+
/** The group name used for a project's own workspace packages. */
|
|
17
|
+
export declare const DEFAULT_FMT_SORT_GROUP = "workspace";
|
|
10
18
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* `
|
|
19
|
+
* The default import groups: builtins, external packages, source-internal
|
|
20
|
+
* aliases, relatives, styles and unknowns. The `workspace` group is inserted
|
|
21
|
+
* after `external` by {@link applyFmtCustomGroups}.
|
|
14
22
|
*/
|
|
15
|
-
export declare const
|
|
23
|
+
export declare const DEFAULT_FMT_SORT_GROUPS: FmtSortGroup[];
|
|
24
|
+
/** The default Oxfmt `sortImports` options (without resolved custom groups). */
|
|
25
|
+
export declare const DEFAULT_FMT_SORT_IMPORTS: FmtSortImports;
|
|
16
26
|
/**
|
|
17
27
|
* The Oxfmt options used when `vite.fmt` is `true`, and the base an options
|
|
18
|
-
* object is merged over.
|
|
19
|
-
* is
|
|
28
|
+
* object is merged over. Import sorting is enabled by default; the workspace
|
|
29
|
+
* custom group is filled in from the project graph by `resolveFmtCustomGroups`.
|
|
20
30
|
*/
|
|
21
31
|
export declare const DEFAULT_FMT_RULES: ToolchainOxfmtConfig;
|
|
22
|
-
/**
|
|
23
|
-
export
|
|
32
|
+
/** The `name`/`scope` fields needed to build a workspace custom group. */
|
|
33
|
+
export interface FmtProjectIdentity {
|
|
34
|
+
name?: string;
|
|
35
|
+
scope?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Build the custom `sortImports` group for a set of projects. Scopes become
|
|
39
|
+
* `@scope/**` patterns; unscoped and scoped project names also match the bare
|
|
40
|
+
* name and its subpaths, so workspace imports sort together.
|
|
41
|
+
*/
|
|
42
|
+
export declare function fmtCustomGroupsForProjects(projects: Iterable<FmtProjectIdentity | undefined | null>): FmtCustomGroup[];
|
|
43
|
+
/**
|
|
44
|
+
* Add the resolved workspace custom groups to an Oxfmt config, preserving any
|
|
45
|
+
* groups the consumer already defined. `sortImports: false` is respected; when
|
|
46
|
+
* `sortImports` is absent the config is left alone.
|
|
47
|
+
*/
|
|
48
|
+
export declare function applyFmtCustomGroups(fmt: ToolchainOxfmtConfig, customGroups: FmtCustomGroup[]): ToolchainOxfmtConfig;
|
|
24
49
|
/**
|
|
25
50
|
* The Oxlint options used when `vite.lint` is `true`, and the base an options
|
|
26
51
|
* object is merged over. Framework/a11y rules are disabled by default (opt in
|