@deltabox/toolchain 2.3.2 → 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.
Files changed (61) hide show
  1. package/CHANGELOG.md +55 -6
  2. package/dist/core.d.ts +2 -1
  3. package/dist/core.js +1 -1
  4. package/dist/index.d.ts +7 -6
  5. package/dist/index.js +1 -1
  6. package/dist/migrate.d.ts +3 -3
  7. package/dist/migrate.js +1 -1
  8. package/dist/package.js +1 -1
  9. package/dist/packages/changelog/src/workflows.js +1 -1
  10. package/dist/packages/core/src/fmt-groups.d.ts +32 -0
  11. package/dist/packages/core/src/fmt-groups.js +1 -0
  12. package/dist/packages/core/src/index.d.ts +3 -2
  13. package/dist/packages/core/src/index.js +1 -1
  14. package/dist/packages/core/src/select.d.ts +3 -0
  15. package/dist/packages/core/src/select.js +1 -1
  16. package/dist/packages/core/src/sync.js +1 -1
  17. package/dist/packages/migrate/src/cli/index.js +1 -1
  18. package/dist/packages/migrate/src/index.d.ts +3 -3
  19. package/dist/packages/migrate/src/index.js +1 -1
  20. package/dist/packages/migrate/src/oxc.js +1 -1
  21. package/dist/packages/migrate/src/types.d.ts +3 -2
  22. package/dist/packages/migrate/src/vite-target.d.ts +7 -0
  23. package/dist/packages/migrate/src/vite-target.js +2 -2
  24. package/dist/packages/migrate/src/vite.d.ts +30 -1
  25. package/dist/packages/migrate/src/vite.js +10 -8
  26. package/dist/packages/project/src/cli/index.js +1 -1
  27. package/dist/packages/project/src/config.d.ts +20 -5
  28. package/dist/packages/project/src/config.js +1 -1
  29. package/dist/packages/project/src/index.d.ts +3 -3
  30. package/dist/packages/project/src/index.js +1 -1
  31. package/dist/packages/project/src/typescript.d.ts +26 -0
  32. package/dist/packages/project/src/typescript.js +17 -10
  33. package/dist/packages/shared/src/config-schema/changelog.d.ts +572 -10
  34. package/dist/packages/shared/src/config-schema/ci.d.ts +1746 -60
  35. package/dist/packages/shared/src/config-schema/index.d.ts +6090 -1032
  36. package/dist/packages/shared/src/config-schema/index.js +1 -1
  37. package/dist/packages/shared/src/config-schema/workflow.d.ts +3825 -481
  38. package/dist/packages/shared/src/config-schema/workflow.js +1 -1
  39. package/dist/packages/shared/src/config-types.d.ts +123 -15
  40. package/dist/packages/shared/src/ignore.d.ts +8 -0
  41. package/dist/packages/shared/src/ignore.js +1 -1
  42. package/dist/packages/shared/src/index.d.ts +7 -7
  43. package/dist/packages/shared/src/index.js +1 -1
  44. package/dist/packages/shared/src/string-utils.d.ts +9 -2
  45. package/dist/packages/shared/src/string-utils.js +2 -2
  46. package/dist/packages/shared/src/toolchain.d.ts +3 -3
  47. package/dist/packages/shared/src/toolchain.js +1 -1
  48. package/dist/packages/shared/src/vite-defaults.d.ts +33 -8
  49. package/dist/packages/shared/src/vite-defaults.js +1 -1
  50. package/dist/packages/vite/src/index.d.ts +3 -1
  51. package/dist/packages/vite/src/index.js +1 -1
  52. package/dist/packages/vite/src/resolve.js +1 -1
  53. package/dist/packages/vite/src/sync.js +3 -3
  54. package/dist/project.d.ts +2 -2
  55. package/dist/project.js +1 -1
  56. package/dist/shared.d.ts +6 -6
  57. package/dist/shared.js +1 -1
  58. package/dist/tooling.js +1 -1
  59. package/dist/vite.d.ts +2 -1
  60. package/dist/vite.js +1 -1
  61. package/package.json +12 -12
package/CHANGELOG.md CHANGED
@@ -1,17 +1,66 @@
1
1
  # Changelog
2
2
 
3
- ## 2.3.2 (November 2026)
3
+ ## 2.4.0 (November 2026)
4
4
 
5
5
  <!-- release:start -->
6
6
 
7
- ### Bug fixes
7
+ ### New features
8
+ #### Shared
9
+ - Improve workflow config autocomplete ([#5babd18](https://github.com/deltabox-studio/toolchain/commit/5babd18) by [T0chi](https://github.com/T0chi))
10
+ - Add typed WorkflowTriggers, WorkflowExtra and WorkflowTokens shapes so known workflow keys are suggested, and regenerate the config types, schema and reference.
11
+ - Expose formatter and linter ignore defaults ([#5f2c8b1](https://github.com/deltabox-studio/toolchain/commit/5f2c8b1) by [T0chi](https://github.com/T0chi))
12
+ - Export DEFAULT_FMT_IGNORE_PATTERNS and DEFAULT_LINT_IGNORE_PATTERNS alongside DEFAULT_IGNORE_PATTERNS, and document how to extend them.
13
+ #### Project
14
+ - Add config generation options and migration routing ([#c658b0d](https://github.com/deltabox-studio/toolchain/commit/c658b0d) by [T0chi](https://github.com/T0chi))
15
+ - Support --skip-config, --language and --config-extension, write the project graph before configs, generate TS/JS configs, and route migrated fmt/lint into toolchain.vite only when the existing Vite config owns them.
8
16
  #### Vscode
9
- - Load the tsdown base config from source ([#0537c62](https://github.com/deltabox-studio/toolchain/commit/0537c62) by [T0chi](https://github.com/T0chi))
10
- - The VS Code integration job builds the extension after only \yarn install\, so the private \@deltabox/toolchain-tsdown\ dist does not exist and unrun failed to load the config. Import baseTsdownConfig\ from the workspace source instead (as the root tsdown config already does).
17
+ - Add tooling actions and config generation ([#31da418](https://github.com/deltabox-studio/toolchain/commit/31da418) by [T0chi](https://github.com/T0chi))
18
+ - Add the format import-group setting, migrate/global Home actions, and config generation prompts (TS/JS, graph-only) that also work from the Command Palette.
19
+ #### Core
20
+ - Add import sorting defaults and workspace groups ([#1c5f5a3](https://github.com/deltabox-studio/toolchain/commit/1c5f5a3) by [T0chi](https://github.com/T0chi))
21
+ - Enable sortImports by default, resolve a workspace custom group from the project graph, and inject it into resolveVite, vite sync and tooling normalization.
22
+ ### Bug fixes
23
+ #### Shared
24
+ - Repair PowerShell backtick artifacts in changelogs ([#61ced92](https://github.com/deltabox-studio/toolchain/commit/61ced92) by [T0chi](https://github.com/T0chi))
25
+ - Repair paired \\code\\ and lone trailing identifier backslashes back to inline code while leaving paths and regexes alone, and correct the affected 2.3.1-2.3.3 entries.
26
+ ### Documentation
27
+ - Regenerate llms docs ([#9b5869d](https://github.com/deltabox-studio/toolchain/commit/9b5869d) by [T0chi](https://github.com/T0chi))
28
+ - Refresh the generated llms.txt and llms-full.txt bundles after the documentation changes.
29
+ ### Chores
30
+ - Regenerate managed configs for import sorting ([#ce7a2e6](https://github.com/deltabox-studio/toolchain/commit/ce7a2e6) by [T0chi](https://github.com/T0chi))
31
+ - Regenerate .oxfmtrc.json and every workspace vite.config.ts with the resolved sortImports workspace group.
32
+ #### Deps
33
+ - Update lockfile for @clack/prompts ([#52c08df](https://github.com/deltabox-studio/toolchain/commit/52c08df) by [T0chi](https://github.com/T0chi))
34
+ - Record the new project workspace dependency so immutable CI installs no longer fail.
11
35
 
12
36
  <!-- release:end -->
13
37
 
14
38
 
39
+ ## 2.3.4 (November 2026)
40
+
41
+ ### Bug fixes
42
+ #### Ci
43
+ - Cache the VS Code integration test download ([#4941b90](https://github.com/deltabox-studio/toolchain/commit/4941b90) by [T0chi](https://github.com/T0chi))
44
+ - The integration job downloaded the ~361 MB VS Code stable build on every run. Resolve the exact stable version, cache only that version's unpacked directory, and key the cache by it so a new stable release is downloaded and saved under a fresh key.
45
+
46
+ ## 2.3.3 (November 2026)
47
+
48
+ ### Bug fixes
49
+ #### Ci
50
+ - Disable setup-node auto-cache so Corepack can enable Yarn ([#571f896](https://github.com/deltabox-studio/toolchain/commit/571f896) by [T0chi](https://github.com/T0chi))
51
+ - actions/setup-node@v5 now auto-caches from the packageManager field and runs `yarn cache dir` before the Enable Corepack step, so every job failed with the global Yarn 1.22.22 error. Set package-manager-cache: false on every setup-node step; Corepack still enables the pinned Yarn/pnpm before install.
52
+ ### Chores
53
+ #### Ci
54
+ - Bump checkout and setup-node actions to v5 ([#485f29d](https://github.com/deltabox-studio/toolchain/commit/485f29d) by [T0chi](https://github.com/T0chi))
55
+ - The runner warns that actions/checkout@v4 and actions/setup-node@v4 target Node 20 and are forced onto Node 24. Bump the generated workflows (and the dogfood config) to v5.
56
+
57
+ ## 2.3.2 (November 2026)
58
+
59
+ ### Bug fixes
60
+ #### Vscode
61
+ - Load the tsdown base config from source ([#0537c62](https://github.com/deltabox-studio/toolchain/commit/0537c62) by [T0chi](https://github.com/T0chi))
62
+ - The VS Code integration job builds the extension after only `yarn install`, so the private `@deltabox/toolchain-tsdown` dist does not exist and unrun failed to load the config. Import `baseTsdownConfig` from the workspace source instead (as the root tsdown config already does).
63
+
15
64
  ## 2.3.1 (November 2026)
16
65
 
17
66
  ### Bug fixes
@@ -26,9 +75,9 @@
26
75
  - A shallow clone or no-git checkout cannot resolve every referenced commit, so valid hashes were left unlinked. Fall back to treating letter-containing refs as commits when history is incomplete, and mock the numeric-hash fixture so the tests do not depend on the checkout's history.
27
76
  #### Config
28
77
  - Contain generator output paths and render object metadata ([#fe94053](https://github.com/deltabox-studio/toolchain/commit/fe94053) by [T0chi](https://github.com/T0chi))
29
- - Scope names and file options were used as paths directly, so a \../\ value could write outside the output directory. Resolve every generated file through a containment check. Also render an object node's own description/annotations before its child fields in per-scope markdown.
78
+ - Scope names and file options were used as paths directly, so a `../` value could write outside the output directory. Resolve every generated file through a containment check. Also render an object node's own description/annotations before its child fields in per-scope markdown.
30
79
  - Derive the CLI reference from the registered commands ([#95dc39f](https://github.com/deltabox-studio/toolchain/commit/95dc39f) by [T0chi](https://github.com/T0chi))
31
- - The docs generator kept its own command list, so a new builtin could be missing from the generated reference. Use builtinCommands\ (the CLI's source of truth) and mark registry-dependent provider passthroughs as hidden.
80
+ - The docs generator kept its own command list, so a new builtin could be missing from the generated reference. Use `builtinCommands` (the CLI's source of truth) and mark registry-dependent provider passthroughs as hidden.
32
81
  #### Core
33
82
  - Preserve .vscode settings comments when adding keys ([#9b4a105](https://github.com/deltabox-studio/toolchain/commit/9b4a105) by [T0chi](https://github.com/T0chi))
34
83
  - Merging VS Code settings parsed and reserialized the file, dropping its JSONC comments. Insert missing keys in place (preserving layout) and fall back to a full rewrite only when an existing value or array must change.
package/dist/core.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
3
  import { editorConfigSyncTask, toolingConfigTask } from "./packages/core/src/editor-config.js";
4
+ import { FORMAT_IMPORT_GROUP_DEFAULTS_ENV, FORMAT_IMPORT_GROUP_DEFAULTS_SETTING, ResolveFmtCustomGroupsInput, ResolveFmtCustomGroupsOptions, resolveFmtCustomGroups } from "./packages/core/src/fmt-groups.js";
4
5
  import { DBX_GITIGNORE_BLOCK, ensureDbxGitignore } from "./packages/core/src/gitignore.js";
5
6
  import { BuildProjectGraphOptions, IGNORED_DIRS, PackageManager, ProjectGraph, ProjectNode, buildProjectGraph, detectPackageManager, orderProjects, projectGraphPath, readProjectGraph, writeProjectGraph } from "./packages/core/src/graph.js";
6
7
  import { LoadToolchainConfigOptions, LoadedConfig, findConfigFile, findParentConfigFile, loadToolchainConfig, mergeToolchainConfig } from "./packages/core/src/loader.js";
@@ -13,4 +14,4 @@ import { RemovedFile, RunSyncOptions, SyncResult, runSync } from "./packages/cor
13
14
  import { VscodeSyncOptions, vscodeSyncTask } from "./packages/core/src/vscode.js";
14
15
  import { RunWatchOptions, resolveWatchGlobs, runWatch } from "./packages/core/src/watch.js";
15
16
  import "./packages/core/src/index.js";
16
- export { BuildProjectGraphOptions, DBX_GITIGNORE_BLOCK, FileOrigin, IGNORED_DIRS, LoadToolchainConfigOptions, LoadedConfig, MANIFEST_DIR, MANIFEST_FILE, Manifest, PackageManager, ProjectGraph, ProjectNode, ProviderRegistryPath, RemovedFile, ResetProjectsOptions, ResetProjectsResult, ResetRestore, ResetSelectors, ResetToolchainOptions, ResetToolchainResult, RunSyncOptions, RunWatchOptions, SelectProjectsOptions, SelectedProject, SyncResult, TIMESTAMPS_FILE, TsconfigFileNames, VscodeSyncOptions, addGlobalProviderRegistry, addProjectProviderRegistry, buildProjectGraph, defaultGlobalProvidersDir, detectPackageManager, detectProjectType, editorConfigSyncTask, ensureDbxGitignore, findConfigFile, findParentConfigFile, globalProviderRegistryPath, legacyProviderRegistryPath, loadToolchainConfig, mergeToolchainConfig, orderProjects, projectGraphPath, providerRegistryPath, providerRegistryPaths, readAllProviders, readAllProvidersSync, readGlobalProviders, readManifest, readProjectGraph, readProviderRegistry, readSyncedAt, removeGlobalProviderRegistry, removeProjectProviderRegistry, resetProjects, resetToolchain, resolveProjectType, resolveWatchGlobs, runSync, runWatch, selectProjects, setGlobalProviderRegistries, setProjectProviderRegistries, toolingConfigTask, vscodeSyncTask, writeGlobalProviders, writeManifest, writeProjectGraph, writeProviderRegistry };
17
+ export { BuildProjectGraphOptions, DBX_GITIGNORE_BLOCK, FORMAT_IMPORT_GROUP_DEFAULTS_ENV, FORMAT_IMPORT_GROUP_DEFAULTS_SETTING, FileOrigin, IGNORED_DIRS, LoadToolchainConfigOptions, LoadedConfig, MANIFEST_DIR, MANIFEST_FILE, Manifest, PackageManager, ProjectGraph, ProjectNode, ProviderRegistryPath, RemovedFile, ResetProjectsOptions, ResetProjectsResult, ResetRestore, ResetSelectors, ResetToolchainOptions, ResetToolchainResult, ResolveFmtCustomGroupsInput, ResolveFmtCustomGroupsOptions, RunSyncOptions, RunWatchOptions, SelectProjectsOptions, SelectedProject, SyncResult, TIMESTAMPS_FILE, TsconfigFileNames, VscodeSyncOptions, addGlobalProviderRegistry, addProjectProviderRegistry, buildProjectGraph, defaultGlobalProvidersDir, detectPackageManager, detectProjectType, editorConfigSyncTask, ensureDbxGitignore, findConfigFile, findParentConfigFile, globalProviderRegistryPath, legacyProviderRegistryPath, loadToolchainConfig, mergeToolchainConfig, orderProjects, projectGraphPath, providerRegistryPath, providerRegistryPaths, readAllProviders, readAllProvidersSync, readGlobalProviders, readManifest, readProjectGraph, readProviderRegistry, readSyncedAt, removeGlobalProviderRegistry, removeProjectProviderRegistry, resetProjects, resetToolchain, resolveFmtCustomGroups, resolveProjectType, resolveWatchGlobs, runSync, runWatch, selectProjects, setGlobalProviderRegistries, setProjectProviderRegistries, toolingConfigTask, vscodeSyncTask, writeGlobalProviders, writeManifest, writeProjectGraph, writeProviderRegistry };
package/dist/core.js CHANGED
@@ -1 +1 @@
1
- import"node:path";import"node:url";import.meta.url;import{editorConfigSyncTask as e,toolingConfigTask as t}from"./packages/core/src/editor-config.js";import{DBX_GITIGNORE_BLOCK as n,ensureDbxGitignore as r}from"./packages/core/src/gitignore.js";import{detectProjectType as i,resolveProjectType as a}from"./packages/core/src/project-type.js";import{findConfigFile as o,findParentConfigFile as s,loadToolchainConfig as c,mergeToolchainConfig as l}from"./packages/core/src/loader.js";import{IGNORED_DIRS as u,buildProjectGraph as d,detectPackageManager as f,orderProjects as p,projectGraphPath as m,readProjectGraph as h,writeProjectGraph as g}from"./packages/core/src/graph.js";import{MANIFEST_DIR as _,MANIFEST_FILE as v,TIMESTAMPS_FILE as y,readManifest as b,readSyncedAt as x,writeManifest as S}from"./packages/core/src/manifest.js";import{addGlobalProviderRegistry as C,addProjectProviderRegistry as w,defaultGlobalProvidersDir as T,globalProviderRegistryPath as E,legacyProviderRegistryPath as D,providerRegistryPath as O,providerRegistryPaths as k,readAllProviders as A,readAllProvidersSync as j,readGlobalProviders as M,readProviderRegistry as N,removeGlobalProviderRegistry as P,removeProjectProviderRegistry as F,setGlobalProviderRegistries as I,setProjectProviderRegistries as L,writeGlobalProviders as R,writeProviderRegistry as z}from"./packages/core/src/provider-registry.js";import{selectProjects as B}from"./packages/core/src/select.js";import{resetProjects as V,resetToolchain as H}from"./packages/core/src/reset.js";import{runSync as U}from"./packages/core/src/sync.js";import{vscodeSyncTask as W}from"./packages/core/src/vscode.js";import{resolveWatchGlobs as G,runWatch as K}from"./packages/core/src/watch.js";import"./packages/core/src/index.js";export{n as DBX_GITIGNORE_BLOCK,u as IGNORED_DIRS,_ as MANIFEST_DIR,v as MANIFEST_FILE,y as TIMESTAMPS_FILE,C as addGlobalProviderRegistry,w as addProjectProviderRegistry,d as buildProjectGraph,T as defaultGlobalProvidersDir,f as detectPackageManager,i as detectProjectType,e as editorConfigSyncTask,r as ensureDbxGitignore,o as findConfigFile,s as findParentConfigFile,E as globalProviderRegistryPath,D as legacyProviderRegistryPath,c as loadToolchainConfig,l as mergeToolchainConfig,p as orderProjects,m as projectGraphPath,O as providerRegistryPath,k as providerRegistryPaths,A as readAllProviders,j as readAllProvidersSync,M as readGlobalProviders,b as readManifest,h as readProjectGraph,N as readProviderRegistry,x as readSyncedAt,P as removeGlobalProviderRegistry,F as removeProjectProviderRegistry,V as resetProjects,H as resetToolchain,a as resolveProjectType,G as resolveWatchGlobs,U as runSync,K as runWatch,B as selectProjects,I as setGlobalProviderRegistries,L as setProjectProviderRegistries,t as toolingConfigTask,W as vscodeSyncTask,R as writeGlobalProviders,S as writeManifest,g as writeProjectGraph,z as writeProviderRegistry};
1
+ import"node:path";import"node:url";import.meta.url;import{editorConfigSyncTask as e,toolingConfigTask as t}from"./packages/core/src/editor-config.js";import{detectProjectType as n,resolveProjectType as r}from"./packages/core/src/project-type.js";import{findConfigFile as i,findParentConfigFile as a,loadToolchainConfig as o,mergeToolchainConfig as s}from"./packages/core/src/loader.js";import{IGNORED_DIRS as c,buildProjectGraph as l,detectPackageManager as u,orderProjects as d,projectGraphPath as f,readProjectGraph as p,writeProjectGraph as m}from"./packages/core/src/graph.js";import{FORMAT_IMPORT_GROUP_DEFAULTS_ENV as h,FORMAT_IMPORT_GROUP_DEFAULTS_SETTING as g,resolveFmtCustomGroups as _}from"./packages/core/src/fmt-groups.js";import{DBX_GITIGNORE_BLOCK as v,ensureDbxGitignore as y}from"./packages/core/src/gitignore.js";import{MANIFEST_DIR as b,MANIFEST_FILE as x,TIMESTAMPS_FILE as S,readManifest as C,readSyncedAt as w,writeManifest as T}from"./packages/core/src/manifest.js";import{addGlobalProviderRegistry as E,addProjectProviderRegistry as D,defaultGlobalProvidersDir as O,globalProviderRegistryPath as k,legacyProviderRegistryPath as A,providerRegistryPath as j,providerRegistryPaths as M,readAllProviders as N,readAllProvidersSync as P,readGlobalProviders as F,readProviderRegistry as I,removeGlobalProviderRegistry as L,removeProjectProviderRegistry as R,setGlobalProviderRegistries as z,setProjectProviderRegistries as B,writeGlobalProviders as V,writeProviderRegistry as H}from"./packages/core/src/provider-registry.js";import{selectProjects as U}from"./packages/core/src/select.js";import{resetProjects as W,resetToolchain as G}from"./packages/core/src/reset.js";import{runSync as K}from"./packages/core/src/sync.js";import{vscodeSyncTask as q}from"./packages/core/src/vscode.js";import{resolveWatchGlobs as J,runWatch as Y}from"./packages/core/src/watch.js";import"./packages/core/src/index.js";export{v as DBX_GITIGNORE_BLOCK,h as FORMAT_IMPORT_GROUP_DEFAULTS_ENV,g as FORMAT_IMPORT_GROUP_DEFAULTS_SETTING,c as IGNORED_DIRS,b as MANIFEST_DIR,x as MANIFEST_FILE,S as TIMESTAMPS_FILE,E as addGlobalProviderRegistry,D as addProjectProviderRegistry,l as buildProjectGraph,O as defaultGlobalProvidersDir,u as detectPackageManager,n as detectProjectType,e as editorConfigSyncTask,y as ensureDbxGitignore,i as findConfigFile,a as findParentConfigFile,k as globalProviderRegistryPath,A as legacyProviderRegistryPath,o as loadToolchainConfig,s as mergeToolchainConfig,d as orderProjects,f as projectGraphPath,j as providerRegistryPath,M as providerRegistryPaths,N as readAllProviders,P as readAllProvidersSync,F as readGlobalProviders,C as readManifest,p as readProjectGraph,I as readProviderRegistry,w as readSyncedAt,L as removeGlobalProviderRegistry,R as removeProjectProviderRegistry,W as resetProjects,G as resetToolchain,_ as resolveFmtCustomGroups,r as resolveProjectType,J as resolveWatchGlobs,K as runSync,Y as runWatch,U as selectProjects,z as setGlobalProviderRegistries,B as setProjectProviderRegistries,t as toolingConfigTask,q as vscodeSyncTask,V as writeGlobalProviders,T as writeManifest,m as writeProjectGraph,H as writeProviderRegistry};
package/dist/index.d.ts CHANGED
@@ -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 "./packages/shared/src/changelog-callbacks.js";
7
7
  import { ChangelogGroupConfig, ChangelogGroupContext, ChangelogGroupEntry, ChangelogGroupHidden, ChangelogGroupItem, ChangelogGroupOrder, ChangelogGroupTitle, ChangelogGroupsContext, ChangelogGroupsSetting } from "./packages/shared/src/changelog-groups.js";
8
8
  import { insertMissingJsonc, mergeJsonAt, readJsonAt, readJsonFile, readJsoncAt, readJsoncFile, toJson, writeJsonFile } from "./packages/shared/src/fs-utils.js";
9
- import { DEFAULT_IGNORE_PATTERNS, IgnoreOptions, collectGitignorePatterns, isIgnoredPath, resolveIgnorePatterns } from "./packages/shared/src/ignore.js";
9
+ import { DEFAULT_FMT_IGNORE_PATTERNS, DEFAULT_IGNORE_PATTERNS, DEFAULT_LINT_IGNORE_PATTERNS, IgnoreOptions, collectGitignorePatterns, isIgnoredPath, resolveIgnorePatterns } from "./packages/shared/src/ignore.js";
10
10
  import { ERROR_MAP, ErrorId, MessageId, WARNING_MAP, WarningId, errorMessage, formatMessage, formatMessageId, warningMessage } from "./packages/shared/src/messages.js";
11
11
  import { Sortable, applyOverrides, deepMerge, isPlainObject, isUnsafeKey, mapValues, resolveSort, sort } from "./packages/shared/src/object-utils.js";
12
12
  import { AzurePipelines } from "./packages/shared/src/config-schema/generated/azure-pipelines.js";
@@ -15,11 +15,12 @@ import { GitHubWorkflow } from "./packages/shared/src/config-schema/generated/gi
15
15
  import { GitLabCi } from "./packages/shared/src/config-schema/generated/gitlab-ci.js";
16
16
  import { OxfmtConfig } from "./packages/shared/src/config-schema/generated/oxfmt-config.js";
17
17
  import { OxlintConfig } from "./packages/shared/src/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 "./packages/shared/src/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 "./packages/shared/src/config-types.js";
19
19
  import { ReplacementOptions, ReplacementValue, Replacements, Replacer, applyReplacements, applyReplacementsDeep, createReplacer, defineReplacements, extractTokens, hasUnresolvedTokens, tokenPattern } from "./packages/shared/src/template.js";
20
20
  import { index_d_exports as index_d_exports$1 } from "./packages/changelog/src/index.js";
21
21
  import { index_d_exports as index_d_exports$2 } from "./packages/config/src/index.js";
22
22
  import { editorConfigSyncTask, toolingConfigTask } from "./packages/core/src/editor-config.js";
23
+ import { FORMAT_IMPORT_GROUP_DEFAULTS_ENV, FORMAT_IMPORT_GROUP_DEFAULTS_SETTING, ResolveFmtCustomGroupsInput, ResolveFmtCustomGroupsOptions, resolveFmtCustomGroups } from "./packages/core/src/fmt-groups.js";
23
24
  import { DBX_GITIGNORE_BLOCK, ensureDbxGitignore } from "./packages/core/src/gitignore.js";
24
25
  import { BuildProjectGraphOptions, IGNORED_DIRS, PackageManager, ProjectGraph, ProjectNode, buildProjectGraph, detectPackageManager, orderProjects, projectGraphPath, readProjectGraph, writeProjectGraph } from "./packages/core/src/graph.js";
25
26
  import { LoadToolchainConfigOptions, LoadedConfig, findConfigFile, findParentConfigFile, loadToolchainConfig, mergeToolchainConfig } from "./packages/core/src/loader.js";
@@ -52,7 +53,7 @@ import { templateKindSchema, templateSourceSchema, templateSourceTypeSchema, tem
52
53
  import { tsconfigConfigSchema } from "./packages/shared/src/config-schema/tsconfig.js";
53
54
  import { viteConfigSchema } from "./packages/shared/src/config-schema/vite.js";
54
55
  import { watchConfigSchema } from "./packages/shared/src/config-schema/watch.js";
55
- import { VendorWorkflowConfig, azureWorkflowSettingSchema, customWorkflowSettingsSchema, githubWorkflowSettingSchema, gitlabWorkflowSettingSchema, isVendorWorkflowConfig, workflowConfigSchema, workflowJobSchema, workflowOptionsSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema } from "./packages/shared/src/config-schema/workflow.js";
56
+ import { VendorWorkflowConfig, azureWorkflowSettingSchema, customWorkflowSettingsSchema, githubWorkflowSettingSchema, gitlabWorkflowSettingSchema, isVendorWorkflowConfig, workflowConfigSchema, workflowExtraSchema, workflowJobSchema, workflowOptionsSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, workflowTokensSchema, workflowTriggersSchema } from "./packages/shared/src/config-schema/workflow.js";
56
57
  import { configSchema, dbxConfigSchema, toolchainConfigSchema } from "./packages/shared/src/config-schema/index.js";
57
58
  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 "./packages/shared/src/toolchain.js";
58
59
  import { Awaitable, GeneratedFile, JsonValue, PackageJson, ToolchainArgument, ToolchainCommand, ToolchainCommandContext, ToolchainOption } from "./packages/shared/src/types.js";
@@ -60,9 +61,9 @@ import { projectFromPackageJson, projectToPackageJson, splitPackageName } from "
60
61
  import { ToolchainProvider, ToolchainProviderAction, ToolchainProviderCommand, providerActions } from "./packages/shared/src/provider.js";
61
62
  import { RegistryPolicy, registrySourceAllowed } from "./packages/shared/src/registry-policy.js";
62
63
  import { RunOptions, SpawnCrossOptions, isCmdShim, killProcessTree, run, spawnCross } from "./packages/shared/src/run.js";
63
- 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 "./packages/shared/src/string-utils.js";
64
- import { DEFAULT_FMT_IGNORE_PATTERNS, DEFAULT_FMT_RULES, DEFAULT_LINT_IGNORE_PATTERNS, DEFAULT_LINT_RULES, ToolchainOxfmtConfig, ToolchainOxlintConfig } from "./packages/shared/src/vite-defaults.js";
64
+ 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 "./packages/shared/src/string-utils.js";
65
+ 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 "./packages/shared/src/vite-defaults.js";
65
66
  import { YamlValue, toYaml } from "./packages/shared/src/yaml.js";
66
67
  import { index_d_exports as index_d_exports$5 } from "./packages/shared/src/index.js";
67
68
  import { index_d_exports } from "./packages/biome/src/index.js";
68
- export { Awaitable, type AzurePipelines, AzureWorkflowSetting, type BiomeConfig, BuildProjectGraphOptions, 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, DBX_GITIGNORE_BLOCK, 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, FileOrigin, FormatterTool, GeneratedFile, type GitHubWorkflow, GitHubWorkflowSetting, type GitLabCi, GitLabWorkflowSetting, IGNORED_DIRS, IgnoreOptions, JsonValue, LINTER_PRECEDENCE, LOG_LEVELS, LinterTool, LoadToolchainConfigOptions, LoadedConfig, LogChannel, LogLevel, LogSuppression, Logger, LoggerConfig, LoggerOptions, MANIFEST_DIR, MANIFEST_FILE, ManagedFile, Manifest, MessageId, NormalizeToolingOptions, NormalizedTooling, type OxfmtConfig, type OxlintConfig, PackageJson, PackageManager, ProjectGraph, ProjectNode, ProjectType, ProviderRegistryPath, RegistryPolicy, RemovedFile, ReplacementOptions, ReplacementValue, Replacements, Replacer, ResetProjectsOptions, ResetProjectsResult, ResetRestore, ResetSelectors, ResetToolchainOptions, ResetToolchainResult, RunOptions, RunSyncOptions, RunWatchOptions, SelectProjectsOptions, SelectedProject, Sortable, SpawnCrossOptions, SyncContext, SyncResult, SyncSummary, SyncTask, TIMESTAMPS_FILE, 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, ToolingDefaultsTaskOptions, TsconfigFileNames, VendorWorkflowConfig, VscodeSyncOptions, WARNING_MAP, WarningId, WorkflowJob, WorkflowOptions, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, type YamlValue, addGlobalProviderRegistry, addProjectProviderRegistry, applyOverrides, applyReplacements, applyReplacementsDeep, asString, azureWorkflowSettingSchema, index_d_exports as biome, biomeConfigOptionsSchema, biomeConfigSchema, buildProjectGraph, camelCase, camelCaseId, capitalize, catalogsConfigSchema, index_d_exports$1 as changelog, changelogBranchesConfigSchema, changelogBreakingCallbackSchema, changelogBreakingSettingSchema, changelogBumpRuleMatchSchema, changelogBumpRuleSchema, changelogCommitFormatConfigSchema, changelogCommitlintConfigSchema, changelogConfigSchema, changelogGroupConfigSchema, changelogGroupsSettingSchema, changelogProviderConfigSchema, changelogProviderSettingSchema, changelogSectionEnabled, changelogVersioningConfigSchema, changelogVersioningSchema, changelogVersioningTargetSchema, changelogWorkflowSettingSchema, ciChangelogConfigSchema, ciConfigSchema, collectGitignorePatterns, index_d_exports$2 as config, configJsonValueSchema, configSchema, configureLogger, constantCase, index_d_exports$3 as core, createLogger, createReplacer, customWorkflowSettingsSchema, dbxConfigSchema, deepMerge, defaultGlobalProvidersDir, defaultSyncTasks, defineConfig, defineReplacements, detectPackageManager, detectProjectType, editorConfigSyncTask, ensureDbxGitignore, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, errorMessage, extractTokens, findConfigFile, findOwnCliEntry, findParentConfigFile, fmtConfigSchema, formatCliFlag, formatMessage, formatMessageId, getLogOverrides, getLogger, githubWorkflowSettingSchema, gitlabWorkflowSettingSchema, globalProviderRegistryPath, hasEscapeArtifacts, hasText, hasUnresolvedTokens, indent, insertMissingJsonc, isCmdShim, isIgnoredPath, isLocalhost, isLogLevel, isPlainObject, isUnsafeKey, isVendorWorkflowConfig, kebabCase, killProcessTree, legacyProviderRegistryPath, lintConfigSchema, loadToolchainConfig, localToolchainVersion, logger, loggerConfigSchema, mapValues, mergeJsonAt, mergeToolchainConfig, normalizeLogLevel, normalizeToolingConfig, orderProjects, pascalCase, index_d_exports$4 as project, projectConfigSchema, projectFromPackageJson, projectGraphPath, projectToPackageJson, projectTypeSchema, providerActions, providerRegistryPath, providerRegistryPaths, providersConfigSchema, readAllProviders, readAllProvidersSync, readGlobalProviders, readJsonAt, readJsonFile, readJsoncAt, readJsoncFile, readManifest, readProjectGraph, readProviderRegistry, readSyncedAt, registryConfigSchema, registryPolicySchema, registrySourceAllowed, removeDoubleSlashes, removeGlobalProviderRegistry, removeLeadingSlash, removeProjectProviderRegistry, removeTrailingSlash, repoSlugFromUrl, resetProjects, resetToolchain, resolveChangelogBranches, resolveChangelogConfig, resolveCiConfig, resolveCommitlintEnabled, resolveFmtTool, resolveFmtTools, resolveIgnorePatterns, resolveLintTool, resolveLintTools, resolveOxcFmtConfig, resolveOxcLintConfig, resolveProjectType, resolveSort, resolveTokens, resolveWatchGlobs, run, runSync, runWatch, sanitizeSlashes, sanitizeText, section, sectionConfig, sectionEnabled, selectProjects, setGlobalProviderRegistries, setLogConfig, setLogOverrides, setProjectProviderRegistries, index_d_exports$5 as shared, snakeCase, sort, spawnCross, splitPackageName, str, stripAnsi, stripControlChars, stripEscapeArtifacts, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolchainConfigSchema, toolingConfigTask, toolingDefaultsTask, index_d_exports$6 as tsconfig, tsconfigConfigSchema, index_d_exports$7 as tsdown, viteConfigSchema, vscodeSettingsSchema, vscodeSyncTask, warningMessage, watchConfigSchema, withEnabled, workflowConfigSchema, workflowJobSchema, workflowOptionsSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, writeGlobalProviders, writeJsonFile, writeManifest, writeProjectGraph, writeProviderRegistry };
69
+ export { Awaitable, type AzurePipelines, AzureWorkflowSetting, type BiomeConfig, BuildProjectGraphOptions, 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, DBX_GITIGNORE_BLOCK, 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, FORMAT_IMPORT_GROUP_DEFAULTS_ENV, FORMAT_IMPORT_GROUP_DEFAULTS_SETTING, FileOrigin, FmtCustomGroup, FmtProjectIdentity, FmtSortGroup, FmtSortImports, FormatterTool, GeneratedFile, type GitHubWorkflow, GitHubWorkflowSetting, type GitLabCi, GitLabWorkflowSetting, IGNORED_DIRS, IgnoreOptions, JsonValue, LINTER_PRECEDENCE, LOG_LEVELS, LinterTool, LoadToolchainConfigOptions, LoadedConfig, LogChannel, LogLevel, LogSuppression, Logger, LoggerConfig, LoggerOptions, MANIFEST_DIR, MANIFEST_FILE, ManagedFile, Manifest, MessageId, NormalizeToolingOptions, NormalizedTooling, type OxfmtConfig, type OxlintConfig, PackageJson, PackageManager, ProjectGraph, ProjectNode, ProjectType, ProviderRegistryPath, RegistryPolicy, RemovedFile, ReplacementOptions, ReplacementValue, Replacements, Replacer, ResetProjectsOptions, ResetProjectsResult, ResetRestore, ResetSelectors, ResetToolchainOptions, ResetToolchainResult, ResolveFmtCustomGroupsInput, ResolveFmtCustomGroupsOptions, RunOptions, RunSyncOptions, RunWatchOptions, SelectProjectsOptions, SelectedProject, Sortable, SpawnCrossOptions, SyncContext, SyncResult, SyncSummary, SyncTask, TIMESTAMPS_FILE, 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, ToolingDefaultsTaskOptions, TsconfigFileNames, VendorWorkflowConfig, VscodeSyncOptions, WARNING_MAP, WarningId, WorkflowExtra, WorkflowJob, WorkflowOptions, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, WorkflowTokens, WorkflowTriggers, type YamlValue, addGlobalProviderRegistry, addProjectProviderRegistry, applyFmtCustomGroups, applyOverrides, applyReplacements, applyReplacementsDeep, asString, azureWorkflowSettingSchema, index_d_exports as biome, biomeConfigOptionsSchema, biomeConfigSchema, buildProjectGraph, camelCase, camelCaseId, capitalize, catalogsConfigSchema, index_d_exports$1 as changelog, changelogBranchesConfigSchema, changelogBreakingCallbackSchema, changelogBreakingSettingSchema, changelogBumpRuleMatchSchema, changelogBumpRuleSchema, changelogCommitFormatConfigSchema, changelogCommitlintConfigSchema, changelogConfigSchema, changelogGroupConfigSchema, changelogGroupsSettingSchema, changelogProviderConfigSchema, changelogProviderSettingSchema, changelogSectionEnabled, changelogVersioningConfigSchema, changelogVersioningSchema, changelogVersioningTargetSchema, changelogWorkflowSettingSchema, ciChangelogConfigSchema, ciConfigSchema, collectGitignorePatterns, index_d_exports$2 as config, configJsonValueSchema, configSchema, configureLogger, constantCase, index_d_exports$3 as core, createLogger, createReplacer, customWorkflowSettingsSchema, dbxConfigSchema, deepMerge, defaultGlobalProvidersDir, defaultSyncTasks, defineConfig, defineReplacements, detectPackageManager, detectProjectType, editorConfigSyncTask, ensureDbxGitignore, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, errorMessage, extractTokens, findConfigFile, findOwnCliEntry, findParentConfigFile, fmtConfigSchema, fmtCustomGroupsForProjects, formatCliFlag, formatMessage, formatMessageId, getLogOverrides, getLogger, githubWorkflowSettingSchema, gitlabWorkflowSettingSchema, globalProviderRegistryPath, hasEscapeArtifacts, hasText, hasUnresolvedTokens, indent, insertMissingJsonc, isCmdShim, isIgnoredPath, isLocalhost, isLogLevel, isPlainObject, isUnsafeKey, isVendorWorkflowConfig, kebabCase, killProcessTree, legacyProviderRegistryPath, lintConfigSchema, loadToolchainConfig, localToolchainVersion, logger, loggerConfigSchema, mapValues, mergeJsonAt, mergeToolchainConfig, normalizeLogLevel, normalizeToolingConfig, orderProjects, pascalCase, index_d_exports$4 as project, projectConfigSchema, projectFromPackageJson, projectGraphPath, projectToPackageJson, projectTypeSchema, providerActions, providerRegistryPath, providerRegistryPaths, providersConfigSchema, readAllProviders, readAllProvidersSync, readGlobalProviders, readJsonAt, readJsonFile, readJsoncAt, readJsoncFile, readManifest, readProjectGraph, readProviderRegistry, readSyncedAt, registryConfigSchema, registryPolicySchema, registrySourceAllowed, removeDoubleSlashes, removeGlobalProviderRegistry, removeLeadingSlash, removeProjectProviderRegistry, removeTrailingSlash, repairBacktickArtifacts, repoSlugFromUrl, resetProjects, resetToolchain, resolveChangelogBranches, resolveChangelogConfig, resolveCiConfig, resolveCommitlintEnabled, resolveFmtCustomGroups, resolveFmtTool, resolveFmtTools, resolveIgnorePatterns, resolveLintTool, resolveLintTools, resolveOxcFmtConfig, resolveOxcLintConfig, resolveProjectType, resolveSort, resolveTokens, resolveWatchGlobs, run, runSync, runWatch, sanitizeSlashes, sanitizeText, section, sectionConfig, sectionEnabled, selectProjects, setGlobalProviderRegistries, setLogConfig, setLogOverrides, setProjectProviderRegistries, index_d_exports$5 as shared, snakeCase, sort, spawnCross, splitPackageName, str, stripAnsi, stripControlChars, stripEscapeArtifacts, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolchainConfigSchema, toolingConfigTask, toolingDefaultsTask, index_d_exports$6 as tsconfig, tsconfigConfigSchema, index_d_exports$7 as tsdown, viteConfigSchema, vscodeSettingsSchema, vscodeSyncTask, warningMessage, watchConfigSchema, withEnabled, workflowConfigSchema, workflowExtraSchema, workflowJobSchema, workflowOptionsSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, workflowTokensSchema, workflowTriggersSchema, writeGlobalProviders, writeJsonFile, writeManifest, writeProjectGraph, writeProviderRegistry };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import"node:path";import"node:url";import.meta.url;import{TOOLCHAIN_PACKAGE as e,findOwnCliEntry as t,localToolchainVersion as n}from"./packages/shared/src/bin.js";import{applyOverrides as r,deepMerge as i,isPlainObject as a,isUnsafeKey as o,mapValues as s,resolveSort as c,sort as l}from"./packages/shared/src/object-utils.js";import{insertMissingJsonc as u,mergeJsonAt as d,readJsonAt as f,readJsonFile as p,readJsoncAt as m,readJsoncFile as h,toJson as g,writeJsonFile as _}from"./packages/shared/src/fs-utils.js";import{DEFAULT_IGNORE_PATTERNS as v,collectGitignorePatterns as y,isIgnoredPath as b,resolveIgnorePatterns as x}from"./packages/shared/src/ignore.js";import{ERROR_MAP as S,WARNING_MAP as C,errorMessage as w,formatMessage as T,formatMessageId as E,warningMessage as D}from"./packages/shared/src/messages.js";import{LOG_LEVELS as O,configureLogger as k,createLogger as A,getLogOverrides as j,getLogger as M,isLogLevel as N,logger as P,normalizeLogLevel as F,setLogConfig as I,setLogOverrides as L,stripAnsi as R}from"./packages/shared/src/logger.js";import{projectFromPackageJson as z,projectToPackageJson as B,splitPackageName as V}from"./packages/shared/src/project.js";import{providerActions as H}from"./packages/shared/src/provider.js";import{registrySourceAllowed as U}from"./packages/shared/src/registry-policy.js";import{isCmdShim as W,killProcessTree as G,run as K,spawnCross as q}from"./packages/shared/src/run.js";import{asString as J,camelCase as Y,camelCaseId as X,capitalize as Z,constantCase as Q,ensureLeadingSlash as $,ensureSlashes as ee,ensureTrailingSlash as te,formatCliFlag as ne,hasEscapeArtifacts as re,hasText as ie,indent as ae,isLocalhost as oe,kebabCase as se,pascalCase as ce,removeDoubleSlashes as le,removeLeadingSlash as ue,removeTrailingSlash as de,sanitizeSlashes as fe,sanitizeText as pe,snakeCase as me,str as he,stripControlChars as ge,stripEscapeArtifacts as _e,titleCase as ve}from"./packages/shared/src/string-utils.js";import{applyReplacements as ye,applyReplacementsDeep as be,createReplacer as xe,defineReplacements as Se,extractTokens as Ce,hasUnresolvedTokens as we,tokenPattern as Te}from"./packages/shared/src/template.js";import{configJsonValueSchema as Ee}from"./packages/shared/src/config-schema/json.js";import{ENABLED_DESCRIPTION as De,section as Oe,withEnabled as ke}from"./packages/shared/src/config-schema/meta.js";import{azureWorkflowSettingSchema as Ae,customWorkflowSettingsSchema as je,githubWorkflowSettingSchema as Me,gitlabWorkflowSettingSchema as Ne,isVendorWorkflowConfig as Pe,workflowConfigSchema as Fe,workflowJobSchema as Ie,workflowOptionsSchema as Le,workflowSettingSchema as Re,workflowStepSchema as ze,workflowStepsConfigSchema as Be}from"./packages/shared/src/config-schema/workflow.js";import{biomeConfigOptionsSchema as Ve,biomeConfigSchema as He}from"./packages/shared/src/config-schema/biome.js";import{catalogsConfigSchema as Ue}from"./packages/shared/src/config-schema/catalogs.js";import{changelogBranchesConfigSchema as We,changelogBreakingCallbackSchema as Ge,changelogBreakingSettingSchema as Ke,changelogBumpRuleMatchSchema as qe,changelogBumpRuleSchema as Je,changelogCommitFormatConfigSchema as Ye,changelogCommitlintConfigSchema as Xe,changelogConfigSchema as Ze,changelogGroupConfigSchema as Qe,changelogGroupsSettingSchema as $e,changelogProviderConfigSchema as et,changelogProviderSettingSchema as tt,changelogVersioningConfigSchema as nt,changelogVersioningSchema as rt,changelogVersioningTargetSchema as it,changelogWorkflowSettingSchema as at,ciChangelogConfigSchema as ot}from"./packages/shared/src/config-schema/changelog.js";import{ciConfigSchema as st}from"./packages/shared/src/config-schema/ci.js";import{fmtConfigSchema as ct,lintConfigSchema as lt,vscodeSettingsSchema as ut}from"./packages/shared/src/config-schema/format.js";import{loggerConfigSchema as dt}from"./packages/shared/src/config-schema/logger.js";import{projectConfigSchema as ft,projectTypeSchema as pt}from"./packages/shared/src/config-schema/project.js";import{providersConfigSchema as mt}from"./packages/shared/src/config-schema/providers.js";import{registryConfigSchema as ht,registryPolicySchema as gt}from"./packages/shared/src/config-schema/registry.js";import{templateKindSchema as _t,templateSourceSchema as vt,templateSourceTypeSchema as yt,templatesConfigSchema as bt}from"./packages/shared/src/config-schema/templates.js";import{tsconfigConfigSchema as xt}from"./packages/shared/src/config-schema/tsconfig.js";import{viteConfigSchema as St}from"./packages/shared/src/config-schema/vite.js";import{watchConfigSchema as Ct}from"./packages/shared/src/config-schema/watch.js";import{configSchema as wt,dbxConfigSchema as Tt,toolchainConfigSchema as Et}from"./packages/shared/src/config-schema/index.js";import{CONFIG_FILE_NAMES as Dt,DEFAULT_PACKAGE_MANAGER_VERSIONS as Ot,FORMATTER_PRECEDENCE as kt,LINTER_PRECEDENCE as At,changelogSectionEnabled as jt,defineConfig as Mt,repoSlugFromUrl as Nt,resolveChangelogBranches as Pt,resolveChangelogConfig as Ft,resolveCiConfig as It,resolveCommitlintEnabled as Lt,resolveFmtTool as Rt,resolveFmtTools as zt,resolveLintTool as Bt,resolveLintTools as Vt,resolveOxcFmtConfig as Ht,resolveOxcLintConfig as Ut,resolveTokens as Wt,sectionConfig as Gt,sectionEnabled as Kt}from"./packages/shared/src/toolchain.js";import{DEFAULT_FMT_IGNORE_PATTERNS as qt,DEFAULT_FMT_RULES as Jt,DEFAULT_LINT_IGNORE_PATTERNS as Yt,DEFAULT_LINT_RULES as Xt}from"./packages/shared/src/vite-defaults.js";import{toYaml as Zt}from"./packages/shared/src/yaml.js";import{src_exports as Qt}from"./packages/shared/src/index.js";import{src_exports as $t}from"./packages/biome/src/index.js";import{src_exports as en}from"./packages/changelog/src/index.js";import{src_exports as tn}from"./packages/config/src/index.js";import{editorConfigSyncTask as nn,toolingConfigTask as rn}from"./packages/core/src/editor-config.js";import{DBX_GITIGNORE_BLOCK as an,ensureDbxGitignore as on}from"./packages/core/src/gitignore.js";import{detectProjectType as sn,resolveProjectType as cn}from"./packages/core/src/project-type.js";import{findConfigFile as ln,findParentConfigFile as un,loadToolchainConfig as dn,mergeToolchainConfig as fn}from"./packages/core/src/loader.js";import{IGNORED_DIRS as pn,buildProjectGraph as mn,detectPackageManager as hn,orderProjects as gn,projectGraphPath as _n,readProjectGraph as vn,writeProjectGraph as yn}from"./packages/core/src/graph.js";import{MANIFEST_DIR as bn,MANIFEST_FILE as xn,TIMESTAMPS_FILE as Sn,readManifest as Cn,readSyncedAt as wn,writeManifest as Tn}from"./packages/core/src/manifest.js";import{addGlobalProviderRegistry as En,addProjectProviderRegistry as Dn,defaultGlobalProvidersDir as On,globalProviderRegistryPath as kn,legacyProviderRegistryPath as An,providerRegistryPath as jn,providerRegistryPaths as Mn,readAllProviders as Nn,readAllProvidersSync as Pn,readGlobalProviders as Fn,readProviderRegistry as In,removeGlobalProviderRegistry as Ln,removeProjectProviderRegistry as Rn,setGlobalProviderRegistries as zn,setProjectProviderRegistries as Bn,writeGlobalProviders as Vn,writeProviderRegistry as Hn}from"./packages/core/src/provider-registry.js";import{selectProjects as Un}from"./packages/core/src/select.js";import{resetProjects as Wn,resetToolchain as Gn}from"./packages/core/src/reset.js";import{runSync as Kn}from"./packages/core/src/sync.js";import{vscodeSyncTask as qn}from"./packages/core/src/vscode.js";import{resolveWatchGlobs as Jn,runWatch as Yn}from"./packages/core/src/watch.js";import{src_exports as Xn}from"./packages/core/src/index.js";import{src_exports as Zn}from"./packages/tsconfig/src/index.js";import{src_exports as Qn}from"./packages/project/src/index.js";import{src_exports as $n}from"./packages/tsdown/src/index.js";import{normalizeToolingConfig as er,toolingDefaultsTask as tr}from"./tooling.js";import{defaultSyncTasks as nr}from"./sync.js";export{Dt as CONFIG_FILE_NAMES,an as DBX_GITIGNORE_BLOCK,qt as DEFAULT_FMT_IGNORE_PATTERNS,Jt as DEFAULT_FMT_RULES,v as DEFAULT_IGNORE_PATTERNS,Yt as DEFAULT_LINT_IGNORE_PATTERNS,Xt as DEFAULT_LINT_RULES,Ot as DEFAULT_PACKAGE_MANAGER_VERSIONS,De as ENABLED_DESCRIPTION,S as ERROR_MAP,kt as FORMATTER_PRECEDENCE,pn as IGNORED_DIRS,At as LINTER_PRECEDENCE,O as LOG_LEVELS,bn as MANIFEST_DIR,xn as MANIFEST_FILE,Sn as TIMESTAMPS_FILE,e as TOOLCHAIN_PACKAGE,C as WARNING_MAP,En as addGlobalProviderRegistry,Dn as addProjectProviderRegistry,r as applyOverrides,ye as applyReplacements,be as applyReplacementsDeep,J as asString,Ae as azureWorkflowSettingSchema,$t as biome,Ve as biomeConfigOptionsSchema,He as biomeConfigSchema,mn as buildProjectGraph,Y as camelCase,X as camelCaseId,Z as capitalize,Ue as catalogsConfigSchema,en as changelog,We as changelogBranchesConfigSchema,Ge as changelogBreakingCallbackSchema,Ke as changelogBreakingSettingSchema,qe as changelogBumpRuleMatchSchema,Je as changelogBumpRuleSchema,Ye as changelogCommitFormatConfigSchema,Xe as changelogCommitlintConfigSchema,Ze as changelogConfigSchema,Qe as changelogGroupConfigSchema,$e as changelogGroupsSettingSchema,et as changelogProviderConfigSchema,tt as changelogProviderSettingSchema,jt as changelogSectionEnabled,nt as changelogVersioningConfigSchema,rt as changelogVersioningSchema,it as changelogVersioningTargetSchema,at as changelogWorkflowSettingSchema,ot as ciChangelogConfigSchema,st as ciConfigSchema,y as collectGitignorePatterns,tn as config,Ee as configJsonValueSchema,wt as configSchema,k as configureLogger,Q as constantCase,Xn as core,A as createLogger,xe as createReplacer,je as customWorkflowSettingsSchema,Tt as dbxConfigSchema,i as deepMerge,On as defaultGlobalProvidersDir,nr as defaultSyncTasks,Mt as defineConfig,Se as defineReplacements,hn as detectPackageManager,sn as detectProjectType,nn as editorConfigSyncTask,on as ensureDbxGitignore,$ as ensureLeadingSlash,ee as ensureSlashes,te as ensureTrailingSlash,w as errorMessage,Ce as extractTokens,ln as findConfigFile,t as findOwnCliEntry,un as findParentConfigFile,ct as fmtConfigSchema,ne as formatCliFlag,T as formatMessage,E as formatMessageId,j as getLogOverrides,M as getLogger,Me as githubWorkflowSettingSchema,Ne as gitlabWorkflowSettingSchema,kn as globalProviderRegistryPath,re as hasEscapeArtifacts,ie as hasText,we as hasUnresolvedTokens,ae as indent,u as insertMissingJsonc,W as isCmdShim,b as isIgnoredPath,oe as isLocalhost,N as isLogLevel,a as isPlainObject,o as isUnsafeKey,Pe as isVendorWorkflowConfig,se as kebabCase,G as killProcessTree,An as legacyProviderRegistryPath,lt as lintConfigSchema,dn as loadToolchainConfig,n as localToolchainVersion,P as logger,dt as loggerConfigSchema,s as mapValues,d as mergeJsonAt,fn as mergeToolchainConfig,F as normalizeLogLevel,er as normalizeToolingConfig,gn as orderProjects,ce as pascalCase,Qn as project,ft as projectConfigSchema,z as projectFromPackageJson,_n as projectGraphPath,B as projectToPackageJson,pt as projectTypeSchema,H as providerActions,jn as providerRegistryPath,Mn as providerRegistryPaths,mt as providersConfigSchema,Nn as readAllProviders,Pn as readAllProvidersSync,Fn as readGlobalProviders,f as readJsonAt,p as readJsonFile,m as readJsoncAt,h as readJsoncFile,Cn as readManifest,vn as readProjectGraph,In as readProviderRegistry,wn as readSyncedAt,ht as registryConfigSchema,gt as registryPolicySchema,U as registrySourceAllowed,le as removeDoubleSlashes,Ln as removeGlobalProviderRegistry,ue as removeLeadingSlash,Rn as removeProjectProviderRegistry,de as removeTrailingSlash,Nt as repoSlugFromUrl,Wn as resetProjects,Gn as resetToolchain,Pt as resolveChangelogBranches,Ft as resolveChangelogConfig,It as resolveCiConfig,Lt as resolveCommitlintEnabled,Rt as resolveFmtTool,zt as resolveFmtTools,x as resolveIgnorePatterns,Bt as resolveLintTool,Vt as resolveLintTools,Ht as resolveOxcFmtConfig,Ut as resolveOxcLintConfig,cn as resolveProjectType,c as resolveSort,Wt as resolveTokens,Jn as resolveWatchGlobs,K as run,Kn as runSync,Yn as runWatch,fe as sanitizeSlashes,pe as sanitizeText,Oe as section,Gt as sectionConfig,Kt as sectionEnabled,Un as selectProjects,zn as setGlobalProviderRegistries,I as setLogConfig,L as setLogOverrides,Bn as setProjectProviderRegistries,Qt as shared,me as snakeCase,l as sort,q as spawnCross,V as splitPackageName,he as str,R as stripAnsi,ge as stripControlChars,_e as stripEscapeArtifacts,_t as templateKindSchema,vt as templateSourceSchema,yt as templateSourceTypeSchema,bt as templatesConfigSchema,ve as titleCase,g as toJson,Zt as toYaml,Te as tokenPattern,Et as toolchainConfigSchema,rn as toolingConfigTask,tr as toolingDefaultsTask,Zn as tsconfig,xt as tsconfigConfigSchema,$n as tsdown,St as viteConfigSchema,ut as vscodeSettingsSchema,qn as vscodeSyncTask,D as warningMessage,Ct as watchConfigSchema,ke as withEnabled,Fe as workflowConfigSchema,Ie as workflowJobSchema,Le as workflowOptionsSchema,Re as workflowSettingSchema,ze as workflowStepSchema,Be as workflowStepsConfigSchema,Vn as writeGlobalProviders,_ as writeJsonFile,Tn as writeManifest,yn as writeProjectGraph,Hn as writeProviderRegistry};
1
+ import"node:path";import"node:url";import.meta.url;import{TOOLCHAIN_PACKAGE as e,findOwnCliEntry as t,localToolchainVersion as n}from"./packages/shared/src/bin.js";import{applyOverrides as r,deepMerge as i,isPlainObject as a,isUnsafeKey as o,mapValues as s,resolveSort as c,sort as l}from"./packages/shared/src/object-utils.js";import{insertMissingJsonc as u,mergeJsonAt as d,readJsonAt as f,readJsonFile as p,readJsoncAt as m,readJsoncFile as h,toJson as g,writeJsonFile as _}from"./packages/shared/src/fs-utils.js";import{DEFAULT_FMT_IGNORE_PATTERNS as v,DEFAULT_IGNORE_PATTERNS as y,DEFAULT_LINT_IGNORE_PATTERNS as b,collectGitignorePatterns as x,isIgnoredPath as S,resolveIgnorePatterns as C}from"./packages/shared/src/ignore.js";import{ERROR_MAP as w,WARNING_MAP as T,errorMessage as E,formatMessage as D,formatMessageId as O,warningMessage as k}from"./packages/shared/src/messages.js";import{LOG_LEVELS as A,configureLogger as j,createLogger as M,getLogOverrides as N,getLogger as P,isLogLevel as F,logger as I,normalizeLogLevel as L,setLogConfig as R,setLogOverrides as z,stripAnsi as B}from"./packages/shared/src/logger.js";import{projectFromPackageJson as V,projectToPackageJson as H,splitPackageName as U}from"./packages/shared/src/project.js";import{providerActions as W}from"./packages/shared/src/provider.js";import{registrySourceAllowed as G}from"./packages/shared/src/registry-policy.js";import{isCmdShim as K,killProcessTree as q,run as J,spawnCross as Y}from"./packages/shared/src/run.js";import{asString as X,camelCase as Z,camelCaseId as Q,capitalize as $,constantCase as ee,ensureLeadingSlash as te,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,repairBacktickArtifacts as me,sanitizeSlashes as he,sanitizeText as ge,snakeCase as _e,str as ve,stripControlChars as ye,stripEscapeArtifacts as be,titleCase as xe}from"./packages/shared/src/string-utils.js";import{applyReplacements as Se,applyReplacementsDeep as Ce,createReplacer as we,defineReplacements as Te,extractTokens as Ee,hasUnresolvedTokens as De,tokenPattern as Oe}from"./packages/shared/src/template.js";import{configJsonValueSchema as ke}from"./packages/shared/src/config-schema/json.js";import{ENABLED_DESCRIPTION as Ae,section as je,withEnabled as Me}from"./packages/shared/src/config-schema/meta.js";import{azureWorkflowSettingSchema as Ne,customWorkflowSettingsSchema as Pe,githubWorkflowSettingSchema as Fe,gitlabWorkflowSettingSchema as Ie,isVendorWorkflowConfig as Le,workflowConfigSchema as Re,workflowExtraSchema as ze,workflowJobSchema as Be,workflowOptionsSchema as Ve,workflowSettingSchema as He,workflowStepSchema as Ue,workflowStepsConfigSchema as We,workflowTokensSchema as Ge,workflowTriggersSchema as Ke}from"./packages/shared/src/config-schema/workflow.js";import{biomeConfigOptionsSchema as qe,biomeConfigSchema as Je}from"./packages/shared/src/config-schema/biome.js";import{catalogsConfigSchema as Ye}from"./packages/shared/src/config-schema/catalogs.js";import{changelogBranchesConfigSchema as Xe,changelogBreakingCallbackSchema as Ze,changelogBreakingSettingSchema as Qe,changelogBumpRuleMatchSchema as $e,changelogBumpRuleSchema as et,changelogCommitFormatConfigSchema as tt,changelogCommitlintConfigSchema as nt,changelogConfigSchema as rt,changelogGroupConfigSchema as it,changelogGroupsSettingSchema as at,changelogProviderConfigSchema as ot,changelogProviderSettingSchema as st,changelogVersioningConfigSchema as ct,changelogVersioningSchema as lt,changelogVersioningTargetSchema as ut,changelogWorkflowSettingSchema as dt,ciChangelogConfigSchema as ft}from"./packages/shared/src/config-schema/changelog.js";import{ciConfigSchema as pt}from"./packages/shared/src/config-schema/ci.js";import{fmtConfigSchema as mt,lintConfigSchema as ht,vscodeSettingsSchema as gt}from"./packages/shared/src/config-schema/format.js";import{loggerConfigSchema as _t}from"./packages/shared/src/config-schema/logger.js";import{projectConfigSchema as vt,projectTypeSchema as yt}from"./packages/shared/src/config-schema/project.js";import{providersConfigSchema as bt}from"./packages/shared/src/config-schema/providers.js";import{registryConfigSchema as xt,registryPolicySchema as St}from"./packages/shared/src/config-schema/registry.js";import{templateKindSchema as Ct,templateSourceSchema as wt,templateSourceTypeSchema as Tt,templatesConfigSchema as Et}from"./packages/shared/src/config-schema/templates.js";import{tsconfigConfigSchema as Dt}from"./packages/shared/src/config-schema/tsconfig.js";import{viteConfigSchema as Ot}from"./packages/shared/src/config-schema/vite.js";import{watchConfigSchema as kt}from"./packages/shared/src/config-schema/watch.js";import{configSchema as At,dbxConfigSchema as jt,toolchainConfigSchema as Mt}from"./packages/shared/src/config-schema/index.js";import{CONFIG_FILE_NAMES as Nt,DEFAULT_PACKAGE_MANAGER_VERSIONS as Pt,FORMATTER_PRECEDENCE as Ft,LINTER_PRECEDENCE as It,changelogSectionEnabled as Lt,defineConfig as Rt,repoSlugFromUrl as zt,resolveChangelogBranches as Bt,resolveChangelogConfig as Vt,resolveCiConfig as Ht,resolveCommitlintEnabled as Ut,resolveFmtTool as Wt,resolveFmtTools as Gt,resolveLintTool as Kt,resolveLintTools as qt,resolveOxcFmtConfig as Jt,resolveOxcLintConfig as Yt,resolveTokens as Xt,sectionConfig as Zt,sectionEnabled as Qt}from"./packages/shared/src/toolchain.js";import{DEFAULT_FMT_RULES as $t,DEFAULT_FMT_SORT_GROUP as en,DEFAULT_FMT_SORT_GROUPS as tn,DEFAULT_FMT_SORT_IMPORTS as nn,DEFAULT_LINT_RULES as rn,applyFmtCustomGroups as an,fmtCustomGroupsForProjects as on}from"./packages/shared/src/vite-defaults.js";import{toYaml as sn}from"./packages/shared/src/yaml.js";import{src_exports as cn}from"./packages/shared/src/index.js";import{src_exports as ln}from"./packages/biome/src/index.js";import{src_exports as un}from"./packages/changelog/src/index.js";import{src_exports as dn}from"./packages/config/src/index.js";import{editorConfigSyncTask as fn,toolingConfigTask as pn}from"./packages/core/src/editor-config.js";import{detectProjectType as mn,resolveProjectType as hn}from"./packages/core/src/project-type.js";import{findConfigFile as gn,findParentConfigFile as _n,loadToolchainConfig as vn,mergeToolchainConfig as yn}from"./packages/core/src/loader.js";import{IGNORED_DIRS as bn,buildProjectGraph as xn,detectPackageManager as Sn,orderProjects as Cn,projectGraphPath as wn,readProjectGraph as Tn,writeProjectGraph as En}from"./packages/core/src/graph.js";import{FORMAT_IMPORT_GROUP_DEFAULTS_ENV as Dn,FORMAT_IMPORT_GROUP_DEFAULTS_SETTING as On,resolveFmtCustomGroups as kn}from"./packages/core/src/fmt-groups.js";import{DBX_GITIGNORE_BLOCK as An,ensureDbxGitignore as jn}from"./packages/core/src/gitignore.js";import{MANIFEST_DIR as Mn,MANIFEST_FILE as Nn,TIMESTAMPS_FILE as Pn,readManifest as Fn,readSyncedAt as In,writeManifest as Ln}from"./packages/core/src/manifest.js";import{addGlobalProviderRegistry as Rn,addProjectProviderRegistry as zn,defaultGlobalProvidersDir as Bn,globalProviderRegistryPath as Vn,legacyProviderRegistryPath as Hn,providerRegistryPath as Un,providerRegistryPaths as Wn,readAllProviders as Gn,readAllProvidersSync as Kn,readGlobalProviders as qn,readProviderRegistry as Jn,removeGlobalProviderRegistry as Yn,removeProjectProviderRegistry as Xn,setGlobalProviderRegistries as Zn,setProjectProviderRegistries as Qn,writeGlobalProviders as $n,writeProviderRegistry as er}from"./packages/core/src/provider-registry.js";import{selectProjects as tr}from"./packages/core/src/select.js";import{resetProjects as nr,resetToolchain as rr}from"./packages/core/src/reset.js";import{runSync as ir}from"./packages/core/src/sync.js";import{vscodeSyncTask as ar}from"./packages/core/src/vscode.js";import{resolveWatchGlobs as or,runWatch as sr}from"./packages/core/src/watch.js";import{src_exports as cr}from"./packages/core/src/index.js";import{src_exports as lr}from"./packages/tsconfig/src/index.js";import{src_exports as ur}from"./packages/project/src/index.js";import{src_exports as dr}from"./packages/tsdown/src/index.js";import{normalizeToolingConfig as fr,toolingDefaultsTask as pr}from"./tooling.js";import{defaultSyncTasks as mr}from"./sync.js";export{Nt as CONFIG_FILE_NAMES,An as DBX_GITIGNORE_BLOCK,v as DEFAULT_FMT_IGNORE_PATTERNS,$t as DEFAULT_FMT_RULES,en as DEFAULT_FMT_SORT_GROUP,tn as DEFAULT_FMT_SORT_GROUPS,nn as DEFAULT_FMT_SORT_IMPORTS,y as DEFAULT_IGNORE_PATTERNS,b as DEFAULT_LINT_IGNORE_PATTERNS,rn as DEFAULT_LINT_RULES,Pt as DEFAULT_PACKAGE_MANAGER_VERSIONS,Ae as ENABLED_DESCRIPTION,w as ERROR_MAP,Ft as FORMATTER_PRECEDENCE,Dn as FORMAT_IMPORT_GROUP_DEFAULTS_ENV,On as FORMAT_IMPORT_GROUP_DEFAULTS_SETTING,bn as IGNORED_DIRS,It as LINTER_PRECEDENCE,A as LOG_LEVELS,Mn as MANIFEST_DIR,Nn as MANIFEST_FILE,Pn as TIMESTAMPS_FILE,e as TOOLCHAIN_PACKAGE,T as WARNING_MAP,Rn as addGlobalProviderRegistry,zn as addProjectProviderRegistry,an as applyFmtCustomGroups,r as applyOverrides,Se as applyReplacements,Ce as applyReplacementsDeep,X as asString,Ne as azureWorkflowSettingSchema,ln as biome,qe as biomeConfigOptionsSchema,Je as biomeConfigSchema,xn as buildProjectGraph,Z as camelCase,Q as camelCaseId,$ as capitalize,Ye as catalogsConfigSchema,un as changelog,Xe as changelogBranchesConfigSchema,Ze as changelogBreakingCallbackSchema,Qe as changelogBreakingSettingSchema,$e as changelogBumpRuleMatchSchema,et as changelogBumpRuleSchema,tt as changelogCommitFormatConfigSchema,nt as changelogCommitlintConfigSchema,rt as changelogConfigSchema,it as changelogGroupConfigSchema,at as changelogGroupsSettingSchema,ot as changelogProviderConfigSchema,st as changelogProviderSettingSchema,Lt as changelogSectionEnabled,ct as changelogVersioningConfigSchema,lt as changelogVersioningSchema,ut as changelogVersioningTargetSchema,dt as changelogWorkflowSettingSchema,ft as ciChangelogConfigSchema,pt as ciConfigSchema,x as collectGitignorePatterns,dn as config,ke as configJsonValueSchema,At as configSchema,j as configureLogger,ee as constantCase,cr as core,M as createLogger,we as createReplacer,Pe as customWorkflowSettingsSchema,jt as dbxConfigSchema,i as deepMerge,Bn as defaultGlobalProvidersDir,mr as defaultSyncTasks,Rt as defineConfig,Te as defineReplacements,Sn as detectPackageManager,mn as detectProjectType,fn as editorConfigSyncTask,jn as ensureDbxGitignore,te as ensureLeadingSlash,ne as ensureSlashes,re as ensureTrailingSlash,E as errorMessage,Ee as extractTokens,gn as findConfigFile,t as findOwnCliEntry,_n as findParentConfigFile,mt as fmtConfigSchema,on as fmtCustomGroupsForProjects,ie as formatCliFlag,D as formatMessage,O as formatMessageId,N as getLogOverrides,P as getLogger,Fe as githubWorkflowSettingSchema,Ie as gitlabWorkflowSettingSchema,Vn as globalProviderRegistryPath,ae as hasEscapeArtifacts,oe as hasText,De as hasUnresolvedTokens,se as indent,u as insertMissingJsonc,K as isCmdShim,S as isIgnoredPath,ce as isLocalhost,F as isLogLevel,a as isPlainObject,o as isUnsafeKey,Le as isVendorWorkflowConfig,le as kebabCase,q as killProcessTree,Hn as legacyProviderRegistryPath,ht as lintConfigSchema,vn as loadToolchainConfig,n as localToolchainVersion,I as logger,_t as loggerConfigSchema,s as mapValues,d as mergeJsonAt,yn as mergeToolchainConfig,L as normalizeLogLevel,fr as normalizeToolingConfig,Cn as orderProjects,ue as pascalCase,ur as project,vt as projectConfigSchema,V as projectFromPackageJson,wn as projectGraphPath,H as projectToPackageJson,yt as projectTypeSchema,W as providerActions,Un as providerRegistryPath,Wn as providerRegistryPaths,bt as providersConfigSchema,Gn as readAllProviders,Kn as readAllProvidersSync,qn as readGlobalProviders,f as readJsonAt,p as readJsonFile,m as readJsoncAt,h as readJsoncFile,Fn as readManifest,Tn as readProjectGraph,Jn as readProviderRegistry,In as readSyncedAt,xt as registryConfigSchema,St as registryPolicySchema,G as registrySourceAllowed,de as removeDoubleSlashes,Yn as removeGlobalProviderRegistry,fe as removeLeadingSlash,Xn as removeProjectProviderRegistry,pe as removeTrailingSlash,me as repairBacktickArtifacts,zt as repoSlugFromUrl,nr as resetProjects,rr as resetToolchain,Bt as resolveChangelogBranches,Vt as resolveChangelogConfig,Ht as resolveCiConfig,Ut as resolveCommitlintEnabled,kn as resolveFmtCustomGroups,Wt as resolveFmtTool,Gt as resolveFmtTools,C as resolveIgnorePatterns,Kt as resolveLintTool,qt as resolveLintTools,Jt as resolveOxcFmtConfig,Yt as resolveOxcLintConfig,hn as resolveProjectType,c as resolveSort,Xt as resolveTokens,or as resolveWatchGlobs,J as run,ir as runSync,sr as runWatch,he as sanitizeSlashes,ge as sanitizeText,je as section,Zt as sectionConfig,Qt as sectionEnabled,tr as selectProjects,Zn as setGlobalProviderRegistries,R as setLogConfig,z as setLogOverrides,Qn as setProjectProviderRegistries,cn as shared,_e as snakeCase,l as sort,Y as spawnCross,U as splitPackageName,ve as str,B as stripAnsi,ye as stripControlChars,be as stripEscapeArtifacts,Ct as templateKindSchema,wt as templateSourceSchema,Tt as templateSourceTypeSchema,Et as templatesConfigSchema,xe as titleCase,g as toJson,sn as toYaml,Oe as tokenPattern,Mt as toolchainConfigSchema,pn as toolingConfigTask,pr as toolingDefaultsTask,lr as tsconfig,Dt as tsconfigConfigSchema,dr as tsdown,Ot as viteConfigSchema,gt as vscodeSettingsSchema,ar as vscodeSyncTask,k as warningMessage,kt as watchConfigSchema,Me as withEnabled,Re as workflowConfigSchema,ze as workflowExtraSchema,Be as workflowJobSchema,Ve as workflowOptionsSchema,He as workflowSettingSchema,Ue as workflowStepSchema,We as workflowStepsConfigSchema,Ge as workflowTokensSchema,Ke as workflowTriggersSchema,$n as writeGlobalProviders,_ as writeJsonFile,Ln as writeManifest,En as writeProjectGraph,er as writeProviderRegistry};
package/dist/migrate.d.ts CHANGED
@@ -11,7 +11,7 @@ import { DEFAULT_IGNORE, OxfmtMapping, mapBiomeFormatter, mapBiomeIncludes, mapB
11
11
  import { OxlintMapping, RULE_MAP, mapBiomeToOxlint } from "./packages/migrate/src/oxlint-map.js";
12
12
  import { findPrettierConfig, hasPrettierConfig, mapPrettierToOxfmt, prettierToOx, readPrettierIgnore } from "./packages/migrate/src/prettier.js";
13
13
  import { MigrationInfo, detectMigrations, findMigration, listMigrations, migrations, runDetectedMigrations, runMigration } from "./packages/migrate/src/registry.js";
14
- import { VITE_CONFIG_FILES, ensureViteFmtIgnore, extractViteObject, findDbxConfig, findViteConfig, foldToolchainSection, foldViteIntoConfig, mergeViteObjects, renderFreshSectionsConfig, scanLiteralObject, viteToToolchain } from "./packages/migrate/src/vite.js";
15
- import { findTopLevelValue, matchBracket, mergeViteConfig, renderViteTarget, serializeTs, writeViteTarget } from "./packages/migrate/src/vite-target.js";
14
+ import { VITE_CONFIG_FILES, ensureViteFmtIgnore, extractViteObject, findDbxConfig, findViteConfig, foldToolchainSection, foldViteIntoConfig, mergeViteObjects, objectHasSections, renderFreshSectionsConfig, renderFreshViteConfig, scanLiteralObject, viteConfigHasFmtLint, viteToToolchain } from "./packages/migrate/src/vite.js";
15
+ import { findTopLevelValue, findViteMergeObject, matchBracket, mergeViteConfig, renderViteTarget, serializeTs, writeViteTarget } from "./packages/migrate/src/vite-target.js";
16
16
  import "./packages/migrate/src/index.js";
17
- export { BIOME_CONFIG_FILES, DEFAULT_IGNORE, FileDiff, FileStatus, MigrateTarget, MigrateTool, MigrationContext, MigrationFile, MigrationInfo, MigrationResult, OXC_FMT_FILE, OXC_LINT_FILE, OxfmtMapping, OxlintMapping, RULE_MAP, ToolchainMigration, UnmappedItem, VITE_CONFIG_FILES, biomeToOx, detectMigrations, diffFiles, dprintToOx, ensureViteFmtIgnore, eslintToOx, extractViteObject, findBiomeConfig, findDbxConfig, findDprintConfig, findEslintConfig, findMigration, findOxcConfigs, findPrettierConfig, findTopLevelValue, findViteConfig, foldToolchainSection, foldViteIntoConfig, hasPending, hasPrettierConfig, listMigrations, mapBiomeFormatter, mapBiomeIncludes, mapBiomeToOxfmt, mapBiomeToOxlint, mapDprintToOxfmt, mapOrganizeImports, mapPrettierToOxfmt, mapRuleName, matchBracket, mergeViteConfig, mergeViteObjects, migrateCommands, migrations, oxcToToolchain, prettierToOx, readJsonc, readPrettierIgnore, renderFreshSectionsConfig, renderViteTarget, runDetectedMigrations, runMigration, runOxlintMigrate, scanLiteralObject, serializeTs, stripJsonc, viteToToolchain, writeViteTarget };
17
+ export { BIOME_CONFIG_FILES, DEFAULT_IGNORE, FileDiff, FileStatus, MigrateTarget, MigrateTool, MigrationContext, MigrationFile, MigrationInfo, MigrationResult, OXC_FMT_FILE, OXC_LINT_FILE, OxfmtMapping, OxlintMapping, RULE_MAP, ToolchainMigration, UnmappedItem, VITE_CONFIG_FILES, biomeToOx, detectMigrations, diffFiles, dprintToOx, ensureViteFmtIgnore, eslintToOx, extractViteObject, findBiomeConfig, findDbxConfig, findDprintConfig, findEslintConfig, findMigration, findOxcConfigs, findPrettierConfig, findTopLevelValue, findViteConfig, findViteMergeObject, foldToolchainSection, foldViteIntoConfig, hasPending, hasPrettierConfig, listMigrations, mapBiomeFormatter, mapBiomeIncludes, mapBiomeToOxfmt, mapBiomeToOxlint, mapDprintToOxfmt, mapOrganizeImports, mapPrettierToOxfmt, mapRuleName, matchBracket, mergeViteConfig, mergeViteObjects, migrateCommands, migrations, objectHasSections, oxcToToolchain, prettierToOx, readJsonc, readPrettierIgnore, renderFreshSectionsConfig, renderFreshViteConfig, renderViteTarget, runDetectedMigrations, runMigration, runOxlintMigrate, scanLiteralObject, serializeTs, stripJsonc, viteConfigHasFmtLint, viteToToolchain, writeViteTarget };
package/dist/migrate.js CHANGED
@@ -1 +1 @@
1
- import"node:path";import"node:url";import.meta.url;import{DEFAULT_IGNORE as e,mapBiomeFormatter as t,mapBiomeIncludes as n,mapBiomeToOxfmt as r,mapOrganizeImports as i}from"./packages/migrate/src/oxfmt-map.js";import{RULE_MAP as a,mapBiomeToOxlint as o}from"./packages/migrate/src/oxlint-map.js";import{findTopLevelValue as s,matchBracket as c,mergeViteConfig as l,renderViteTarget as u,serializeTs as d,writeViteTarget as f}from"./packages/migrate/src/vite-target.js";import{BIOME_CONFIG_FILES as p,biomeToOx as m,findBiomeConfig as h,readJsonc as g,stripJsonc as _}from"./packages/migrate/src/biome.js";import{diffFiles as v,hasPending as y}from"./packages/migrate/src/check.js";import{dprintToOx as b,findDprintConfig as x,mapDprintToOxfmt as S}from"./packages/migrate/src/dprint.js";import{eslintToOx as C,findEslintConfig as w,mapRuleName as T,runOxlintMigrate as E}from"./packages/migrate/src/eslint.js";import{VITE_CONFIG_FILES as D,ensureViteFmtIgnore as O,extractViteObject as k,findDbxConfig as A,findViteConfig as j,foldToolchainSection as M,foldViteIntoConfig as N,mergeViteObjects as P,renderFreshSectionsConfig as F,scanLiteralObject as I,viteToToolchain as L}from"./packages/migrate/src/vite.js";import{OXC_FMT_FILE as R,OXC_LINT_FILE as z,findOxcConfigs as B,oxcToToolchain as V}from"./packages/migrate/src/oxc.js";import{findPrettierConfig as H,hasPrettierConfig as U,mapPrettierToOxfmt as W,prettierToOx as G,readPrettierIgnore as K}from"./packages/migrate/src/prettier.js";import{detectMigrations as q,findMigration as J,listMigrations as Y,migrations as X,runDetectedMigrations as Z,runMigration as Q}from"./packages/migrate/src/registry.js";import{migrateCommands as $}from"./packages/migrate/src/cli/index.js";import"./packages/migrate/src/index.js";export{p as BIOME_CONFIG_FILES,e as DEFAULT_IGNORE,R as OXC_FMT_FILE,z as OXC_LINT_FILE,a as RULE_MAP,D as VITE_CONFIG_FILES,m as biomeToOx,q as detectMigrations,v as diffFiles,b as dprintToOx,O as ensureViteFmtIgnore,C as eslintToOx,k as extractViteObject,h as findBiomeConfig,A as findDbxConfig,x as findDprintConfig,w as findEslintConfig,J as findMigration,B as findOxcConfigs,H as findPrettierConfig,s as findTopLevelValue,j as findViteConfig,M as foldToolchainSection,N as foldViteIntoConfig,y as hasPending,U as hasPrettierConfig,Y as listMigrations,t as mapBiomeFormatter,n as mapBiomeIncludes,r as mapBiomeToOxfmt,o as mapBiomeToOxlint,S as mapDprintToOxfmt,i as mapOrganizeImports,W as mapPrettierToOxfmt,T as mapRuleName,c as matchBracket,l as mergeViteConfig,P as mergeViteObjects,$ as migrateCommands,X as migrations,V as oxcToToolchain,G as prettierToOx,g as readJsonc,K as readPrettierIgnore,F as renderFreshSectionsConfig,u as renderViteTarget,Z as runDetectedMigrations,Q as runMigration,E as runOxlintMigrate,I as scanLiteralObject,d as serializeTs,_ as stripJsonc,L as viteToToolchain,f as writeViteTarget};
1
+ import"node:path";import"node:url";import.meta.url;import{DEFAULT_IGNORE as e,mapBiomeFormatter as t,mapBiomeIncludes as n,mapBiomeToOxfmt as r,mapOrganizeImports as i}from"./packages/migrate/src/oxfmt-map.js";import{RULE_MAP as a,mapBiomeToOxlint as o}from"./packages/migrate/src/oxlint-map.js";import{findTopLevelValue as s,findViteMergeObject as c,matchBracket as l,mergeViteConfig as u,renderViteTarget as d,serializeTs as f,writeViteTarget as p}from"./packages/migrate/src/vite-target.js";import{BIOME_CONFIG_FILES as m,biomeToOx as h,findBiomeConfig as g,readJsonc as _,stripJsonc as v}from"./packages/migrate/src/biome.js";import{diffFiles as y,hasPending as b}from"./packages/migrate/src/check.js";import{dprintToOx as x,findDprintConfig as S,mapDprintToOxfmt as C}from"./packages/migrate/src/dprint.js";import{eslintToOx as w,findEslintConfig as T,mapRuleName as E,runOxlintMigrate as D}from"./packages/migrate/src/eslint.js";import{VITE_CONFIG_FILES as O,ensureViteFmtIgnore as k,extractViteObject as A,findDbxConfig as j,findViteConfig as M,foldToolchainSection as N,foldViteIntoConfig as P,mergeViteObjects as F,objectHasSections as I,renderFreshSectionsConfig as L,renderFreshViteConfig as R,scanLiteralObject as z,viteConfigHasFmtLint as B,viteToToolchain as V}from"./packages/migrate/src/vite.js";import{OXC_FMT_FILE as H,OXC_LINT_FILE as U,findOxcConfigs as W,oxcToToolchain as G}from"./packages/migrate/src/oxc.js";import{findPrettierConfig as K,hasPrettierConfig as q,mapPrettierToOxfmt as J,prettierToOx as Y,readPrettierIgnore as X}from"./packages/migrate/src/prettier.js";import{detectMigrations as Z,findMigration as Q,listMigrations as $,migrations as ee,runDetectedMigrations as te,runMigration as ne}from"./packages/migrate/src/registry.js";import{migrateCommands as re}from"./packages/migrate/src/cli/index.js";import"./packages/migrate/src/index.js";export{m as BIOME_CONFIG_FILES,e as DEFAULT_IGNORE,H as OXC_FMT_FILE,U as OXC_LINT_FILE,a as RULE_MAP,O as VITE_CONFIG_FILES,h as biomeToOx,Z as detectMigrations,y as diffFiles,x as dprintToOx,k as ensureViteFmtIgnore,w as eslintToOx,A as extractViteObject,g as findBiomeConfig,j as findDbxConfig,S as findDprintConfig,T as findEslintConfig,Q as findMigration,W as findOxcConfigs,K as findPrettierConfig,s as findTopLevelValue,M as findViteConfig,c as findViteMergeObject,N as foldToolchainSection,P as foldViteIntoConfig,b as hasPending,q as hasPrettierConfig,$ as listMigrations,t as mapBiomeFormatter,n as mapBiomeIncludes,r as mapBiomeToOxfmt,o as mapBiomeToOxlint,C as mapDprintToOxfmt,i as mapOrganizeImports,J as mapPrettierToOxfmt,E as mapRuleName,l as matchBracket,u as mergeViteConfig,F as mergeViteObjects,re as migrateCommands,ee as migrations,I as objectHasSections,G as oxcToToolchain,Y as prettierToOx,_ as readJsonc,X as readPrettierIgnore,L as renderFreshSectionsConfig,R as renderFreshViteConfig,d as renderViteTarget,te as runDetectedMigrations,ne as runMigration,D as runOxlintMigrate,z as scanLiteralObject,f as serializeTs,v as stripJsonc,B as viteConfigHasFmtLint,V as viteToToolchain,p as writeViteTarget};
package/dist/package.js CHANGED
@@ -1 +1 @@
1
- import"node:path";import"node:url";import.meta.url;var e=`2.3.2`;export{e as version};
1
+ import"node:path";import"node:url";import.meta.url;var e=`2.4.0`;export{e as version};
@@ -1,4 +1,4 @@
1
- import"node:path";import"node:url";import.meta.url;import{applyReplacementsDeep as e}from"../../shared/src/template.js";import{isVendorWorkflowConfig as t}from"../../shared/src/config-schema/workflow.js";import{DEFAULT_PACKAGE_MANAGER_VERSIONS as n}from"../../shared/src/toolchain.js";import{toYaml as r}from"../../shared/src/yaml.js";import"../../shared/src/index.js";const i={nodeVersion:`22`,yarnVersion:`4.17.1`,packageManager:`yarn`,mainBranch:`main`,devBranch:`main`,tooling:`dbx`,commitlintConfig:`commitlint.config.mjs`},a={ci:`ci.yml`,changelog:`changelog.yml`,release:`release.yml`,sync:`sync.yml`,issues:`issues.yml`},o=`.github/workflows`,s=t;function c(e,t=o){let n=(e??t).replace(/\\/g,`/`).replace(/^\.?\//,``).replace(/\/+$/,``);if(/^[a-zA-Z]:/.test(n)||n.split(`/`).includes(`..`))throw Error(`invalid workflow directory "${e}" (must stay inside the project).`);return n}function l(e,t){let n=(e??t).trim();if(!n||/[\\/]/.test(n)||n===`.`||n===`..`)throw Error(`invalid workflow filename "${e}" (expected a file name).`);return n}function u(e,t,n){switch(e){case`gitlab`:return{dir:``,filename:`.gitlab-ci.yml`};case`azure`:return{dir:``,filename:`azure-pipelines.yml`};default:return{dir:o,filename:n??`${t}.yml`}}}function d(e,t,n=`${e}.yml`){let r=t&&typeof t==`object`?t:void 0,i=u(s(r)?r.provider:`github`,e,n),a=c(r?.dir,i.dir),o=l(r?.filename,i.filename);return a?`${a}/${o}`:o}function f(e){return e===void 0?!1:typeof e==`boolean`?e:typeof e==`string`?e.trim().length>0:e.enabled!==!1}function p(e){let t=String(e.packageManager??`yarn`);return String(e.packageManagerVersion??e.yarnVersion??n[t]??`4.17.1`)}function m(e){let t=e.config?.tokens??{},n={...i,...e.tokens,...t},r=t.packageManager;return r!==void 0&&r!==e.tokens.packageManager&&t.packageManagerVersion===void 0&&t.yarnVersion===void 0&&(delete n.packageManagerVersion,delete n.yarnVersion),t.packageManagerVersion===void 0&&t.yarnVersion!==void 0&&(n.packageManagerVersion=t.yarnVersion),n}function h(e,t){let n=t??String(e.tooling??`dbx`);switch(String(e.packageManager??`yarn`)){case`pnpm`:return`pnpm exec ${n}`;case`npm`:return`npx ${n}`;case`bun`:return`bunx ${n}`;default:return`${e.packageManager??`yarn`} ${n}`}}function g(e){let t=String(e.packageManager??`yarn`),n=p(e),r=[{name:`Checkout`,uses:`actions/checkout@v4`,with:{"fetch-depth":0,token:"${{ secrets.GITHUB_TOKEN }}"}},{name:`Setup Node`,uses:`actions/setup-node@v4`,with:{"node-version":String(e.nodeVersion)}}];return t===`bun`?[...r,{name:`Setup Bun`,uses:`oven-sh/setup-bun@v2`,with:{"bun-version":n}},{name:`Install dependencies`,run:`bun install --frozen-lockfile`}]:t===`npm`?[...r,{name:`Install dependencies`,run:`npm install -g npm@${n}\nnpm ci`}]:[...r,{name:`Enable Corepack`,run:`corepack enable\ncorepack prepare ${t}@${n} --activate`},{name:`Install dependencies`,run:t===`pnpm`?`pnpm install --frozen-lockfile`:`yarn install --immutable`}]}function _(e,t={}){let n=h(e),r=String(e.mainBranch),i=String(e.devBranch),a=t.commitlint!==!1;return{ci:{name:`CI`,on:{push:{branches:[r]},pull_request:{branches:[`release/**`,`feat/**`,`feature/**`,`fix/**`,`chore/**`]}},jobs:{ci:{"runs-on":`ubuntu-latest`,steps:[...g(e),...a?[{name:`Commitlint (Conventional Commits)`,if:"${{ github.event_name == 'pull_request' || github.event.before != '0000000000000000000000000000000000000000' }}",run:`set -euo pipefail\nbase="\${{ github.event.pull_request.base.sha || github.event.before }}"\nhead="\${{ github.event.pull_request.head.sha || github.event.after }}"\n${h(e,`commitlint`)} --from "$base" --to "$head" --config "${e.commitlintConfig}"`}]:[],{name:`Verify generated files are in sync`,run:`${n} sync --check --recursive`},{name:`Build`,run:`${e.packageManager} build`}]}}},changelog:{name:`Changelog (dev)`,on:{push:{branches:[i]}},permissions:{contents:`write`},concurrency:{group:`changelog-dev`,"cancel-in-progress":!1},jobs:{"generate-changelog":{"runs-on":`ubuntu-latest`,if:`!startsWith(github.event.head_commit.message, 'chore: version packages ') && !startsWith(github.event.head_commit.message, 'release: ')`,env:{GITHUB_TOKEN:"${{ secrets.GITHUB_TOKEN }}"},steps:[...g(e),{name:`Generate changelog + bump versions`,env:{GITHUB_TOKEN:"${{ secrets.GITHUB_TOKEN }}"},run:[`set -euo pipefail`,'after="${{ github.event.after }}"; [ -n "$after" ] || after="HEAD"',`boundary="$(git log --format=%H --grep='^chore: version packages ' -1 || true)"`,`if [ -n "$boundary" ]; then range="$boundary..$after"; else range="$after"; fi`,`${n} changelog --range "$range"`].join(`
1
+ import"node:path";import"node:url";import.meta.url;import{applyReplacementsDeep as e}from"../../shared/src/template.js";import{isVendorWorkflowConfig as t}from"../../shared/src/config-schema/workflow.js";import{DEFAULT_PACKAGE_MANAGER_VERSIONS as n}from"../../shared/src/toolchain.js";import{toYaml as r}from"../../shared/src/yaml.js";import"../../shared/src/index.js";const i={nodeVersion:`22`,yarnVersion:`4.17.1`,packageManager:`yarn`,mainBranch:`main`,devBranch:`main`,tooling:`dbx`,commitlintConfig:`commitlint.config.mjs`},a={ci:`ci.yml`,changelog:`changelog.yml`,release:`release.yml`,sync:`sync.yml`,issues:`issues.yml`},o=`.github/workflows`,s=t;function c(e,t=o){let n=(e??t).replace(/\\/g,`/`).replace(/^\.?\//,``).replace(/\/+$/,``);if(/^[a-zA-Z]:/.test(n)||n.split(`/`).includes(`..`))throw Error(`invalid workflow directory "${e}" (must stay inside the project).`);return n}function l(e,t){let n=(e??t).trim();if(!n||/[\\/]/.test(n)||n===`.`||n===`..`)throw Error(`invalid workflow filename "${e}" (expected a file name).`);return n}function u(e,t,n){switch(e){case`gitlab`:return{dir:``,filename:`.gitlab-ci.yml`};case`azure`:return{dir:``,filename:`azure-pipelines.yml`};default:return{dir:o,filename:n??`${t}.yml`}}}function d(e,t,n=`${e}.yml`){let r=t&&typeof t==`object`?t:void 0,i=u(s(r)?r.provider:`github`,e,n),a=c(r?.dir,i.dir),o=l(r?.filename,i.filename);return a?`${a}/${o}`:o}function f(e){return e===void 0?!1:typeof e==`boolean`?e:typeof e==`string`?e.trim().length>0:e.enabled!==!1}function p(e){let t=String(e.packageManager??`yarn`);return String(e.packageManagerVersion??e.yarnVersion??n[t]??`4.17.1`)}function m(e){let t=e.config?.tokens??{},n={...i,...e.tokens,...t},r=t.packageManager;return r!==void 0&&r!==e.tokens.packageManager&&t.packageManagerVersion===void 0&&t.yarnVersion===void 0&&(delete n.packageManagerVersion,delete n.yarnVersion),t.packageManagerVersion===void 0&&t.yarnVersion!==void 0&&(n.packageManagerVersion=t.yarnVersion),n}function h(e,t){let n=t??String(e.tooling??`dbx`);switch(String(e.packageManager??`yarn`)){case`pnpm`:return`pnpm exec ${n}`;case`npm`:return`npx ${n}`;case`bun`:return`bunx ${n}`;default:return`${e.packageManager??`yarn`} ${n}`}}function g(e){let t=String(e.packageManager??`yarn`),n=p(e),r=[{name:`Checkout`,uses:`actions/checkout@v5`,with:{"fetch-depth":0,token:"${{ secrets.GITHUB_TOKEN }}"}},{name:`Setup Node`,uses:`actions/setup-node@v5`,with:{"node-version":String(e.nodeVersion),"package-manager-cache":!1}}];return t===`bun`?[...r,{name:`Setup Bun`,uses:`oven-sh/setup-bun@v2`,with:{"bun-version":n}},{name:`Install dependencies`,run:`bun install --frozen-lockfile`}]:t===`npm`?[...r,{name:`Install dependencies`,run:`npm install -g npm@${n}\nnpm ci`}]:[...r,{name:`Enable Corepack`,run:`corepack enable\ncorepack prepare ${t}@${n} --activate`},{name:`Install dependencies`,run:t===`pnpm`?`pnpm install --frozen-lockfile`:`yarn install --immutable`}]}function _(e,t={}){let n=h(e),r=String(e.mainBranch),i=String(e.devBranch),a=t.commitlint!==!1;return{ci:{name:`CI`,on:{push:{branches:[r]},pull_request:{branches:[`release/**`,`feat/**`,`feature/**`,`fix/**`,`chore/**`]}},jobs:{ci:{"runs-on":`ubuntu-latest`,steps:[...g(e),...a?[{name:`Commitlint (Conventional Commits)`,if:"${{ github.event_name == 'pull_request' || github.event.before != '0000000000000000000000000000000000000000' }}",run:`set -euo pipefail\nbase="\${{ github.event.pull_request.base.sha || github.event.before }}"\nhead="\${{ github.event.pull_request.head.sha || github.event.after }}"\n${h(e,`commitlint`)} --from "$base" --to "$head" --config "${e.commitlintConfig}"`}]:[],{name:`Verify generated files are in sync`,run:`${n} sync --check --recursive`},{name:`Build`,run:`${e.packageManager} build`}]}}},changelog:{name:`Changelog (dev)`,on:{push:{branches:[i]}},permissions:{contents:`write`},concurrency:{group:`changelog-dev`,"cancel-in-progress":!1},jobs:{"generate-changelog":{"runs-on":`ubuntu-latest`,if:`!startsWith(github.event.head_commit.message, 'chore: version packages ') && !startsWith(github.event.head_commit.message, 'release: ')`,env:{GITHUB_TOKEN:"${{ secrets.GITHUB_TOKEN }}"},steps:[...g(e),{name:`Generate changelog + bump versions`,env:{GITHUB_TOKEN:"${{ secrets.GITHUB_TOKEN }}"},run:[`set -euo pipefail`,'after="${{ github.event.after }}"; [ -n "$after" ] || after="HEAD"',`boundary="$(git log --format=%H --grep='^chore: version packages ' -1 || true)"`,`if [ -n "$boundary" ]; then range="$boundary..$after"; else range="$after"; fi`,`${n} changelog --range "$range"`].join(`
2
2
  `)},{name:`Commit + push changelog updates`,env:{GITHUB_TOKEN:"${{ secrets.GITHUB_TOKEN }}"},run:[`set -euo pipefail`,`git diff --quiet && { echo "No changelog changes."; exit 0; }`,`git config user.name "github-actions[bot]"`,`git config user.email "41898282+github-actions[bot]@users.noreply.github.com"`,`git add -- "*package.json" "*CHANGELOG.md"`,`git commit -m "chore: version packages ($(node -p "require('./package.json').version"))"`,`git push origin ${i}`].join(`
3
3
  `)}]}}},release:{name:`Release`,on:{push:{branches:[r]},workflow_dispatch:null},permissions:{contents:`write`,"pull-requests":`write`},concurrency:{group:`release`,"cancel-in-progress":!1},jobs:{"create-release-pr":{"runs-on":`ubuntu-latest`,if:`(github.event_name == 'push' || github.event_name == 'workflow_dispatch') && !startsWith(github.event.head_commit.message, 'chore: version packages ') && !startsWith(github.event.head_commit.message, 'release: ')`,env:{GITHUB_TOKEN:"${{ secrets.GITHUB_TOKEN }}"},steps:[...g(e),{name:`Open release PR`,env:{GITHUB_TOKEN:"${{ secrets.GITHUB_TOKEN }}"},run:[`set -euo pipefail`,`version="$(node -p "require('./package.json').version")"`,`branch="release/$version"`,`if git ls-remote --exit-code --heads origin "$branch" >/dev/null 2>&1; then`,` echo "Release PR already open for $version."; exit 0`,`fi`,`git config user.name "github-actions[bot]"`,`git config user.email "41898282+github-actions[bot]@users.noreply.github.com"`,`git checkout -b "$branch"`,`git add -A`,`git commit -m "chore: version packages ($version)" || true`,`git push origin "$branch"`,`notes="$(${n} changelog --release-notes "$version")"`,`[ -n "$notes" ] || notes="Release $version"`,`gh pr create --base ${r} --head "$branch" --title "release: $version" --body "$notes"`].join(`
4
4
  `)}]}}},sync:{name:`Toolchain sync`,on:{push:{branches:[.../* @__PURE__ */ new Set([r,i])]},pull_request:null},jobs:{sync:{"runs-on":`ubuntu-latest`,steps:[...g(e),{name:`Verify generated files are in sync`,run:`${n} sync --check --recursive`}]}}},issues:{name:`Issues`,on:{issues:{types:[`opened`]}},permissions:{issues:`write`},jobs:{"enforce-title":{"runs-on":`ubuntu-latest`,steps:[{name:`Check and rename issue title`,env:{GH_TOKEN:"${{ github.token }}",ISSUE_NUMBER:"${{ github.event.issue.number }}"},run:[`set -euo pipefail`,`labels=$(gh issue view "$ISSUE_NUMBER" --json labels -q '.labels[].name' || true)`,`title=$(gh issue view "$ISSUE_NUMBER" --json title -q '.title')`,`type=""`,`for label in $labels; do case "$label" in *bug*) type="bug" ;; esac; done`,`if [ -z "$type" ]; then for label in $labels; do case "$label" in *enhancement*|*feature*|*feat*) type="feat" ;; esac; done; fi`,`if [ -z "$type" ]; then echo "No bug/enhancement label on issue #$ISSUE_NUMBER; skipping."; exit 0; fi`,`prefix="[bug]"; [ "$type" = "feat" ] && prefix="[feat]"`,`stripped=$(printf '%s' "$title" | sed -E 's/^\\[(bug|feat)\\] *//i')`,`new_title="$prefix $stripped"`,`if [ "$new_title" = "$title" ]; then echo "Issue #$ISSUE_NUMBER title already conforms."; exit 0; fi`,`gh issue edit "$ISSUE_NUMBER" --title "$new_title"`].join(`
@@ -0,0 +1,32 @@
1
+ import __tsdown_shims_path from 'node:path';
2
+ import __tsdown_shims_url from 'node:url';
3
+ import { ToolchainConfigSections } from "../../shared/src/config-types.js";
4
+ import { DbxConfig } from "../../shared/src/toolchain.js";
5
+ import { FmtCustomGroup } from "../../shared/src/vite-defaults.js";
6
+ import "../../shared/src/index.js";
7
+ //#region packages/core/src/fmt-groups.d.ts
8
+ /**
9
+ * The environment variable the VS Code extension sets from
10
+ * {@link FORMAT_IMPORT_GROUP_DEFAULTS_SETTING}. `0`/`false` disables the
11
+ * resolved import groups (the default is enabled).
12
+ */
13
+ export declare const FORMAT_IMPORT_GROUP_DEFAULTS_ENV = "DBX_ENABLE_FORMAT_IMPORT_GROUP_DEFAULTS";
14
+ /** The VS Code setting that toggles the resolved import groups. */
15
+ export declare const FORMAT_IMPORT_GROUP_DEFAULTS_SETTING = "deltabox.toolchain.enableFormatImportGroupDefaults";
16
+ /** The options {@link resolveFmtCustomGroups} accepts. */
17
+ export interface ResolveFmtCustomGroupsOptions extends Pick<ToolchainConfigSections, 'project'> {
18
+ /** Project root to discover the project graph from (default: `process.cwd()`). */
19
+ cwd?: string;
20
+ /** Load this `dbx.config.*` file when resolving the project identity. */
21
+ config?: string;
22
+ }
23
+ /** A loaded `dbx.config` and/or inline `project`, like `ResolveViteInput`. */
24
+ export type ResolveFmtCustomGroupsInput = DbxConfig & ResolveFmtCustomGroupsOptions;
25
+ /**
26
+ * Resolve the `sortImports.customGroups` definitions for every dbx project in
27
+ * the repository. The default uses the project graph (so it is safe to call
28
+ * from inside a `dbx.config.*`); `config` or an inline `project` adds a project
29
+ * whose identity is not in the graph.
30
+ */
31
+ export declare function resolveFmtCustomGroups(input?: ResolveFmtCustomGroupsInput | null): Promise<FmtCustomGroup[]>;
32
+ //#endregion
@@ -0,0 +1 @@
1
+ import{default as e}from"node:path";import"node:url";import.meta.url;import{readJsonAt as t,readJsoncAt as n}from"../../shared/src/fs-utils.js";import{projectFromPackageJson as r,splitPackageName as i}from"../../shared/src/project.js";import{fmtCustomGroupsForProjects as a}from"../../shared/src/vite-defaults.js";import"../../shared/src/index.js";import{loadToolchainConfig as o}from"./loader.js";import{buildProjectGraph as s}from"./graph.js";import c from"node:fs";const l=`DBX_ENABLE_FORMAT_IMPORT_GROUP_DEFAULTS`,u=`deltabox.toolchain.enableFormatImportGroupDefaults`;function d(e){try{let t=n(e,`.vscode/settings.json`)?.[u];return typeof t==`boolean`?t:void 0}catch{return}}function f(t,n){let r=process.env[l]?.trim().toLowerCase();if(r)return![`0`,`false`,`off`,`no`,`disabled`].includes(r);for(let r of/* @__PURE__ */ new Set([e.resolve(t),e.resolve(n)])){let e=d(r);if(e!==void 0)return e}return!0}function p(t){let n=e.resolve(t);for(;;){if(c.existsSync(e.join(n,`.git`)))return n;let r=e.dirname(n);if(r===n)return e.resolve(t);n=r}}function m(e){let n=t(e,`package.json`);return n?r(n):{}}const h=/(^|\/)(?:test-)?fixtures?(?:\/|$)/i;async function g(t){let n=t??{},r=n.cwd?e.resolve(n.cwd):process.cwd(),c=p(r);if(!f(r,c))return[];let l=s(c).dbxProjects.filter(e=>!h.test(e.dir)).map(e=>i(e.name)),u;if(n.config){let t=e.isAbsolute(n.config)?n.config:e.resolve(r,n.config),i=await o(c,{config:t,skipHooks:!0,tolerant:!0});u={...m(e.dirname(t)),...i.config.project}}else{let e={...n.toolchain?.project,...n.project};Object.keys(e).length>0&&(u=e)}return u&&l.push(u),a(l)}export{l as FORMAT_IMPORT_GROUP_DEFAULTS_ENV,u as FORMAT_IMPORT_GROUP_DEFAULTS_SETTING,g as resolveFmtCustomGroups};
@@ -1,6 +1,7 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
3
  import { editorConfigSyncTask, toolingConfigTask } from "./editor-config.js";
4
+ import { FORMAT_IMPORT_GROUP_DEFAULTS_ENV, FORMAT_IMPORT_GROUP_DEFAULTS_SETTING, ResolveFmtCustomGroupsInput, ResolveFmtCustomGroupsOptions, resolveFmtCustomGroups } from "./fmt-groups.js";
4
5
  import { DBX_GITIGNORE_BLOCK, ensureDbxGitignore } from "./gitignore.js";
5
6
  import { BuildProjectGraphOptions, IGNORED_DIRS, PackageManager, ProjectGraph, ProjectNode, buildProjectGraph, detectPackageManager, orderProjects, projectGraphPath, readProjectGraph, writeProjectGraph } from "./graph.js";
6
7
  import { LoadToolchainConfigOptions, LoadedConfig, findConfigFile, findParentConfigFile, loadToolchainConfig, mergeToolchainConfig } from "./loader.js";
@@ -13,7 +14,7 @@ import { RemovedFile, RunSyncOptions, SyncResult, runSync } from "./sync.js";
13
14
  import { VscodeSyncOptions, vscodeSyncTask } from "./vscode.js";
14
15
  import { RunWatchOptions, resolveWatchGlobs, runWatch } from "./watch.js";
15
16
  declare namespace index_d_exports {
16
- export { BuildProjectGraphOptions, DBX_GITIGNORE_BLOCK, FileOrigin, IGNORED_DIRS, LoadToolchainConfigOptions, LoadedConfig, MANIFEST_DIR, MANIFEST_FILE, Manifest, PackageManager, ProjectGraph, ProjectNode, ProviderRegistryPath, RemovedFile, ResetProjectsOptions, ResetProjectsResult, ResetRestore, ResetSelectors, ResetToolchainOptions, ResetToolchainResult, RunSyncOptions, RunWatchOptions, SelectProjectsOptions, SelectedProject, SyncResult, TIMESTAMPS_FILE, TsconfigFileNames, VscodeSyncOptions, addGlobalProviderRegistry, addProjectProviderRegistry, buildProjectGraph, defaultGlobalProvidersDir, detectPackageManager, detectProjectType, editorConfigSyncTask, ensureDbxGitignore, findConfigFile, findParentConfigFile, globalProviderRegistryPath, legacyProviderRegistryPath, loadToolchainConfig, mergeToolchainConfig, orderProjects, projectGraphPath, providerRegistryPath, providerRegistryPaths, readAllProviders, readAllProvidersSync, readGlobalProviders, readManifest, readProjectGraph, readProviderRegistry, readSyncedAt, removeGlobalProviderRegistry, removeProjectProviderRegistry, resetProjects, resetToolchain, resolveProjectType, resolveWatchGlobs, runSync, runWatch, selectProjects, setGlobalProviderRegistries, setProjectProviderRegistries, toolingConfigTask, vscodeSyncTask, writeGlobalProviders, writeManifest, writeProjectGraph, writeProviderRegistry };
17
+ export { BuildProjectGraphOptions, DBX_GITIGNORE_BLOCK, FORMAT_IMPORT_GROUP_DEFAULTS_ENV, FORMAT_IMPORT_GROUP_DEFAULTS_SETTING, FileOrigin, IGNORED_DIRS, LoadToolchainConfigOptions, LoadedConfig, MANIFEST_DIR, MANIFEST_FILE, Manifest, PackageManager, ProjectGraph, ProjectNode, ProviderRegistryPath, RemovedFile, ResetProjectsOptions, ResetProjectsResult, ResetRestore, ResetSelectors, ResetToolchainOptions, ResetToolchainResult, ResolveFmtCustomGroupsInput, ResolveFmtCustomGroupsOptions, RunSyncOptions, RunWatchOptions, SelectProjectsOptions, SelectedProject, SyncResult, TIMESTAMPS_FILE, TsconfigFileNames, VscodeSyncOptions, addGlobalProviderRegistry, addProjectProviderRegistry, buildProjectGraph, defaultGlobalProvidersDir, detectPackageManager, detectProjectType, editorConfigSyncTask, ensureDbxGitignore, findConfigFile, findParentConfigFile, globalProviderRegistryPath, legacyProviderRegistryPath, loadToolchainConfig, mergeToolchainConfig, orderProjects, projectGraphPath, providerRegistryPath, providerRegistryPaths, readAllProviders, readAllProvidersSync, readGlobalProviders, readManifest, readProjectGraph, readProviderRegistry, readSyncedAt, removeGlobalProviderRegistry, removeProjectProviderRegistry, resetProjects, resetToolchain, resolveFmtCustomGroups, resolveProjectType, resolveWatchGlobs, runSync, runWatch, selectProjects, setGlobalProviderRegistries, setProjectProviderRegistries, toolingConfigTask, vscodeSyncTask, writeGlobalProviders, writeManifest, writeProjectGraph, writeProviderRegistry };
17
18
  }
18
19
  //#endregion
19
- export { BuildProjectGraphOptions, DBX_GITIGNORE_BLOCK, FileOrigin, IGNORED_DIRS, LoadToolchainConfigOptions, LoadedConfig, MANIFEST_DIR, MANIFEST_FILE, Manifest, PackageManager, ProjectGraph, ProjectNode, ProviderRegistryPath, RemovedFile, ResetProjectsOptions, ResetProjectsResult, ResetRestore, ResetSelectors, ResetToolchainOptions, ResetToolchainResult, RunSyncOptions, RunWatchOptions, SelectProjectsOptions, SelectedProject, SyncResult, TIMESTAMPS_FILE, TsconfigFileNames, VscodeSyncOptions, addGlobalProviderRegistry, addProjectProviderRegistry, buildProjectGraph, defaultGlobalProvidersDir, detectPackageManager, detectProjectType, editorConfigSyncTask, ensureDbxGitignore, findConfigFile, findParentConfigFile, globalProviderRegistryPath, index_d_exports, legacyProviderRegistryPath, loadToolchainConfig, mergeToolchainConfig, orderProjects, projectGraphPath, providerRegistryPath, providerRegistryPaths, readAllProviders, readAllProvidersSync, readGlobalProviders, readManifest, readProjectGraph, readProviderRegistry, readSyncedAt, removeGlobalProviderRegistry, removeProjectProviderRegistry, resetProjects, resetToolchain, resolveProjectType, resolveWatchGlobs, runSync, runWatch, selectProjects, setGlobalProviderRegistries, setProjectProviderRegistries, toolingConfigTask, vscodeSyncTask, writeGlobalProviders, writeManifest, writeProjectGraph, writeProviderRegistry };
20
+ export { BuildProjectGraphOptions, DBX_GITIGNORE_BLOCK, FORMAT_IMPORT_GROUP_DEFAULTS_ENV, FORMAT_IMPORT_GROUP_DEFAULTS_SETTING, FileOrigin, IGNORED_DIRS, LoadToolchainConfigOptions, LoadedConfig, MANIFEST_DIR, MANIFEST_FILE, Manifest, PackageManager, ProjectGraph, ProjectNode, ProviderRegistryPath, RemovedFile, ResetProjectsOptions, ResetProjectsResult, ResetRestore, ResetSelectors, ResetToolchainOptions, ResetToolchainResult, ResolveFmtCustomGroupsInput, ResolveFmtCustomGroupsOptions, RunSyncOptions, RunWatchOptions, SelectProjectsOptions, SelectedProject, SyncResult, TIMESTAMPS_FILE, TsconfigFileNames, VscodeSyncOptions, addGlobalProviderRegistry, addProjectProviderRegistry, buildProjectGraph, defaultGlobalProvidersDir, detectPackageManager, detectProjectType, editorConfigSyncTask, ensureDbxGitignore, findConfigFile, findParentConfigFile, globalProviderRegistryPath, index_d_exports, legacyProviderRegistryPath, loadToolchainConfig, mergeToolchainConfig, orderProjects, projectGraphPath, providerRegistryPath, providerRegistryPaths, readAllProviders, readAllProvidersSync, readGlobalProviders, readManifest, readProjectGraph, readProviderRegistry, readSyncedAt, removeGlobalProviderRegistry, removeProjectProviderRegistry, resetProjects, resetToolchain, resolveFmtCustomGroups, resolveProjectType, resolveWatchGlobs, runSync, runWatch, selectProjects, setGlobalProviderRegistries, setProjectProviderRegistries, toolingConfigTask, vscodeSyncTask, writeGlobalProviders, writeManifest, writeProjectGraph, writeProviderRegistry };
@@ -1 +1 @@
1
- import"node:path";import"node:url";import.meta.url;import{__exportAll as e}from"../../../_virtual/_rolldown/runtime.js";import{editorConfigSyncTask as t,toolingConfigTask as n}from"./editor-config.js";import{DBX_GITIGNORE_BLOCK as r,ensureDbxGitignore as i}from"./gitignore.js";import{detectProjectType as a,resolveProjectType as o}from"./project-type.js";import{findConfigFile as s,findParentConfigFile as c,loadToolchainConfig as l,mergeToolchainConfig as u}from"./loader.js";import{IGNORED_DIRS as d,buildProjectGraph as f,detectPackageManager as p,orderProjects as m,projectGraphPath as h,readProjectGraph as g,writeProjectGraph as _}from"./graph.js";import{MANIFEST_DIR as v,MANIFEST_FILE as y,TIMESTAMPS_FILE as b,readManifest as x,readSyncedAt as S,writeManifest as C}from"./manifest.js";import{addGlobalProviderRegistry as w,addProjectProviderRegistry as T,defaultGlobalProvidersDir as E,globalProviderRegistryPath as D,legacyProviderRegistryPath as O,providerRegistryPath as k,providerRegistryPaths as A,readAllProviders as j,readAllProvidersSync as M,readGlobalProviders as N,readProviderRegistry as P,removeGlobalProviderRegistry as F,removeProjectProviderRegistry as I,setGlobalProviderRegistries as L,setProjectProviderRegistries as R,writeGlobalProviders as z,writeProviderRegistry as B}from"./provider-registry.js";import{selectProjects as V}from"./select.js";import{resetProjects as H,resetToolchain as U}from"./reset.js";import{runSync as W}from"./sync.js";import{vscodeSyncTask as G}from"./vscode.js";import{resolveWatchGlobs as K,runWatch as q}from"./watch.js";var J=/* @__PURE__ */ e({DBX_GITIGNORE_BLOCK:()=>r,IGNORED_DIRS:()=>d,MANIFEST_DIR:()=>v,MANIFEST_FILE:()=>y,TIMESTAMPS_FILE:()=>b,addGlobalProviderRegistry:()=>w,addProjectProviderRegistry:()=>T,buildProjectGraph:()=>f,defaultGlobalProvidersDir:()=>E,detectPackageManager:()=>p,detectProjectType:()=>a,editorConfigSyncTask:()=>t,ensureDbxGitignore:()=>i,findConfigFile:()=>s,findParentConfigFile:()=>c,globalProviderRegistryPath:()=>D,legacyProviderRegistryPath:()=>O,loadToolchainConfig:()=>l,mergeToolchainConfig:()=>u,orderProjects:()=>m,projectGraphPath:()=>h,providerRegistryPath:()=>k,providerRegistryPaths:()=>A,readAllProviders:()=>j,readAllProvidersSync:()=>M,readGlobalProviders:()=>N,readManifest:()=>x,readProjectGraph:()=>g,readProviderRegistry:()=>P,readSyncedAt:()=>S,removeGlobalProviderRegistry:()=>F,removeProjectProviderRegistry:()=>I,resetProjects:()=>H,resetToolchain:()=>U,resolveProjectType:()=>o,resolveWatchGlobs:()=>K,runSync:()=>W,runWatch:()=>q,selectProjects:()=>V,setGlobalProviderRegistries:()=>L,setProjectProviderRegistries:()=>R,toolingConfigTask:()=>n,vscodeSyncTask:()=>G,writeGlobalProviders:()=>z,writeManifest:()=>C,writeProjectGraph:()=>_,writeProviderRegistry:()=>B});export{r as DBX_GITIGNORE_BLOCK,d as IGNORED_DIRS,v as MANIFEST_DIR,y as MANIFEST_FILE,b as TIMESTAMPS_FILE,w as addGlobalProviderRegistry,T as addProjectProviderRegistry,f as buildProjectGraph,E as defaultGlobalProvidersDir,p as detectPackageManager,a as detectProjectType,t as editorConfigSyncTask,i as ensureDbxGitignore,s as findConfigFile,c as findParentConfigFile,D as globalProviderRegistryPath,O as legacyProviderRegistryPath,l as loadToolchainConfig,u as mergeToolchainConfig,m as orderProjects,h as projectGraphPath,k as providerRegistryPath,A as providerRegistryPaths,j as readAllProviders,M as readAllProvidersSync,N as readGlobalProviders,x as readManifest,g as readProjectGraph,P as readProviderRegistry,S as readSyncedAt,F as removeGlobalProviderRegistry,I as removeProjectProviderRegistry,H as resetProjects,U as resetToolchain,o as resolveProjectType,K as resolveWatchGlobs,W as runSync,q as runWatch,V as selectProjects,L as setGlobalProviderRegistries,R as setProjectProviderRegistries,J as src_exports,n as toolingConfigTask,G as vscodeSyncTask,z as writeGlobalProviders,C as writeManifest,_ as writeProjectGraph,B as writeProviderRegistry};
1
+ import"node:path";import"node:url";import.meta.url;import{__exportAll as e}from"../../../_virtual/_rolldown/runtime.js";import{editorConfigSyncTask as t,toolingConfigTask as n}from"./editor-config.js";import{detectProjectType as r,resolveProjectType as i}from"./project-type.js";import{findConfigFile as a,findParentConfigFile as o,loadToolchainConfig as s,mergeToolchainConfig as c}from"./loader.js";import{IGNORED_DIRS as l,buildProjectGraph as u,detectPackageManager as d,orderProjects as f,projectGraphPath as p,readProjectGraph as m,writeProjectGraph as h}from"./graph.js";import{FORMAT_IMPORT_GROUP_DEFAULTS_ENV as g,FORMAT_IMPORT_GROUP_DEFAULTS_SETTING as _,resolveFmtCustomGroups as v}from"./fmt-groups.js";import{DBX_GITIGNORE_BLOCK as y,ensureDbxGitignore as b}from"./gitignore.js";import{MANIFEST_DIR as x,MANIFEST_FILE as S,TIMESTAMPS_FILE as C,readManifest as w,readSyncedAt as T,writeManifest as E}from"./manifest.js";import{addGlobalProviderRegistry as D,addProjectProviderRegistry as O,defaultGlobalProvidersDir as k,globalProviderRegistryPath as A,legacyProviderRegistryPath as j,providerRegistryPath as M,providerRegistryPaths as N,readAllProviders as P,readAllProvidersSync as F,readGlobalProviders as I,readProviderRegistry as L,removeGlobalProviderRegistry as R,removeProjectProviderRegistry as z,setGlobalProviderRegistries as B,setProjectProviderRegistries as V,writeGlobalProviders as H,writeProviderRegistry as U}from"./provider-registry.js";import{selectProjects as W}from"./select.js";import{resetProjects as G,resetToolchain as K}from"./reset.js";import{runSync as q}from"./sync.js";import{vscodeSyncTask as J}from"./vscode.js";import{resolveWatchGlobs as Y,runWatch as X}from"./watch.js";var Z=/* @__PURE__ */ e({DBX_GITIGNORE_BLOCK:()=>y,FORMAT_IMPORT_GROUP_DEFAULTS_ENV:()=>g,FORMAT_IMPORT_GROUP_DEFAULTS_SETTING:()=>_,IGNORED_DIRS:()=>l,MANIFEST_DIR:()=>x,MANIFEST_FILE:()=>S,TIMESTAMPS_FILE:()=>C,addGlobalProviderRegistry:()=>D,addProjectProviderRegistry:()=>O,buildProjectGraph:()=>u,defaultGlobalProvidersDir:()=>k,detectPackageManager:()=>d,detectProjectType:()=>r,editorConfigSyncTask:()=>t,ensureDbxGitignore:()=>b,findConfigFile:()=>a,findParentConfigFile:()=>o,globalProviderRegistryPath:()=>A,legacyProviderRegistryPath:()=>j,loadToolchainConfig:()=>s,mergeToolchainConfig:()=>c,orderProjects:()=>f,projectGraphPath:()=>p,providerRegistryPath:()=>M,providerRegistryPaths:()=>N,readAllProviders:()=>P,readAllProvidersSync:()=>F,readGlobalProviders:()=>I,readManifest:()=>w,readProjectGraph:()=>m,readProviderRegistry:()=>L,readSyncedAt:()=>T,removeGlobalProviderRegistry:()=>R,removeProjectProviderRegistry:()=>z,resetProjects:()=>G,resetToolchain:()=>K,resolveFmtCustomGroups:()=>v,resolveProjectType:()=>i,resolveWatchGlobs:()=>Y,runSync:()=>q,runWatch:()=>X,selectProjects:()=>W,setGlobalProviderRegistries:()=>B,setProjectProviderRegistries:()=>V,toolingConfigTask:()=>n,vscodeSyncTask:()=>J,writeGlobalProviders:()=>H,writeManifest:()=>E,writeProjectGraph:()=>h,writeProviderRegistry:()=>U});export{y as DBX_GITIGNORE_BLOCK,g as FORMAT_IMPORT_GROUP_DEFAULTS_ENV,_ as FORMAT_IMPORT_GROUP_DEFAULTS_SETTING,l as IGNORED_DIRS,x as MANIFEST_DIR,S as MANIFEST_FILE,C as TIMESTAMPS_FILE,D as addGlobalProviderRegistry,O as addProjectProviderRegistry,u as buildProjectGraph,k as defaultGlobalProvidersDir,d as detectPackageManager,r as detectProjectType,t as editorConfigSyncTask,b as ensureDbxGitignore,a as findConfigFile,o as findParentConfigFile,A as globalProviderRegistryPath,j as legacyProviderRegistryPath,s as loadToolchainConfig,c as mergeToolchainConfig,f as orderProjects,p as projectGraphPath,M as providerRegistryPath,N as providerRegistryPaths,P as readAllProviders,F as readAllProvidersSync,I as readGlobalProviders,w as readManifest,m as readProjectGraph,L as readProviderRegistry,T as readSyncedAt,R as removeGlobalProviderRegistry,z as removeProjectProviderRegistry,G as resetProjects,K as resetToolchain,v as resolveFmtCustomGroups,i as resolveProjectType,Y as resolveWatchGlobs,q as runSync,X as runWatch,W as selectProjects,B as setGlobalProviderRegistries,V as setProjectProviderRegistries,Z as src_exports,n as toolingConfigTask,J as vscodeSyncTask,H as writeGlobalProviders,E as writeManifest,h as writeProjectGraph,U as writeProviderRegistry};
@@ -1,5 +1,6 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
+ import { ProjectGraph } from "./graph.js";
3
4
  //#region packages/core/src/select.d.ts
4
5
  /** A project selected by {@link selectProjects}. */
5
6
  export interface SelectedProject {
@@ -26,6 +27,8 @@ export interface SelectProjectsOptions {
26
27
  kind?: 'all' | 'configured' | 'unconfigured';
27
28
  /** Maximum directory depth to scan (default 5). */
28
29
  maxDepth?: number;
30
+ /** Use an already-built graph instead of scanning the filesystem again. */
31
+ graph?: ProjectGraph;
29
32
  }
30
33
  /** Discover projects under a root, applying include/exclude + kind filters. */
31
34
  export declare function selectProjects(options: SelectProjectsOptions): SelectedProject[];
@@ -1 +1 @@
1
- import{default as e}from"node:path";import"node:url";import.meta.url;import{buildProjectGraph as t}from"./graph.js";const n=/[*?[\]{}]/,r=`<<dbx-globstar>>`;function i(e){let t=e.replace(/[.+^${}()|\\]/g,`\\$&`).replace(/\*\*/g,r).replace(/\*/g,`[^/]*`).replaceAll(r,`.*`).replace(/\?/g,`.`);return RegExp(`^${t}$`,`i`)}function a(t,r){let a=[t.rel,t.name??``,e.basename(t.rel)];if(n.test(r)){let e=i(r);return a.some(t=>e.test(t))}let o=r.toLowerCase();return a.some(e=>e.toLowerCase().includes(o))}function o(n){let r=t(n.root,n.maxDepth===void 0?{}:{maxDepth:n.maxDepth}).projects.map(t=>({dir:e.resolve(n.root,t.dir),rel:t.dir,...t.name?{name:t.name}:{},hasConfig:t.hasConfig})),i=n.kind??`all`,o=n.include?.filter(Boolean)??[],s=n.exclude?.filter(Boolean)??[];return r.filter(e=>!(i===`configured`&&!e.hasConfig||i===`unconfigured`&&e.hasConfig||o.length>0&&!o.some(t=>a(e,t))||s.some(t=>a(e,t))))}export{o as selectProjects};
1
+ import{default as e}from"node:path";import"node:url";import.meta.url;import{buildProjectGraph as t}from"./graph.js";const n=/[*?[\]{}]/,r=`<<dbx-globstar>>`;function i(e){let t=e.replace(/[.+^${}()|\\]/g,`\\$&`).replace(/\*\*/g,r).replace(/\*/g,`[^/]*`).replaceAll(r,`.*`).replace(/\?/g,`.`);return RegExp(`^${t}$`,`i`)}function a(t,r){let a=[t.rel,t.name??``,e.basename(t.rel)];if(n.test(r)){let e=i(r);return a.some(t=>e.test(t))}let o=r.toLowerCase();return a.some(e=>e.toLowerCase().includes(o))}function o(n){let r=(n.graph??t(n.root,n.maxDepth===void 0?{}:{maxDepth:n.maxDepth})).projects.map(t=>({dir:e.resolve(n.root,t.dir),rel:t.dir,...t.name?{name:t.name}:{},hasConfig:t.hasConfig})),i=n.kind??`all`,o=n.include?.filter(Boolean)??[],s=n.exclude?.filter(Boolean)??[];return r.filter(e=>!(i===`configured`&&!e.hasConfig||i===`unconfigured`&&e.hasConfig||o.length>0&&!o.some(t=>a(e,t))||s.some(t=>a(e,t))))}export{o as selectProjects};
@@ -1 +1 @@
1
- import{default as e}from"node:path";import"node:url";import.meta.url;import{logger as t}from"../../shared/src/logger.js";import"../../shared/src/index.js";import{ensureDbxGitignore as n}from"./gitignore.js";import{resolveProjectType as r}from"./project-type.js";import{readManifest as i,writeManifest as a}from"./manifest.js";import{resolveManagedPath as o}from"./paths.js";import s from"node:fs";function c(e){return e.replace(/\\/g,`/`)}async function l(l){let{tasks:u,cwd:d,config:f,ownConfig:p,tokens:m}=l,h=l.quiet?()=>{}:l.log??(e=>t.info(e)),g=l.quiet?()=>{}:(e,n)=>t.warn(e,n),_=l.projectType??r(d,f),v=i(d),y={cwd:d,projectType:_,config:f,ownConfig:p??f,tokens:m,log:h,warn:g,check:l.check===!0,managedFiles:v.files,manifest:{...v.extras,...v.tsconfigOverrides?{tsconfigOverrides:v.tsconfigOverrides}:{},...v.snapshots?{snapshots:v.snapshots}:{}}},b=f.hooks??{};await b.beforeSync?.(y);let x=u.filter(e=>(!e.projectTypes||e.projectTypes.includes(_))&&(!e.enabled||e.enabled(f)));h(`running ${x.length} task(s)${l.check?` (check)`:``} [${_}]`);let S=[];for(let e of x){h(` - ${e.name}`),await b.beforeTask?.({task:e,ctx:y});let t=await e.run(y),n=Array.isArray(t)?t:void 0;n&&S.push(...n),await b.afterTask?.({task:e,ctx:y,...n?{files:n}:{}})}for(let e of S)o(d,e.path);let C=new Map(S.map(t=>{let n=o(d,t.path);return[c(e.relative(d,n)),t.content]})),w=new Set(S.filter(e=>e.track===!1).map(e=>c(e.path))),T=/* @__PURE__ */ new Set;for(let e of u){if(e.projectTypes&&!e.projectTypes.includes(_))continue;let t=typeof e.keep==`function`?e.keep(f):e.keep??[];for(let e of t)T.add(e)}let E=e=>{for(let t of T)if(e===t||e.endsWith(`/${t}`)||e.endsWith(t))return!0;return!1},D=[];for(let[t,n]of C){let r=e.resolve(d,t);(s.existsSync(r)?s.readFileSync(r,`utf-8`):void 0)!==n&&D.push(t)}let O=new Map([...C.keys()].map(t=>[t,s.existsSync(e.resolve(d,t))])),k=e=>v.origins?.[e]||(v.files.includes(e)||O.get(e)?`adopted`:`created`),A=[],j=[];for(let e of v.files){if(C.has(e)||w.has(e)||E(e)||k(e)!==`created`)continue;let t;try{t=o(d,e)}catch(t){g(`sync: ignoring unsafe manifest path "${e}": ${t instanceof Error?t.message:String(t)}`);continue}s.existsSync(t)&&(A.push(e),j.push({path:e,content:s.readFileSync(t,`utf-8`)}))}let M=D.length===0&&A.length===0;if(l.check){if(M)h(`generated files are in sync.`);else{h(`generated files are out of date:`);for(let e of D)h(` M ${e}`);for(let e of A)h(` D ${e}`);h("Run `dbx sync` to regenerate them.")}let e={written:[],changed:D,removed:A,removedFiles:j,upToDate:M};return await b.afterSync?.({cwd:d,config:f,result:e}),e}let N=[];for(let[t,n]of C){let r=e.resolve(d,t);s.mkdirSync(e.dirname(r),{recursive:!0}),s.writeFileSync(r,n,`utf-8`),N.push(t)}for(let t of A)s.rmSync(e.resolve(d,t),{force:!0});let P=[...C.keys()].filter(e=>!w.has(e)),F={};for(let e of P)F[e]=k(e);a(d,P,void 0,F,y.manifest),n(d)&&h(` I .gitignore (added the .dbx ignore block)`),h(`wrote ${N.length}, removed ${A.length} file(s)${D.length?`, updated ${D.length}`:``}.`);let I={written:N,changed:D,removed:A,removedFiles:j,upToDate:M};return await b.afterSync?.({cwd:d,config:f,result:I}),I}export{l as runSync};
1
+ import{default as e}from"node:path";import"node:url";import.meta.url;import{logger as t}from"../../shared/src/logger.js";import"../../shared/src/index.js";import{resolveProjectType as n}from"./project-type.js";import{ensureDbxGitignore as r}from"./gitignore.js";import{readManifest as i,writeManifest as a}from"./manifest.js";import{resolveManagedPath as o}from"./paths.js";import s from"node:fs";function c(e){return e.replace(/\\/g,`/`)}async function l(l){let{tasks:u,cwd:d,config:f,ownConfig:p,tokens:m}=l,h=l.quiet?()=>{}:l.log??(e=>t.info(e)),g=l.quiet?()=>{}:(e,n)=>t.warn(e,n),_=l.projectType??n(d,f),v=i(d),y={cwd:d,projectType:_,config:f,ownConfig:p??f,tokens:m,log:h,warn:g,check:l.check===!0,managedFiles:v.files,manifest:{...v.extras,...v.tsconfigOverrides?{tsconfigOverrides:v.tsconfigOverrides}:{},...v.snapshots?{snapshots:v.snapshots}:{}}},b=f.hooks??{};await b.beforeSync?.(y);let x=u.filter(e=>(!e.projectTypes||e.projectTypes.includes(_))&&(!e.enabled||e.enabled(f)));h(`running ${x.length} task(s)${l.check?` (check)`:``} [${_}]`);let S=[];for(let e of x){h(` - ${e.name}`),await b.beforeTask?.({task:e,ctx:y});let t=await e.run(y),n=Array.isArray(t)?t:void 0;n&&S.push(...n),await b.afterTask?.({task:e,ctx:y,...n?{files:n}:{}})}for(let e of S)o(d,e.path);let C=new Map(S.map(t=>{let n=o(d,t.path);return[c(e.relative(d,n)),t.content]})),w=new Set(S.filter(e=>e.track===!1).map(e=>c(e.path))),T=/* @__PURE__ */ new Set;for(let e of u){if(e.projectTypes&&!e.projectTypes.includes(_))continue;let t=typeof e.keep==`function`?e.keep(f):e.keep??[];for(let e of t)T.add(e)}let E=e=>{for(let t of T)if(e===t||e.endsWith(`/${t}`)||e.endsWith(t))return!0;return!1},D=[];for(let[t,n]of C){let r=e.resolve(d,t);(s.existsSync(r)?s.readFileSync(r,`utf-8`):void 0)!==n&&D.push(t)}let O=new Map([...C.keys()].map(t=>[t,s.existsSync(e.resolve(d,t))])),k=e=>v.origins?.[e]||(v.files.includes(e)||O.get(e)?`adopted`:`created`),A=[],j=[];for(let e of v.files){if(C.has(e)||w.has(e)||E(e)||k(e)!==`created`)continue;let t;try{t=o(d,e)}catch(t){g(`sync: ignoring unsafe manifest path "${e}": ${t instanceof Error?t.message:String(t)}`);continue}s.existsSync(t)&&(A.push(e),j.push({path:e,content:s.readFileSync(t,`utf-8`)}))}let M=D.length===0&&A.length===0;if(l.check){if(M)h(`generated files are in sync.`);else{h(`generated files are out of date:`);for(let e of D)h(` M ${e}`);for(let e of A)h(` D ${e}`);h("Run `dbx sync` to regenerate them.")}let e={written:[],changed:D,removed:A,removedFiles:j,upToDate:M};return await b.afterSync?.({cwd:d,config:f,result:e}),e}let N=[];for(let[t,n]of C){let r=e.resolve(d,t);s.mkdirSync(e.dirname(r),{recursive:!0}),s.writeFileSync(r,n,`utf-8`),N.push(t)}for(let t of A)s.rmSync(e.resolve(d,t),{force:!0});let P=[...C.keys()].filter(e=>!w.has(e)),F={};for(let e of P)F[e]=k(e);a(d,P,void 0,F,y.manifest),r(d)&&h(` I .gitignore (added the .dbx ignore block)`),h(`wrote ${N.length}, removed ${A.length} file(s)${D.length?`, updated ${D.length}`:``}.`);let I={written:N,changed:D,removed:A,removedFiles:j,upToDate:M};return await b.afterSync?.({cwd:d,config:f,result:I}),I}export{l as runSync};
@@ -1 +1 @@
1
- import{default as e}from"node:path";import"node:url";import.meta.url;import{logger as t}from"../../../shared/src/logger.js";import"../../../shared/src/index.js";import{loadToolchainConfig as n}from"../../../core/src/loader.js";import{selectProjects as r}from"../../../core/src/select.js";import{runSync as i}from"../../../core/src/sync.js";import"../../../core/src/index.js";import{diffFiles as a,hasPending as o}from"../check.js";import{listMigrations as s,migrations as c}from"../registry.js";import l from"node:fs";import{cancel as u,isCancel as d,multiselect as f}from"@clack/prompts";function p(e){return!!(process.stdin.isTTY&&process.stdout.isTTY)&&e.json!==!0}function m(){u(`Cancelled.`),process.exitCode=1}function h(){return[{name:`migrate`,description:`Migrate Biome / ESLint / Prettier / Dprint / Oxc config, or fold vite.config.* into dbx.config.`,options:[{flags:`--from <tool>`,description:`Source tool (repeatable): biome | eslint | prettier | dprint | oxc | vite | all.`,multiple:!0},{flags:`--to <tool>`,description:`Target tool (default: oxc).`,default:`oxc`},{flags:`--cwd <dir>`,description:`Project root (default: cwd).`},{flags:`--recursive`,description:`Also migrate the discovered projects under the root (default: root only).`},{flags:`--write`,description:`Write the files (default: dry-run).`},{flags:`--dry-run`,description:`Do not write anything (default).`},{flags:`--check`,description:`CI: exit non-zero when the oxc config is stale.`},{flags:`--target <target>`,description:`files (default) | vite.`},{flags:`--online`,description:`Allow network (e.g. @oxlint/migrate).`},{flags:`--ignore-vite-config-file`,description:"Do not remove the folded `vite.config.*`."},{flags:`--ignore-managed-files`,description:`Skip the post-migration sync (leave the toolchain-managed files as-is).`},{flags:`--ignore-changelog`,description:`Skip the changelog task in the post-migration sync.`},{flags:`--json`,description:`Print the result as JSON.`}],run:async(s,u)=>{let h=s.cwd??u.cwd,g=!!s.check,_=!!s.write&&!s.dryRun&&!g,v=!!s.online,y=s.from,b=Array.isArray(y)?y:y?[y]:[],x=b.includes(`all`),S=b.filter(e=>e!==`all`),C=e=>b.length===0||x||S.includes(e.from),w=s.target??`files`,T=String(s.to??`oxc`);if(T!==`oxc`)throw Error(`--to ${T} is not supported (only 'oxc').`);let E=!!s.recursive,D=e=>{let t=c().filter(t=>C(t)&&t.detect(e));if(b.length>0)return t;let n=new Map(t.map(e=>[e.id,e])),r=[],i=n.get(`biome-to-oxc`);if(i)r.push(i);else{let e=[`prettier-to-oxc`,`dprint-to-oxc`].map(e=>n.get(e)).find(Boolean);e&&r.push(e);let t=n.get(`eslint-to-oxc`);t&&r.push(t)}for(let e of[`oxc-to-toolchain`,`vite-to-toolchain`]){let t=n.get(e);t&&r.push(t)}return r},O=[h];if(E){let n=r({root:h}).filter(e=>D(e.dir).length>0);if(n.length===0){t.info(`nothing to migrate under ${h}.`);return}let i=n;if(p(s)){let t=await f({message:`Which projects should I migrate?`,required:!0,options:[{value:`__all__`,label:`All projects`},...n.map(t=>({value:t.dir,label:t.rel===`.`?e.basename(h):t.rel,...t.name?{hint:t.name}:{}}))]});if(d(t)){m();return}let r=t;i=r.includes(`__all__`)?n:n.filter(e=>r.includes(e.dir))}O=i.map(e=>e.dir)}let k=[];for(let e of O)for(let t of D(e))k.push({dir:e,result:await t.run({cwd:e,write:_,online:v,target:w,ignoreViteConfigFile:!!s.ignoreViteConfigFile,ignoreManagedFiles:!!s.ignoreManagedFiles,ignoreChangelog:!!s.ignoreChangelog})});if(k.length===0){let e=c().some(e=>C(e));t.info(S.length>0&&!x&&!e?`no migration registered for: ${S.join(`, `)}.`:`nothing to migrate (no Biome/ESLint/Prettier/Dprint/Oxc/vite config detected).`);return}let A=t=>E?`${e.relative(h,t)||`.`}: `:``,j=[...new Set(k.filter(({result:e})=>e.written.length>0||(e.removed?.length??0)>0).map(({dir:e})=>e))];if(g){let n=k.flatMap(({result:e})=>a(e.files??[])),r=n.filter(e=>e.status!==`same`),i=k.flatMap(({result:e})=>e.removed??[]).filter(e=>l.existsSync(e));if(s.json)t.raw(JSON.stringify(k.map(e=>e.result),null,4));else if(r.length||i.length){for(let n of r)t.info(`${n.status} ${e.relative(h,n.path)||n.path}`);for(let n of i)t.info(`D ${e.relative(h,n)||n}`);t.info(`${r.length+i.length} file(s) out of date — run \`migrate --write\` to apply.`)}else t.info(`up to date.`);(o(n)||i.length>0)&&(process.exitCode=1);return}let M=async()=>{if(!_||j.length===0||s.ignoreManagedFiles||!u.syncTasks?.length)return;let e=s.ignoreChangelog?u.syncTasks.filter(e=>e.name!==`changelog`):u.syncTasks;for(let r of j){let a=await n(r);s.json||t.info(`${A(r)}regenerating managed files.`),await i({tasks:e,cwd:r,projectType:a.projectType,config:a.config,ownConfig:a.ownConfig,tokens:a.tokens,quiet:s.json===!0})}};if(s.json)await M(),t.raw(JSON.stringify(k.map(e=>e.result),null,4));else{for(let{dir:e,result:n}of k){t.info(`${A(e)}${n.from} -> ${n.to} ${_?`wrote`:`would write`}`);for(let e of n.written)t.info(` ${_?`+`:`?`} ${e}`);for(let e of n.removed??[])t.info(` ${_?`-`:`?`} ${e}`);for(let e of n.notes??[])t.info(` ${e}`);if(n.unmapped?.length){t.info(` unmapped (${n.unmapped.length}):`);for(let e of n.unmapped.slice(0,25))t.info(` - ${e.source}: ${e.reason}`)}}!_&&j.length>0&&!s.ignoreManagedFiles&&t.info(`managed files are regenerated after --write; pass --ignore-managed-files to skip.`),await M(),_||t.info(`dry-run — re-run with --write to apply.`)}}},{name:`migrate:list`,description:`List the registered migrations and whether each is detected.`,options:[{flags:`--cwd <dir>`,description:`Project root (default: cwd).`},{flags:`--json`,description:`Print as JSON.`}],run:(e,n)=>{let r=e.cwd??n.cwd,i=s(r);if(e.json)t.raw(JSON.stringify(i,null,4));else for(let e of i)t.info(` ${e.id.padEnd(16)} ${e.from} -> ${e.to} [${e.detected?`detected`:`not found`}]`),t.info(` ${e.description}`)}}]}export{h as migrateCommands};
1
+ import{default as e}from"node:path";import"node:url";import.meta.url;import{logger as t}from"../../../shared/src/logger.js";import"../../../shared/src/index.js";import{loadToolchainConfig as n}from"../../../core/src/loader.js";import{selectProjects as r}from"../../../core/src/select.js";import{runSync as i}from"../../../core/src/sync.js";import"../../../core/src/index.js";import{diffFiles as a,hasPending as o}from"../check.js";import{viteConfigHasFmtLint as s}from"../vite.js";import{listMigrations as c,migrations as l}from"../registry.js";import u from"node:fs";import{cancel as d,isCancel as f,multiselect as p}from"@clack/prompts";function m(e){return!!(process.stdin.isTTY&&process.stdout.isTTY)&&e.json!==!0}function h(){d(`Cancelled.`),process.exitCode=1}function g(){return[{name:`migrate`,description:`Migrate Biome / ESLint / Prettier / Dprint / Oxc config, or fold vite.config.* into dbx.config.`,options:[{flags:`--from <tool>`,description:`Source tool (repeatable): biome | eslint | prettier | dprint | oxc | vite | all.`,multiple:!0},{flags:`--to <tool>`,description:`Target tool (default: oxc).`,default:`oxc`},{flags:`--cwd <dir>`,description:`Project root (default: cwd).`},{flags:`--recursive`,description:`Also migrate the discovered projects under the root (default: root only).`},{flags:`--write`,description:`Write the files (default: dry-run).`},{flags:`--dry-run`,description:`Do not write anything (default).`},{flags:`--check`,description:`CI: exit non-zero when the oxc config is stale.`},{flags:`--target <target>`,description:`files (default) | vite.`},{flags:`--online`,description:`Allow network (e.g. @oxlint/migrate).`},{flags:`--ignore-vite-config-file`,description:"Do not remove the folded `vite.config.*`."},{flags:`--ignore-managed-files`,description:`Skip the post-migration sync (leave the toolchain-managed files as-is).`},{flags:`--ignore-changelog`,description:`Skip the changelog task in the post-migration sync.`},{flags:`--json`,description:`Print the result as JSON.`}],run:async(c,d)=>{let g=c.cwd??d.cwd,_=!!c.check,v=!!c.write&&!c.dryRun&&!_,y=!!c.online,b=c.from,x=Array.isArray(b)?b:b?[b]:[],S=x.includes(`all`),C=x.filter(e=>e!==`all`),w=e=>x.length===0||S||C.includes(e.from),T=c.target??`files`,E=String(c.to??`oxc`);if(E!==`oxc`)throw Error(`--to ${E} is not supported (only 'oxc').`);let D=!!c.recursive,O=e=>{let t=l().filter(t=>w(t)&&t.detect(e));if(x.length>0)return t;let n=new Map(t.map(e=>[e.id,e])),r=[],i=n.get(`biome-to-oxc`);if(i)r.push(i);else{let e=[`prettier-to-oxc`,`dprint-to-oxc`].map(e=>n.get(e)).find(Boolean);e&&r.push(e);let t=n.get(`eslint-to-oxc`);t&&r.push(t)}for(let e of[`oxc-to-toolchain`,`vite-to-toolchain`]){let t=n.get(e);t&&r.push(t)}return r},k=[g];if(D){let n=r({root:g}).filter(e=>O(e.dir).length>0);if(n.length===0){t.info(`nothing to migrate under ${g}.`);return}let i=n;if(m(c)){let t=await p({message:`Which projects should I migrate?`,required:!0,options:[{value:`__all__`,label:`All projects`},...n.map(t=>({value:t.dir,label:t.rel===`.`?e.basename(g):t.rel,...t.name?{hint:t.name}:{}}))]});if(f(t)){h();return}let r=t;i=r.includes(`__all__`)?n:n.filter(e=>r.includes(e.dir))}k=i.map(e=>e.dir)}let A=c.target!==void 0,j=e=>x.length===0||S||C.includes(e),M=[];for(let e of k){let t=A?void 0:s(e),n=!A&&j(`vite`)&&T===`files`&&t&&(t.fmt||t.lint)?`vite`:T,r=async t=>{M.push({dir:e,result:await t.run({cwd:e,write:v,online:y,target:n,ignoreViteConfigFile:!!c.ignoreViteConfigFile,ignoreManagedFiles:!!c.ignoreManagedFiles,ignoreChangelog:!!c.ignoreChangelog})})},i=O(e);for(let e of i)e.id!==`oxc-to-toolchain`&&e.id!==`vite-to-toolchain`&&await r(e);let a=j(`oxc`)?l().find(e=>e.id===`oxc-to-toolchain`):void 0;a&&a.detect(e)&&await r(a);let o=j(`vite`)?l().find(e=>e.id===`vite-to-toolchain`):void 0;o&&o.detect(e)&&await r(o)}if(M.length===0){let e=l().some(e=>w(e));t.info(C.length>0&&!S&&!e?`no migration registered for: ${C.join(`, `)}.`:`nothing to migrate (no Biome/ESLint/Prettier/Dprint/Oxc/vite config detected).`);return}let N=t=>D?`${e.relative(g,t)||`.`}: `:``,P=[...new Set(M.filter(({result:e})=>e.written.length>0||(e.removed?.length??0)>0).map(({dir:e})=>e))];if(_){let n=M.flatMap(({result:e})=>a(e.files??[])),r=n.filter(e=>e.status!==`same`),i=M.flatMap(({result:e})=>e.removed??[]).filter(e=>u.existsSync(e));if(c.json)t.raw(JSON.stringify(M.map(e=>e.result),null,4));else if(r.length||i.length){for(let n of r)t.info(`${n.status} ${e.relative(g,n.path)||n.path}`);for(let n of i)t.info(`D ${e.relative(g,n)||n}`);t.info(`${r.length+i.length} file(s) out of date — run \`migrate --write\` to apply.`)}else t.info(`up to date.`);(o(n)||i.length>0)&&(process.exitCode=1);return}let F=async()=>{if(!v||P.length===0||c.ignoreManagedFiles||!d.syncTasks?.length)return;let e=c.ignoreChangelog?d.syncTasks.filter(e=>e.name!==`changelog`):d.syncTasks;for(let r of P){let a=await n(r);c.json||t.info(`${N(r)}regenerating managed files.`),await i({tasks:e,cwd:r,projectType:a.projectType,config:a.config,ownConfig:a.ownConfig,tokens:a.tokens,quiet:c.json===!0})}};if(c.json)await F(),t.raw(JSON.stringify(M.map(e=>e.result),null,4));else{for(let{dir:e,result:n}of M){t.info(`${N(e)}${n.from} -> ${n.to} ${v?`wrote`:`would write`}`);for(let e of n.written)t.info(` ${v?`+`:`?`} ${e}`);for(let e of n.removed??[])t.info(` ${v?`-`:`?`} ${e}`);for(let e of n.notes??[])t.info(` ${e}`);if(n.unmapped?.length){t.info(` unmapped (${n.unmapped.length}):`);for(let e of n.unmapped.slice(0,25))t.info(` - ${e.source}: ${e.reason}`)}}!v&&P.length>0&&!c.ignoreManagedFiles&&t.info(`managed files are regenerated after --write; pass --ignore-managed-files to skip.`),await F(),v||t.info(`dry-run — re-run with --write to apply.`)}}},{name:`migrate:list`,description:`List the registered migrations and whether each is detected.`,options:[{flags:`--cwd <dir>`,description:`Project root (default: cwd).`},{flags:`--json`,description:`Print as JSON.`}],run:(e,n)=>{let r=e.cwd??n.cwd,i=c(r);if(e.json)t.raw(JSON.stringify(i,null,4));else for(let e of i)t.info(` ${e.id.padEnd(16)} ${e.from} -> ${e.to} [${e.detected?`detected`:`not found`}]`),t.info(` ${e.description}`)}}]}export{g as migrateCommands};
@@ -11,6 +11,6 @@ import { DEFAULT_IGNORE, OxfmtMapping, mapBiomeFormatter, mapBiomeIncludes, mapB
11
11
  import { OxlintMapping, RULE_MAP, mapBiomeToOxlint } from "./oxlint-map.js";
12
12
  import { findPrettierConfig, hasPrettierConfig, mapPrettierToOxfmt, prettierToOx, readPrettierIgnore } from "./prettier.js";
13
13
  import { MigrationInfo, detectMigrations, findMigration, listMigrations, migrations, runDetectedMigrations, runMigration } from "./registry.js";
14
- import { VITE_CONFIG_FILES, ensureViteFmtIgnore, extractViteObject, findDbxConfig, findViteConfig, foldToolchainSection, foldViteIntoConfig, mergeViteObjects, renderFreshSectionsConfig, scanLiteralObject, viteToToolchain } from "./vite.js";
15
- import { findTopLevelValue, matchBracket, mergeViteConfig, renderViteTarget, serializeTs, writeViteTarget } from "./vite-target.js";
16
- export { BIOME_CONFIG_FILES, DEFAULT_IGNORE, FileDiff, FileStatus, MigrateTarget, MigrateTool, MigrationContext, MigrationFile, MigrationInfo, MigrationResult, OXC_FMT_FILE, OXC_LINT_FILE, OxfmtMapping, OxlintMapping, RULE_MAP, ToolchainMigration, UnmappedItem, VITE_CONFIG_FILES, biomeToOx, detectMigrations, diffFiles, dprintToOx, ensureViteFmtIgnore, eslintToOx, extractViteObject, findBiomeConfig, findDbxConfig, findDprintConfig, findEslintConfig, findMigration, findOxcConfigs, findPrettierConfig, findTopLevelValue, findViteConfig, foldToolchainSection, foldViteIntoConfig, hasPending, hasPrettierConfig, listMigrations, mapBiomeFormatter, mapBiomeIncludes, mapBiomeToOxfmt, mapBiomeToOxlint, mapDprintToOxfmt, mapOrganizeImports, mapPrettierToOxfmt, mapRuleName, matchBracket, mergeViteConfig, mergeViteObjects, migrateCommands, migrations, oxcToToolchain, prettierToOx, readJsonc, readPrettierIgnore, renderFreshSectionsConfig, renderViteTarget, runDetectedMigrations, runMigration, runOxlintMigrate, scanLiteralObject, serializeTs, stripJsonc, viteToToolchain, writeViteTarget };
14
+ import { VITE_CONFIG_FILES, ensureViteFmtIgnore, extractViteObject, findDbxConfig, findViteConfig, foldToolchainSection, foldViteIntoConfig, mergeViteObjects, objectHasSections, renderFreshSectionsConfig, renderFreshViteConfig, scanLiteralObject, viteConfigHasFmtLint, viteToToolchain } from "./vite.js";
15
+ import { findTopLevelValue, findViteMergeObject, matchBracket, mergeViteConfig, renderViteTarget, serializeTs, writeViteTarget } from "./vite-target.js";
16
+ export { BIOME_CONFIG_FILES, DEFAULT_IGNORE, FileDiff, FileStatus, MigrateTarget, MigrateTool, MigrationContext, MigrationFile, MigrationInfo, MigrationResult, OXC_FMT_FILE, OXC_LINT_FILE, OxfmtMapping, OxlintMapping, RULE_MAP, ToolchainMigration, UnmappedItem, VITE_CONFIG_FILES, biomeToOx, detectMigrations, diffFiles, dprintToOx, ensureViteFmtIgnore, eslintToOx, extractViteObject, findBiomeConfig, findDbxConfig, findDprintConfig, findEslintConfig, findMigration, findOxcConfigs, findPrettierConfig, findTopLevelValue, findViteConfig, findViteMergeObject, foldToolchainSection, foldViteIntoConfig, hasPending, hasPrettierConfig, listMigrations, mapBiomeFormatter, mapBiomeIncludes, mapBiomeToOxfmt, mapBiomeToOxlint, mapDprintToOxfmt, mapOrganizeImports, mapPrettierToOxfmt, mapRuleName, matchBracket, mergeViteConfig, mergeViteObjects, migrateCommands, migrations, objectHasSections, oxcToToolchain, prettierToOx, readJsonc, readPrettierIgnore, renderFreshSectionsConfig, renderFreshViteConfig, renderViteTarget, runDetectedMigrations, runMigration, runOxlintMigrate, scanLiteralObject, serializeTs, stripJsonc, viteConfigHasFmtLint, viteToToolchain, writeViteTarget };