@deltabox/toolchain 1.2.3 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +144 -2
- package/README.md +8 -0
- package/dist/changelog.d.ts +2 -2
- package/dist/changelog.js +1 -1
- package/dist/cli/commands/projects.js +1 -1
- package/dist/cli/commands/providers.js +1 -1
- package/dist/cli/commands/reset.js +1 -1
- package/dist/cli/commands/sync.js +1 -1
- package/dist/cli/commands/watch.js +1 -1
- package/dist/cli/index.d.ts +33 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/register.js +1 -1
- package/dist/cli/update-check.js +1 -0
- package/dist/config.d.ts +2 -1
- package/dist/config.js +1 -1
- package/dist/core.d.ts +2 -1
- package/dist/core.js +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1 -1
- package/dist/package.js +1 -1
- package/dist/packages/changelog/src/cli/index.js +1 -1
- package/dist/packages/changelog/src/index.d.ts +3 -3
- package/dist/packages/changelog/src/index.js +1 -1
- package/dist/packages/changelog/src/run.js +1 -1
- package/dist/packages/changelog/src/templates.d.ts +1 -1
- package/dist/packages/changelog/src/templates.js +3 -3
- package/dist/packages/changelog/src/utils/format.js +5 -5
- package/dist/packages/changelog/src/utils/git.js +1 -1
- package/dist/packages/changelog/src/utils/reformat.js +4 -4
- package/dist/packages/changelog/src/utils/repo.js +1 -1
- package/dist/packages/changelog/src/utils/summary.d.ts +7 -0
- package/dist/packages/changelog/src/utils/summary.js +1 -1
- package/dist/packages/changelog/src/utils/version.js +5 -5
- package/dist/packages/changelog/src/utils/write.js +1 -1
- package/dist/packages/config/src/cli/index.js +1 -1
- package/dist/packages/config/src/generated-format.d.ts +42 -0
- package/dist/packages/config/src/generated-format.js +3 -0
- package/dist/packages/config/src/generators/types.js +3 -1
- package/dist/packages/config/src/index.d.ts +3 -2
- package/dist/packages/config/src/index.js +1 -1
- package/dist/packages/core/src/gitignore.d.ts +19 -0
- package/dist/packages/core/src/gitignore.js +7 -0
- package/dist/packages/core/src/index.d.ts +3 -2
- package/dist/packages/core/src/index.js +1 -1
- package/dist/packages/core/src/loader.js +1 -1
- package/dist/packages/core/src/sync.d.ts +1 -1
- package/dist/packages/core/src/sync.js +1 -1
- package/dist/packages/core/src/watch.js +1 -1
- package/dist/packages/migrate/src/cli/index.js +1 -1
- package/dist/packages/migrate/src/oxfmt-map.js +1 -1
- package/dist/packages/project/src/cli/index.js +1 -1
- package/dist/packages/shared/src/config-schema.d.ts +100 -0
- package/dist/packages/shared/src/config-schema.js +1 -1
- package/dist/packages/shared/src/config-types.d.ts +68 -217
- package/dist/packages/shared/src/index.d.ts +5 -4
- package/dist/packages/shared/src/index.js +1 -1
- package/dist/packages/shared/src/logger.d.ts +68 -0
- package/dist/packages/shared/src/logger.js +1 -0
- package/dist/packages/shared/src/run.js +1 -1
- package/dist/packages/shared/src/toolchain.d.ts +9 -7
- package/dist/packages/shared/src/toolchain.js +1 -1
- package/dist/packages/template/src/cli/index.js +1 -1
- package/dist/packages/template/src/scaffold.js +1 -1
- package/dist/packages/tsconfig/src/cli/generate/index.js +1 -1
- package/dist/packages/tsconfig/src/cli/generate/utils.js +1 -1
- package/dist/packages/tsdown/src/cleanup.js +1 -1
- package/dist/packages/vite/src/cli/index.d.ts +5 -1
- package/dist/packages/vite/src/cli/index.js +1 -1
- package/dist/packages/vite/src/commands.d.ts +6 -0
- package/dist/packages/vite/src/commands.js +1 -1
- package/dist/packages/vite/src/index.d.ts +3 -3
- package/dist/packages/vite/src/index.js +1 -1
- package/dist/packages/vite/src/vp.d.ts +6 -0
- package/dist/packages/vite/src/vp.js +1 -1
- package/dist/shared.d.ts +4 -3
- package/dist/shared.js +1 -1
- package/dist/sync.js +1 -1
- package/dist/vite.d.ts +3 -3
- package/dist/vite.js +1 -1
- package/package.json +13 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,157 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 1.
|
|
3
|
+
## 1.3.1 (October 2026)
|
|
4
4
|
|
|
5
5
|
<!-- release:start -->
|
|
6
6
|
|
|
7
7
|
### Documentation
|
|
8
|
-
- Update
|
|
8
|
+
- Update config generator documentation ([#0dfbf88](https://github.com/deltabox-studio/toolchain/commit/0dfbf88) by [T0chi](https://github.com/T0chi))
|
|
9
|
+
- Update config generator reference link ([#2f0adde](https://github.com/deltabox-studio/toolchain/commit/2f0adde) by [T0chi](https://github.com/T0chi))
|
|
10
|
+
- Update features descriptions ([#e9c0a6d](https://github.com/deltabox-studio/toolchain/commit/e9c0a6d) by [T0chi](https://github.com/T0chi))
|
|
9
11
|
|
|
10
12
|
<!-- release:end -->
|
|
11
13
|
|
|
12
14
|
|
|
15
|
+
## 1.3.0 (October 2026)
|
|
16
|
+
|
|
17
|
+
### New features
|
|
18
|
+
#### Core
|
|
19
|
+
- Keep the generated .dbx directory out of git ([#9fc1434](https://github.com/deltabox-studio/toolchain/commit/9fc1434) by [T0chi](https://github.com/T0chi))
|
|
20
|
+
- dbx sync now appends the .dbx ignore block (everything under .dbx/ except the
|
|
21
|
+
manifest, which holds no absolute paths) to an existing .gitignore, and the
|
|
22
|
+
installation guide documents the pattern and the automatic step.
|
|
23
|
+
#### Cli
|
|
24
|
+
- Route CLI output through the logger, add a providers colour option ([#ce76a4d](https://github.com/deltabox-studio/toolchain/commit/ce76a4d) by [T0chi](https://github.com/T0chi))
|
|
25
|
+
- Commander's help and errors now go through the shared logger (help to stdout,
|
|
26
|
+
errors to stderr, colour-aware, ANSI stripped when colour is off). Vite+
|
|
27
|
+
passthrough commands keep commander's defaults so the spawned vp keeps its own
|
|
28
|
+
coloured logging.
|
|
29
|
+
- Add a providers config section (color?: boolean): color: false forces plain
|
|
30
|
+
provider output, the global --no-color still turns it off, and runVp sets
|
|
31
|
+
NO_COLOR / FORCE_COLOR on the child when colour is disabled.
|
|
32
|
+
- Check for a newer dbx version ([#772aae2](https://github.com/deltabox-studio/toolchain/commit/772aae2) by [T0chi](https://github.com/T0chi))
|
|
33
|
+
- On each run, check the npm registry in the background (cached for a day, never
|
|
34
|
+
blocking) and print a short notice with a link to the release when a newer
|
|
35
|
+
@deltabox/toolchain exists. Skipped in CI and by NO_UPDATE_NOTIFIER or
|
|
36
|
+
DBX_NO_UPDATE_CHECK, and can be turned off with the new --no-update-check flag.
|
|
37
|
+
- Default a bare Vite+ command to the `vite` passthrough ([#75770e4](https://github.com/deltabox-studio/toolchain/commit/75770e4) by [T0chi](https://github.com/T0chi))
|
|
38
|
+
- `dbx fmt` / `dbx lint` / `dbx run` / `dbx dev` now work: when the first operand
|
|
39
|
+
is not a built-in command but names a Vite+ subcommand (or one of its aliases),
|
|
40
|
+
`vite` is inserted before it and the whole Vite+ CLI stays reachable without the
|
|
41
|
+
explicit namespace. Built-in commands win, so `dbx migrate` remains the
|
|
42
|
+
toolchain's migration (`dbx vite migrate` is Vite+'s).
|
|
43
|
+
- The Package scripts, Migrations, Monorepo, CLI and Providers guides now show the
|
|
44
|
+
bare form, and the consumers' root scripts were updated to match.
|
|
45
|
+
#### Vscode
|
|
46
|
+
- Bundle the dbx CLI into the extension ([#bf12403](https://github.com/deltabox-studio/toolchain/commit/bf12403) by [T0chi](https://github.com/T0chi))
|
|
47
|
+
- Ship a self-contained dbx.cjs inside the VSIX (built by the new
|
|
48
|
+
tsdown.bin.config.ts) and prefer it in the extension, so a consumer no longer
|
|
49
|
+
needs to install @deltabox/toolchain. It falls back to a workspace-local
|
|
50
|
+
install and then npx.
|
|
51
|
+
- Make the changelog and tsconfig direct-run guards basename-aware so they do not
|
|
52
|
+
fire when the module is inlined into the single-file bundle.
|
|
53
|
+
#### Shared
|
|
54
|
+
- Add a configurable shared logger ([#54b51fa](https://github.com/deltabox-studio/toolchain/commit/54b51fa) by [T0chi](https://github.com/T0chi))
|
|
55
|
+
- Add packages/shared/src/logger.ts: one level-aware, colour-aware sink (colours
|
|
56
|
+
via picocolors, the same package Vite uses) with debug, info, success, warn,
|
|
57
|
+
error and raw (unprefixed machine output). It is configurable from dbx.config's
|
|
58
|
+
new logger section and from the CLI (--log-level, --no-color), with the CLI
|
|
59
|
+
taking precedence.
|
|
60
|
+
- Every console call in the toolchain now goes through the logger (JSON output
|
|
61
|
+
through raw), including the sync/watch log callback and the run helper's
|
|
62
|
+
verbose line. The generated config types, the JSON schema, the docs reference
|
|
63
|
+
and the Configuration/CLI guides document the new logger section.
|
|
64
|
+
### Bug fixes
|
|
65
|
+
- Correct tsconfig aliases under --cwd, prune self-referential task runs ([#40e0c34](https://github.com/deltabox-studio/toolchain/commit/40e0c34) by [T0chi](https://github.com/T0chi))
|
|
66
|
+
- Two bugs found by exercising the CLI against the local consumer projects:
|
|
67
|
+
- instead of process.cwd(), so `dbx sync --cwd <dir>` (run from elsewhere)
|
|
68
|
+
writes correct relative paths rather than paths pointing at the caller.
|
|
69
|
+
spawning the task runner, and prunes itself when the same command runs again
|
|
70
|
+
from the same root. A root task whose script calls `run -r <task>` can no
|
|
71
|
+
longer recurse.
|
|
72
|
+
- Changelog links, oxfmt map, build idempotency, watch timer, vscode spawn ([#2389c98](https://github.com/deltabox-studio/toolchain/commit/2389c98) by [T0chi](https://github.com/T0chi))
|
|
73
|
+
- render commits as a plain short hash instead of a github.com/undefined link
|
|
74
|
+
`yarn build` no longer rewrites it and the working tree stays idempotent
|
|
75
|
+
spawnCli and cliInvocation
|
|
76
|
+
- Sync --check writes, quiet level, log flags and template tokens ([#7f5690f](https://github.com/deltabox-studio/toolchain/commit/7f5690f) by [T0chi](https://github.com/T0chi))
|
|
77
|
+
- Audit pass over the toolchain source:
|
|
78
|
+
- actually generated by dbx sync
|
|
79
|
+
### Documentation
|
|
80
|
+
- Document the full public API surface ([#6f78245](https://github.com/deltabox-studio/toolchain/commit/6f78245) by [T0chi](https://github.com/T0chi))
|
|
81
|
+
- Expand guide/api.md to cover the umbrella plus every subpath export, grouped by
|
|
82
|
+
package. Add the logging API (logger, createLogger, setLogConfig,
|
|
83
|
+
setLogOverrides, levels, colours, raw) to the API and Configuration guides, and
|
|
84
|
+
document the config generator's formatGenerated helper and the Vite and CLI
|
|
85
|
+
programmatic helpers.
|
|
86
|
+
### Chores
|
|
87
|
+
- Track only the .dbx manifest ([#a254062](https://github.com/deltabox-studio/toolchain/commit/a254062) by [T0chi](https://github.com/T0chi))
|
|
88
|
+
- Ignore everything under .dbx/ except .dbx/toolchain/manifest.json, which records the managed files and holds no absolute paths. The project graph (which embeds the absolute root) stays ignored.
|
|
89
|
+
- Stop tracking the generated .dbx directory ([#b7c53f0](https://github.com/deltabox-studio/toolchain/commit/b7c53f0) by [T0chi](https://github.com/T0chi))
|
|
90
|
+
- The managed-file manifest and project graph under .dbx/ are generated state, so ignore them and untrack the two committed files.
|
|
91
|
+
|
|
92
|
+
### Package changes
|
|
93
|
+
#### Added
|
|
94
|
+
- `picocolors` `^1.1.1`
|
|
95
|
+
|
|
96
|
+
## 1.2.8 (October 2026)
|
|
97
|
+
|
|
98
|
+
### Documentation
|
|
99
|
+
- Drive Vite+ from `dbx` in the recommended package scripts ([#6131c59](https://github.com/deltabox-studio/toolchain/commit/6131c59) by [T0chi](https://github.com/T0chi))
|
|
100
|
+
- Use `dbx vite <command>` (the Vite+ passthrough) instead of calling `vp`
|
|
101
|
+
directly in the Package scripts, Migrations and Monorepo guides, so a project
|
|
102
|
+
only needs the one `dbx` command.
|
|
103
|
+
|
|
104
|
+
## 1.2.7 (October 2026)
|
|
105
|
+
|
|
106
|
+
### Documentation
|
|
107
|
+
- Link package script migrations from the Migrations page ([#036ebf5](https://github.com/deltabox-studio/toolchain/commit/036ebf5) by [T0chi](https://github.com/T0chi))
|
|
108
|
+
- Add a "Package scripts" section to the Migrations guide with the Biome/Turbo
|
|
109
|
+
script swaps and a link to the full Package scripts page.
|
|
110
|
+
|
|
111
|
+
## 1.2.6 (October 2026)
|
|
112
|
+
|
|
113
|
+
### Bug fixes
|
|
114
|
+
#### Config
|
|
115
|
+
- Tidy generated types and format them with Oxfmt ([#6fef440](https://github.com/deltabox-studio/toolchain/commit/6fef440) by [T0chi](https://github.com/T0chi))
|
|
116
|
+
- untyped's type generator emits a blank line between every member and verbose
|
|
117
|
+
multi-line JSDoc. Strip the member blank lines in the generator, then run the
|
|
118
|
+
generated output through Oxfmt's programmatic `format()` (with `jsdoc: true`)
|
|
119
|
+
at generation time instead of shelling out to the repo-root `vp`, so the file
|
|
120
|
+
is written already formatted and resembles the hand-written `types.ts`.
|
|
121
|
+
- Also drop the toolchain-specific `yarn config:types` hint from the generated
|
|
122
|
+
header: the types ship through `@deltabox/toolchain-shared`, so a script name
|
|
123
|
+
that only exists in this repo's package.json is misleading to consumers (a
|
|
124
|
+
consumer supplies its own header via the `header` option).
|
|
125
|
+
### Documentation
|
|
126
|
+
- Add Package scripts guide and a navbar version ([#b279739](https://github.com/deltabox-studio/toolchain/commit/b279739) by [T0chi](https://github.com/T0chi))
|
|
127
|
+
- Add a guide page covering the recommended root scripts (Vite+ format/lint and
|
|
128
|
+
Vite Task) and how to migrate an existing Biome + Turbo project onto them, and
|
|
129
|
+
surface it in the sidebar and Getting Started list. Also show the current
|
|
130
|
+
version in the navbar (linked to the changelog, releases and npm), like the
|
|
131
|
+
Proxified docs.
|
|
132
|
+
|
|
133
|
+
## 1.2.5 (October 2026)
|
|
134
|
+
|
|
135
|
+
### Bug fixes
|
|
136
|
+
#### Changelog
|
|
137
|
+
- Keep generated commitlint enums expanded ([#a6ad600](https://github.com/deltabox-studio/toolchain/commit/a6ad600) by [T0chi](https://github.com/T0chi))
|
|
138
|
+
- Oxfmt collapses an array onto one line when it fits the print width, so a
|
|
139
|
+
generated `commitlint.config.mjs` whose type/scope enum is short was
|
|
140
|
+
reformatted by `vp fmt` and then failed `dbx sync --check`. An inert leading
|
|
141
|
+
line comment inside each enum keeps the list expanded regardless of the
|
|
142
|
+
consumer's print width, so the generated file is now Oxfmt-idempotent and
|
|
143
|
+
consumers no longer need to exclude it from formatting.
|
|
144
|
+
|
|
145
|
+
## 1.2.4 (October 2026)
|
|
146
|
+
|
|
147
|
+
### Documentation
|
|
148
|
+
- Update documentation ([#3880aaa](https://github.com/deltabox-studio/toolchain/commit/3880aaa) by [T0chi](https://github.com/T0chi))
|
|
149
|
+
|
|
150
|
+
## 1.2.3 (October 2026)
|
|
151
|
+
|
|
152
|
+
### Documentation
|
|
153
|
+
- Update vscode extension screenshot ([#e3e189d](https://github.com/deltabox-studio/toolchain/commit/e3e189d) by [T0chi](https://github.com/T0chi))
|
|
154
|
+
|
|
13
155
|
## 1.2.2 (October 2026)
|
|
14
156
|
|
|
15
157
|
### Documentation
|
package/README.md
CHANGED
|
@@ -6,6 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
All-in-one, config-driven dev toolchain: scaffold projects, generate and manage configs, tsconfigs, syncing, changelogs and CI, run Vite+, and migrate other tools onto Ox.
|
|
8
8
|
|
|
9
|
+
- Save and use templates (local/remote) so you never have to scaffold the same projects over and over again.
|
|
10
|
+
- Generate config types, env variables, cli flags, markdown and JSON schemas, so your codebase stays consistent, validated and well-documented.
|
|
11
|
+
- Simply extend or setup CI for your changelogs, releases, issues etc.
|
|
12
|
+
- Sync your entire project so workspaces, docs and CI are always up-to-date.
|
|
13
|
+
- Plug it into Vite / Vite+ and streamline your DX for your existing Vite setup.
|
|
14
|
+
|
|
15
|
+
See the [list of features](#features) below.
|
|
16
|
+
|
|
9
17
|
`@deltabox/toolchain` is driven by a single `dbx.config.ts` at a repo
|
|
10
18
|
root. Define the sections you want and the toolchain generates and keeps the
|
|
11
19
|
matching files in sync.
|
package/dist/changelog.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { parseArgsCli } from "./packages/changelog/src/utils/args.js";
|
|
|
5
5
|
import { formatBody, groupItems, parseCcSubject, renderGroups, ruleTitle, splitInlineDescription } from "./packages/changelog/src/utils/format.js";
|
|
6
6
|
import { deriveBump, readCommits } from "./packages/changelog/src/utils/git.js";
|
|
7
7
|
import { parseExistingChangelog, reformatChangelogContent } from "./packages/changelog/src/utils/reformat.js";
|
|
8
|
-
import { buildSummary } from "./packages/changelog/src/utils/summary.js";
|
|
8
|
+
import { buildSummary, renderCommitRef } from "./packages/changelog/src/utils/summary.js";
|
|
9
9
|
import { renderChangelogEntry } from "./packages/changelog/src/utils/version.js";
|
|
10
10
|
import { main, runChangelog } from "./packages/changelog/src/run.js";
|
|
11
11
|
import { DEFAULT_WORKFLOW_TOKENS, RenderWorkflowOptions, WORKFLOW_FILENAMES, Workflow, WorkflowId, WorkflowJob, applyWorkflowConfig, defaultWorkflows, isEnabled, renderWorkflow, renderWorkflows } from "./packages/changelog/src/workflows.js";
|
|
@@ -14,4 +14,4 @@ import { COMMITLINT_HEADER, WORKFLOW_HEADER, changelogSyncTask, workflowFilename
|
|
|
14
14
|
import { CommitlintOptions, conventionalCommitsVscodeExtensions, conventionalCommitsVscodeSettings, renderCommitlintConfig } from "./packages/changelog/src/templates.js";
|
|
15
15
|
import "./packages/changelog/src/index.js";
|
|
16
16
|
import { changelogCommands } from "./packages/changelog/src/cli/index.js";
|
|
17
|
-
export { AuthorInfo, BumpType, COMMITLINT_HEADER, CliOptions, CommitRecord, CommitlintOptions, DEFAULT_WORKFLOW_TOKENS, ExistingEntry, GroupedItem, GroupedRule, IssueInfo, ParsedCommit, ProcessingMethod, RanWorkflow, RenderWorkflowOptions, RunWorkflowsOptions, RunWorkflowsResult, WORKFLOW_FILENAMES, WORKFLOW_HEADER, Workflow, WorkflowId, WorkflowJob, applyWorkflowConfig, buildSummary, changelogCommands, changelogSyncTask, conventionalCommitsVscodeExtensions, conventionalCommitsVscodeSettings, defaultWorkflows, deriveBump, formatBody, groupItems, isEnabled, main, parseArgsCli, parseCcSubject, parseExistingChangelog, readCommits, reformatChangelogContent, renderChangelogEntry, renderCommitlintConfig, renderGroups, renderWorkflow, renderWorkflows, resolveWorkflowId, ruleTitle, runChangelog, runWorkflows, splitInlineDescription, workflowFilenames };
|
|
17
|
+
export { AuthorInfo, BumpType, COMMITLINT_HEADER, CliOptions, CommitRecord, CommitlintOptions, DEFAULT_WORKFLOW_TOKENS, ExistingEntry, GroupedItem, GroupedRule, IssueInfo, ParsedCommit, ProcessingMethod, RanWorkflow, RenderWorkflowOptions, RunWorkflowsOptions, RunWorkflowsResult, WORKFLOW_FILENAMES, WORKFLOW_HEADER, Workflow, WorkflowId, WorkflowJob, applyWorkflowConfig, buildSummary, changelogCommands, changelogSyncTask, conventionalCommitsVscodeExtensions, conventionalCommitsVscodeSettings, defaultWorkflows, deriveBump, formatBody, groupItems, isEnabled, main, parseArgsCli, parseCcSubject, parseExistingChangelog, readCommits, reformatChangelogContent, renderChangelogEntry, renderCommitRef, renderCommitlintConfig, renderGroups, renderWorkflow, renderWorkflows, resolveWorkflowId, ruleTitle, runChangelog, runWorkflows, splitInlineDescription, workflowFilenames };
|
package/dist/changelog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{parseArgsCli as e}from"./packages/changelog/src/utils/args.js";import{deriveBump as t,readCommits as n}from"./packages/changelog/src/utils/git.js";import{formatBody as r,groupItems as i,parseCcSubject as a,renderGroups as o,ruleTitle as s,splitInlineDescription as c}from"./packages/changelog/src/utils/format.js";import{renderChangelogEntry as l}from"./packages/changelog/src/utils/version.js";import{parseExistingChangelog as u,reformatChangelogContent as d}from"./packages/changelog/src/utils/reformat.js";import{buildSummary as f}from"./packages/changelog/src/utils/summary.js";import{main as
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{parseArgsCli as e}from"./packages/changelog/src/utils/args.js";import{deriveBump as t,readCommits as n}from"./packages/changelog/src/utils/git.js";import{formatBody as r,groupItems as i,parseCcSubject as a,renderGroups as o,ruleTitle as s,splitInlineDescription as c}from"./packages/changelog/src/utils/format.js";import{renderChangelogEntry as l}from"./packages/changelog/src/utils/version.js";import{parseExistingChangelog as u,reformatChangelogContent as d}from"./packages/changelog/src/utils/reformat.js";import{buildSummary as f,renderCommitRef as p}from"./packages/changelog/src/utils/summary.js";import{main as m,runChangelog as h}from"./packages/changelog/src/run.js";import{DEFAULT_WORKFLOW_TOKENS as g,WORKFLOW_FILENAMES as _,applyWorkflowConfig as v,defaultWorkflows as y,isEnabled as b,renderWorkflow as x,renderWorkflows as S}from"./packages/changelog/src/workflows.js";import{resolveWorkflowId as C,runWorkflows as w}from"./packages/changelog/src/run-workflows.js";import{conventionalCommitsVscodeExtensions as T,conventionalCommitsVscodeSettings as E,renderCommitlintConfig as D}from"./packages/changelog/src/templates.js";import{COMMITLINT_HEADER as O,WORKFLOW_HEADER as k,changelogSyncTask as A,workflowFilenames as j}from"./packages/changelog/src/sync.js";import"./packages/changelog/src/index.js";import{changelogCommands as M}from"./packages/changelog/src/cli/index.js";export{O as COMMITLINT_HEADER,g as DEFAULT_WORKFLOW_TOKENS,_ as WORKFLOW_FILENAMES,k as WORKFLOW_HEADER,v as applyWorkflowConfig,f as buildSummary,M as changelogCommands,A as changelogSyncTask,T as conventionalCommitsVscodeExtensions,E as conventionalCommitsVscodeSettings,y as defaultWorkflows,t as deriveBump,r as formatBody,i as groupItems,b as isEnabled,m as main,e as parseArgsCli,a as parseCcSubject,u as parseExistingChangelog,n as readCommits,d as reformatChangelogContent,l as renderChangelogEntry,p as renderCommitRef,D as renderCommitlintConfig,o as renderGroups,x as renderWorkflow,S as renderWorkflows,C as resolveWorkflowId,s as ruleTitle,h as runChangelog,w as runWorkflows,c as splitInlineDescription,j as workflowFilenames};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{buildProjectGraph as
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{logger as e}from"../../packages/shared/src/logger.js";import"../../packages/shared/src/index.js";import{buildProjectGraph as t,writeProjectGraph as n}from"../../packages/core/src/graph.js";import"../../packages/core/src/index.js";function r(){return{name:`projects`,description:`Discover projects and write .dbx/toolchain/projects.json.`,options:[{flags:`--cwd <dir>`,description:`Root to scan (default: cwd).`},{flags:`--max-depth <n>`,description:`Max directory depth.`,default:`5`},{flags:`--no-write`,description:`Do not write the graph file.`},{flags:`--json`,description:`Print the graph as JSON.`}],run:(r,i)=>{let a=t(i.cwd,{maxDepth:Number.parseInt(String(r.maxDepth??`5`),10)});if(r.write!==!1&&n(i.cwd,a),r.json)e.raw(JSON.stringify(a,null,4));else{e.info(`${a.dbxProjects.length} dbx project(s), ${a.projects.length} package(s), package manager: ${a.packageManager??`unknown`}`);for(let t of a.order){let n=a.dbxProjects.find(e=>e.dir===t),r=n?.dependencies.length?` (deps: ${n.dependencies.join(`, `)})`:``;e.info(` - ${n?.name??t} [${t}]${r}`)}}}}}export{r as projectsCommand};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{logger as e}from"../../packages/shared/src/logger.js";import"../../packages/shared/src/index.js";import{toolingProviders as t}from"../../providers.js";function n(){return[{name:`providers`,description:`List the tooling providers (Vite+, ...) and their commands.`,options:[{flags:`--json`,description:`Print the providers (with actions) as JSON.`}],run:n=>{let r=t();if(n.json)e.raw(JSON.stringify(r,null,4));else for(let t of r){let n=t.binary?` (${t.binary})`:``;e.info(`${t.name}${n} [${t.id}]`),t.description&&e.info(` ${t.description}`);for(let n of t.commands)e.info(` ${n.name.padEnd(20)} ${n.description}`)}}}]}export{n as providerCommands};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{logger as e}from"../../packages/shared/src/logger.js";import"../../packages/shared/src/index.js";import{resetProjects as t}from"../../packages/core/src/reset.js";import"../../packages/core/src/index.js";function n(){return{name:`reset`,description:`Remove generated files, the .dbx/toolchain manifest and/or the dbx config from a project.`,options:[{flags:`--cwd <dir>`,description:`Project root (default: cwd).`},{flags:`--recursive`,description:`Reset every discovered project under the root.`},{flags:`--include <pattern...>`,description:`Only projects matching these patterns (glob or substring).`},{flags:`--exclude <pattern...>`,description:`Skip projects matching these patterns (glob or substring).`},{flags:`--generated`,description:`Remove only the generated/managed files.`},{flags:`--manifest`,description:`Remove only the .dbx/toolchain directory.`},{flags:`--config`,description:`Also remove dbx.config.*.`},{flags:`--all`,description:`Remove generated files, the manifest and the config.`},{flags:`--dry-run`,description:`Report what would be removed without deleting.`},{flags:`--json`,description:`Print the result as JSON.`}],run:(n,r)=>{let i=n.cwd??r.cwd,a=n.all?{generated:!0,manifest:!0,config:!0}:{...n.generated?{generated:!0}:{},...n.manifest?{manifest:!0}:{},...n.config?{config:!0}:{}},o=t({root:i,recursive:!!n.recursive,dryRun:!!n.dryRun,...a,...n.include?{include:n.include}:{},...n.exclude?{exclude:n.exclude}:{}});if(n.json){e.raw(JSON.stringify(o,null,4));return}let s=o.dryRun?`would remove`:`removed`,c=0;for(let t of o.results)if(t.removed.length!==0){c+=t.removed.length,e.info(`${t.rel===`.`?i:t.rel}`);for(let n of t.removed)e.info(` - ${n}`)}e.info(`${s} ${c} item(s) across ${o.results.length} project(s).`)}}}export{n as resetCommand};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as e}from"node:path";import"node:url";import.meta.url;import{
|
|
1
|
+
import{default as e}from"node:path";import"node:url";import.meta.url;import{logger as t}from"../../packages/shared/src/logger.js";import"../../packages/shared/src/index.js";import{loadToolingConfig as n}from"../../packages/core/src/loader.js";import{buildProjectGraph as r,writeProjectGraph as i}from"../../packages/core/src/graph.js";import{runSync as a}from"../../packages/core/src/sync.js";import{runWatch as o}from"../../packages/core/src/watch.js";import"../../packages/core/src/index.js";import{defaultSyncTasks as s}from"../../sync.js";import{baseOptions as c,watchOptions as l}from"./shared.js";function u(){return{name:`sync`,description:`Regenerate every managed file from dbx.config.*.`,options:[...c,{flags:`--check`,description:`Do not write; fail if files are out of date.`},{flags:`--watch`,description:`Keep running and re-sync on change.`},{flags:`--recursive`,description:`Sync every discovered dbx project in dependency order.`},{flags:`--force`,description:`Run even when no dbx.config.* is present.`}],run:async(c,u)=>{let d=!!c.quiet,f=!!c.check;if(c.recursive){let t=r(u.cwd);f||i(u.cwd,t);for(let r of t.order){let t=e.resolve(u.cwd,r),i=await n(t),o=await a({tasks:s(),cwd:t,projectType:i.projectType,config:i.config,tokens:i.tokens,check:f,quiet:d});f&&!o.upToDate&&(process.exitCode=1)}return}if(!u.configPath&&!c.force){t.warn(`no dbx.config.* found here; nothing to sync (use --force to run anyway).`);return}if(c.watch){await o({...l(u),quiet:d});return}let p=await a({...l(u),check:f,quiet:d});if(f&&!p.upToDate&&(process.exitCode=1),!f)try{i(u.cwd,r(u.cwd))}catch{}}}}export{u as syncCommand};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{logger as e}from"../../packages/shared/src/logger.js";import{sectionConfig as t}from"../../packages/shared/src/toolchain.js";import"../../packages/shared/src/index.js";import{runWatch as n}from"../../packages/core/src/watch.js";import"../../packages/core/src/index.js";import{baseOptions as r,watchOptions as i}from"./shared.js";function a(){return{name:`watch`,description:`Sync once, then watch key files and re-sync on change.`,options:[...r,{flags:`--force`,description:`Run even when no dbx.config.* is present.`}],run:async(r,a)=>{!a.configPath&&!r.force?e.warn(`no dbx.config.* found here; nothing to watch (use --force to run anyway).`):t(a.config.watch)?.enabled===!1?e.warn(`watch is disabled in the config.`):await n({...i(a),quiet:!!r.quiet})}}}export{a as watchCommand};
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
|
+
import { LoggerOptions } from "../packages/shared/src/logger.js";
|
|
3
4
|
import { ToolingCommand } from "../packages/shared/src/types.js";
|
|
4
5
|
import "../packages/shared/src/index.js";
|
|
5
6
|
import { registerToolingCommands } from "./register.js";
|
|
@@ -7,7 +8,38 @@ import { Command } from "commander";
|
|
|
7
8
|
//#region src/cli/index.d.ts
|
|
8
9
|
/** The commands built into the root CLI (config commands need a consumer engine). */
|
|
9
10
|
export declare function builtinCommands(): ToolingCommand[];
|
|
10
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Default a bare Vite+ command to the `vite` passthrough: when the first
|
|
13
|
+
* operand is not a built-in `dbx` command but names a Vite+ subcommand (or one
|
|
14
|
+
* of its aliases), insert `vite` so `dbx fmt` / `dbx run` / `dbx dev` work
|
|
15
|
+
* without the explicit namespace. Built-in commands always win (`dbx migrate`
|
|
16
|
+
* stays the toolchain's migration; use `dbx vite migrate` for Vite+'s).
|
|
17
|
+
*/
|
|
18
|
+
export declare function withDefaultVite(argv: string[], commandNames?: ReadonlySet<string>): string[];
|
|
19
|
+
/**
|
|
20
|
+
* Pull the global logger flags out of `argv` (so they work before *or* after a
|
|
21
|
+
* subcommand) and turn them into logger overrides.
|
|
22
|
+
*/
|
|
23
|
+
export declare function extractLogOptions(argv: string[]): {
|
|
24
|
+
argv: string[];
|
|
25
|
+
options: LoggerOptions;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Pull the update-check flags out of `argv` (so `--no-update-check` works before
|
|
29
|
+
* or after a subcommand) and report whether the check is enabled.
|
|
30
|
+
*/
|
|
31
|
+
export declare function extractUpdateCheck(argv: string[]): {
|
|
32
|
+
argv: string[];
|
|
33
|
+
updateCheck: boolean;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Build the `dbx` commander program.
|
|
37
|
+
*
|
|
38
|
+
* Commander's own help/error output is routed through the shared logger so it
|
|
39
|
+
* honours the same colour settings and sink as everything else. A provider
|
|
40
|
+
* passthrough (`vite:*`) is the exception: it keeps commander's default output
|
|
41
|
+
* so the spawned `vp` process keeps its own coloured logging.
|
|
42
|
+
*/
|
|
11
43
|
export declare function createCli(): Command;
|
|
12
44
|
/** Parse and run the CLI. */
|
|
13
45
|
export declare function runCli(argv?: string[]): Promise<void>;
|
package/dist/cli/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"node:path";import{fileURLToPath as e}from"node:url";import.meta.url;import{
|
|
2
|
+
import"node:path";import{fileURLToPath as e}from"node:url";import.meta.url;import{LOG_LEVELS as t,logger as n,normalizeLogLevel as r,setLogOverrides as i,stripAnsi as a}from"../packages/shared/src/logger.js";import"../packages/shared/src/index.js";import{projectCommands as o}from"../packages/project/src/cli/index.js";import{resolveVpCommand as s}from"../packages/vite/src/commands.js";import{viteCommands as c}from"../packages/vite/src/cli/index.js";import{changelogCommands as l}from"../packages/changelog/src/cli/index.js";import{migrateCommands as u}from"../packages/migrate/src/cli/index.js";import{templateCommands as d}from"../packages/template/src/cli/index.js";import{tsconfigCommands as f}from"../packages/tsconfig/src/cli/index.js";import{cleanupCommands as p}from"../packages/tsdown/src/cli/index.js";import{version as m}from"../package.js";import{syncCommands as h}from"./commands/index.js";import{isPassthroughCommand as g,registerToolingCommands as _}from"./register.js";import{runUpdateCheck as v}from"./update-check.js";import{realpathSync as y}from"node:fs";import{Command as b}from"commander";function x(){return[...h(),...f(),...p(),...l(),...u(),...o(),...d(),...c()]}function S(){return new Set(x().map(e=>e.name))}function C(e,t=S()){let n=e[2];return!n||n.startsWith(`-`)||t.has(n)||!s(n)?e:[...e.slice(0,2),`vite`,...e.slice(2)]}function w(e){let t={},n=[];for(let i=0;i<e.length;i++){let a=e[i];if(a===`--`){n.push(...e.slice(i));break}if(a===`--no-color`)t.color=!1;else if(a===`--color`)t.color=!0;else if(a===`--log-level`){let n=e[++i];n!==void 0&&(t.level=r(n))}else a.startsWith(`--log-level=`)?t.level=r(a.slice(12)):n.push(a)}return{argv:n,options:t}}function T(e){let t=!0,n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i===`--`){n.push(...e.slice(r));break}i===`--no-update-check`?t=!1:i===`--update-check`?t=!0:n.push(i)}return{argv:n,updateCheck:t}}function E(){let e=new b,r=e.configureOutput();return e.configureOutput({writeOut:e=>g()?r.writeOut?.(e):n.write(`out`,e),writeErr:e=>g()?r.writeErr?.(e):n.write(`err`,e),getOutHasColors:()=>g()?r.getOutHasColors?.()??!1:n.colors.isColorSupported,getErrHasColors:()=>g()?r.getErrHasColors?.()??!1:n.colors.isColorSupported,stripColor:e=>g()?r.stripColor?.(e)??e:a(e)}),e.name(`dbx`).description(`All-in-one project toolchain: configs, tsconfigs, changelogs, scaffolding.`).version(m,`-V, --version`,`Output the version number`).option(`--log-level <level>`,`Minimum log level (${t.join(`|`)}).`).option(`--no-color`,`Disable coloured output.`).option(`--no-update-check`,`Do not check for a newer dbx version.`).showHelpAfterError(),_(e,x()),e}async function D(e=process.argv){let{argv:t,options:n}=w(e),{argv:r,updateCheck:a}=T(t);i(n),e.some(e=>e===`--help`||e===`-h`||e===`--version`)||v(m,a),await E().parseAsync(C(r))}function O(){let t=process.argv[1];if(!t)return!1;try{return y(t)===e(import.meta.url)}catch{return!1}}O()&&D();export{x as builtinCommands,E as createCli,w as extractLogOptions,T as extractUpdateCheck,_ as registerToolingCommands,D as runCli,C as withDefaultVite};
|
package/dist/cli/register.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{getLogOverrides as e,logger as t,setLogConfig as n,setLogOverrides as r}from"../packages/shared/src/logger.js";import"../packages/shared/src/index.js";import{loadContext as i}from"./context.js";import{optionKeys as a}from"./options.js";let o=!1;function s(){return o}function c(s,c){let l=new Set(c.filter(e=>e.passthrough).map(e=>e.name));s.hook(`preSubcommand`,(e,t)=>{o=l.has(t.name())});for(let o of c){let c=s.command(o.name).description(o.description);o.passthrough&&c.allowUnknownOption(!0).allowExcessArguments(!0);let l=/* @__PURE__ */ new Set;for(let e of o.options??[]){for(let t of a(e.flags))l.add(t);e.default===void 0?c.option(e.flags,e.description):c.option(e.flags,e.description,e.default)}for(let e of o.args??[]){let t=e.required===!1?`[`:`<`,n=e.required===!1?`]`:`>`;c.argument(`${t}${e.name}${e.variadic?`...`:``}${n}`,e.description)}c.action(async(...a)=>{let s=a.pop(),c=a.pop()??{},u={};for(let e of l)s.getOptionValueSource(e)===`cli`&&(u[e]=c[e]);if(o.passthrough)u.args=s.args.slice();else for(let[e,t]of(o.args??[]).entries())a[e]!==void 0&&(u[t.name]=a[e]);let d=u.cwd??process.cwd();try{let t=await i(d);n(t.config.logger),u.quiet===!0&&r({...e(),level:`error`});let a={cwd:d,projectType:t.projectType,config:t.config,tokens:t.tokens,...t.path?{configPath:t.path}:{}};await o.run(u,a)}catch(e){let n=e instanceof Error?e.message:String(e);t.error(n),process.exitCode=1}})}return s}export{s as isPassthroughCommand,c as registerToolingCommands};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{default as e}from"node:path";import"node:url";import.meta.url;import{logger as t}from"../packages/shared/src/logger.js";import"../packages/shared/src/index.js";import n from"node:fs";import r from"node:os";const i=`@deltabox/toolchain`,a=`https://registry.npmjs.org/${i}/latest`;function o(){return e.join(r.tmpdir(),`dbx-update-check.json`)}function s(){try{return JSON.parse(n.readFileSync(o(),`utf-8`))}catch{return}}function c(e){try{n.writeFileSync(o(),JSON.stringify(e),`utf-8`)}catch{}}function l(e,t){let n=e.split(`.`).map(e=>Number.parseInt(e,10)||0),r=t.split(`.`).map(e=>Number.parseInt(e,10)||0);for(let e=0;e<3;e++){let t=n[e]??0,i=r[e]??0;if(t!==i)return t>i}return!1}async function u(){try{let e=new AbortController,t=setTimeout(()=>e.abort(),1500),n=await fetch(a,{signal:e.signal,headers:{accept:`application/json`}});if(clearTimeout(t),!n.ok)return;let r=await n.json();return typeof r.version==`string`?r.version:void 0}catch{return}}async function d(e){let t=s();if(t&&Date.now()-t.checkedAt<864e5)return l(t.latest,e)?t.latest:void 0;let n=await u();return n&&c({checkedAt:Date.now(),latest:n}),n&&l(n,e)?n:void 0}function f(e){return!(!e||process.env.CI||process.env.NO_UPDATE_NOTIFIER||process.env.DBX_NO_UPDATE_CHECK)}function p(e,n){if(!f(n))return;let r=!1,a=n=>{r||(r=!0,t.info(``),t.info(`A new version of ${i} is available: ${n} (you have ${e}).`),t.info(` Release notes: https://github.com/deltabox-studio/toolchain/releases/tag/v${n}`))},o=s();o&&l(o.latest,e)&&a(o.latest),d(e).then(e=>{e&&a(e)})}export{i as UPDATE_PACKAGE,d as checkForUpdate,l as isNewer,p as runUpdateCheck,f as updateCheckEnabled};
|
package/dist/config.d.ts
CHANGED
|
@@ -11,8 +11,9 @@ import { ConfigFileSection, GenerateMarkdownOptions, RenderConfigFileOptions, Re
|
|
|
11
11
|
import { GenerateTypesOptions, generateConfigTypes, renderAllConfigTypes, renderConfigTypes, resolveScopeSchema } from "./packages/config/src/generators/types.js";
|
|
12
12
|
import { ConfigEngine, createConfigEngine } from "./packages/config/src/engine.js";
|
|
13
13
|
import { EnvSource, EnvTree, applyOverrides, envBool, envInt, envList, envMap, envString, parseEnvTree, readEnvPath, trimTrailingSlashes } from "./packages/config/src/env.js";
|
|
14
|
+
import { FormatGeneratedOptions, GENERATED_FORMAT_OPTIONS, formatGenerated } from "./packages/config/src/generated-format.js";
|
|
14
15
|
import { findProjectRoot, monorepoRoot } from "./packages/config/src/root.js";
|
|
15
16
|
import { SplitSchema, compileZodSchema, envMetaOf, flattenBaseSchema, renderTsType, resolveUntypedSchema, splitBaseSchema, zodToJsonSchema, zodToUntypedDefinition } from "./packages/config/src/schema.js";
|
|
16
17
|
import "./packages/config/src/index.js";
|
|
17
18
|
import { ConfigCommandContext, ConfigCommandDefaults, configCommands } from "./packages/config/src/cli/index.js";
|
|
18
|
-
export { BuildConfigJsonOptions, CliArgsOptionConfig, CliArgsParser, CliArgsResult, CliArgsValues, CliFlagOptions, CliOptionDef, CollectEnvVarsOptions, ConfigCommandContext, ConfigCommandDefaults, ConfigEngine, ConfigEngineOptions, ConfigFileSection, ConfigJsonDoc, ConfigJsonEntry, ConfigScopeDef, ConfigScopes, DEFAULT_ENV_PREFIX, EnvFileOptions, EnvSource, EnvTree, EnvValueType, EnvVarDef, EnvVarMeta, GenerateCliOptionsOptions, GenerateEnvTypesOptions, GenerateJsonSchemaOptions, GenerateMarkdownOptions, GenerateTypesOptions, RenderConfigFileOptions, RenderMarkdownOptions, SplitSchema, applyOverrides, buildConfigJson, cliFlagLabel, cliFlagOf, cliShortOf, collectEnvVars, collectRequiredEnvVars, compileZodSchema, configCommands, createCliArgsParser, createConfigEngine, envBool, envInt, envList, envMap, envMetaOf, envPathOf, envString, findProjectRoot, flagOf, flattenBaseSchema, generateCliArgsOptions, generateCliOptions, generateConfigJsonSchema, generateConfigMarkdown, generateConfigTypes, generateEnv, generateEnvDts, generateEnvFile, generateEnvTypes, generateJsonSchemaFile, monorepoRoot, parseEnvTree, readEnvPath, renderAllConfigTypes, renderConfigFileMarkdown, renderConfigIndex, renderConfigTypes, renderScopeMarkdown, renderTsType, resolveScopeSchema, resolveUntypedSchema, splitBaseSchema, trimTrailingSlashes, zodToJsonSchema, zodToUntypedDefinition };
|
|
19
|
+
export { BuildConfigJsonOptions, CliArgsOptionConfig, CliArgsParser, CliArgsResult, CliArgsValues, CliFlagOptions, CliOptionDef, CollectEnvVarsOptions, ConfigCommandContext, ConfigCommandDefaults, ConfigEngine, ConfigEngineOptions, ConfigFileSection, ConfigJsonDoc, ConfigJsonEntry, ConfigScopeDef, ConfigScopes, DEFAULT_ENV_PREFIX, EnvFileOptions, EnvSource, EnvTree, EnvValueType, EnvVarDef, EnvVarMeta, FormatGeneratedOptions, GENERATED_FORMAT_OPTIONS, GenerateCliOptionsOptions, GenerateEnvTypesOptions, GenerateJsonSchemaOptions, GenerateMarkdownOptions, GenerateTypesOptions, RenderConfigFileOptions, RenderMarkdownOptions, SplitSchema, applyOverrides, buildConfigJson, cliFlagLabel, cliFlagOf, cliShortOf, collectEnvVars, collectRequiredEnvVars, compileZodSchema, configCommands, createCliArgsParser, createConfigEngine, envBool, envInt, envList, envMap, envMetaOf, envPathOf, envString, findProjectRoot, flagOf, flattenBaseSchema, formatGenerated, generateCliArgsOptions, generateCliOptions, generateConfigJsonSchema, generateConfigMarkdown, generateConfigTypes, generateEnv, generateEnvDts, generateEnvFile, generateEnvTypes, generateJsonSchemaFile, monorepoRoot, parseEnvTree, readEnvPath, renderAllConfigTypes, renderConfigFileMarkdown, renderConfigIndex, renderConfigTypes, renderScopeMarkdown, renderTsType, resolveScopeSchema, resolveUntypedSchema, splitBaseSchema, trimTrailingSlashes, zodToJsonSchema, zodToUntypedDefinition };
|
package/dist/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{compileZodSchema as e,envMetaOf as t,flattenBaseSchema as n,renderTsType as r,resolveUntypedSchema as i,splitBaseSchema as a,zodToJsonSchema as o,zodToUntypedDefinition as s}from"./packages/config/src/schema.js";import{envPathOf as c}from"./packages/config/src/types.js";import{DEFAULT_ENV_PREFIX as l,collectEnvVars as u,collectRequiredEnvVars as d}from"./packages/config/src/collect.js";import{buildConfigJson as f}from"./packages/config/src/config-json.js";import{generateEnvFile as p}from"./packages/config/src/env-file.js";import{cliFlagLabel as m,cliFlagOf as h,cliShortOf as g,createCliArgsParser as _,flagOf as v,generateCliArgsOptions as y,generateCliOptions as b}from"./packages/config/src/generators/cli.js";import{generateEnv as x,generateEnvDts as S,generateEnvTypes as C}from"./packages/config/src/generators/env.js";import{generateConfigJsonSchema as w,generateJsonSchemaFile as T}from"./packages/config/src/generators/json.js";import{generateConfigMarkdown as E,renderConfigFileMarkdown as D,renderConfigIndex as O,renderScopeMarkdown as k}from"./packages/config/src/generators/markdown.js";import{generateConfigTypes as A,renderAllConfigTypes as j,renderConfigTypes as M,resolveScopeSchema as N}from"./packages/config/src/generators/types.js";import{findProjectRoot as P,monorepoRoot as F}from"./packages/config/src/root.js";import{createConfigEngine as I}from"./packages/config/src/engine.js";import{applyOverrides as L,envBool as R,envInt as z,envList as B,envMap as V,envString as H,parseEnvTree as U,readEnvPath as W,trimTrailingSlashes as G}from"./packages/config/src/env.js";import"./packages/config/src/index.js";import{configCommands as
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{compileZodSchema as e,envMetaOf as t,flattenBaseSchema as n,renderTsType as r,resolveUntypedSchema as i,splitBaseSchema as a,zodToJsonSchema as o,zodToUntypedDefinition as s}from"./packages/config/src/schema.js";import{envPathOf as c}from"./packages/config/src/types.js";import{DEFAULT_ENV_PREFIX as l,collectEnvVars as u,collectRequiredEnvVars as d}from"./packages/config/src/collect.js";import{buildConfigJson as f}from"./packages/config/src/config-json.js";import{generateEnvFile as p}from"./packages/config/src/env-file.js";import{cliFlagLabel as m,cliFlagOf as h,cliShortOf as g,createCliArgsParser as _,flagOf as v,generateCliArgsOptions as y,generateCliOptions as b}from"./packages/config/src/generators/cli.js";import{generateEnv as x,generateEnvDts as S,generateEnvTypes as C}from"./packages/config/src/generators/env.js";import{generateConfigJsonSchema as w,generateJsonSchemaFile as T}from"./packages/config/src/generators/json.js";import{generateConfigMarkdown as E,renderConfigFileMarkdown as D,renderConfigIndex as O,renderScopeMarkdown as k}from"./packages/config/src/generators/markdown.js";import{generateConfigTypes as A,renderAllConfigTypes as j,renderConfigTypes as M,resolveScopeSchema as N}from"./packages/config/src/generators/types.js";import{findProjectRoot as P,monorepoRoot as F}from"./packages/config/src/root.js";import{createConfigEngine as I}from"./packages/config/src/engine.js";import{applyOverrides as L,envBool as R,envInt as z,envList as B,envMap as V,envString as H,parseEnvTree as U,readEnvPath as W,trimTrailingSlashes as G}from"./packages/config/src/env.js";import{GENERATED_FORMAT_OPTIONS as K,formatGenerated as q}from"./packages/config/src/generated-format.js";import"./packages/config/src/index.js";import{configCommands as J}from"./packages/config/src/cli/index.js";export{l as DEFAULT_ENV_PREFIX,K as GENERATED_FORMAT_OPTIONS,L as applyOverrides,f as buildConfigJson,m as cliFlagLabel,h as cliFlagOf,g as cliShortOf,u as collectEnvVars,d as collectRequiredEnvVars,e as compileZodSchema,J as configCommands,_ as createCliArgsParser,I as createConfigEngine,R as envBool,z as envInt,B as envList,V as envMap,t as envMetaOf,c as envPathOf,H as envString,P as findProjectRoot,v as flagOf,n as flattenBaseSchema,q as formatGenerated,y as generateCliArgsOptions,b as generateCliOptions,w as generateConfigJsonSchema,E as generateConfigMarkdown,A as generateConfigTypes,x as generateEnv,S as generateEnvDts,p as generateEnvFile,C as generateEnvTypes,T as generateJsonSchemaFile,F as monorepoRoot,U as parseEnvTree,W as readEnvPath,j as renderAllConfigTypes,D as renderConfigFileMarkdown,O as renderConfigIndex,M as renderConfigTypes,k as renderScopeMarkdown,r as renderTsType,N as resolveScopeSchema,i as resolveUntypedSchema,a as splitBaseSchema,G as trimTrailingSlashes,o as zodToJsonSchema,s as zodToUntypedDefinition};
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
|
+
import { DBX_GITIGNORE_BLOCK, ensureDbxGitignore } from "./packages/core/src/gitignore.js";
|
|
3
4
|
import { BuildProjectGraphOptions, IGNORED_DIRS, PackageManager, ProjectGraph, ProjectNode, buildProjectGraph, detectPackageManager, orderProjects, projectGraphPath, readProjectGraph, writeProjectGraph } from "./packages/core/src/graph.js";
|
|
4
5
|
import { LoadedConfig, findConfigFile, loadToolingConfig } from "./packages/core/src/loader.js";
|
|
5
6
|
import { MANIFEST_DIR, MANIFEST_FILE, Manifest, readManifest, writeManifest } from "./packages/core/src/manifest.js";
|
|
@@ -10,4 +11,4 @@ import { RunSyncOptions, SyncResult, runSync } from "./packages/core/src/sync.js
|
|
|
10
11
|
import { VscodeSyncOptions, vscodeSyncTask } from "./packages/core/src/vscode.js";
|
|
11
12
|
import { RunWatchOptions, runWatch } from "./packages/core/src/watch.js";
|
|
12
13
|
import "./packages/core/src/index.js";
|
|
13
|
-
export { BuildProjectGraphOptions, IGNORED_DIRS, LoadedConfig, MANIFEST_DIR, MANIFEST_FILE, Manifest, PackageManager, ProjectGraph, ProjectNode, ResetProjectsOptions, ResetProjectsResult, ResetSelectors, ResetToolingOptions, ResetToolingResult, RunSyncOptions, RunWatchOptions, SelectProjectsOptions, SelectedProject, SyncResult, VscodeSyncOptions, buildProjectGraph, detectPackageManager, detectProjectType, findConfigFile, loadToolingConfig, orderProjects, projectGraphPath, readManifest, readProjectGraph, resetProjects, resetTooling, resolveProjectType, runSync, runWatch, selectProjects, vscodeSyncTask, writeManifest, writeProjectGraph };
|
|
14
|
+
export { BuildProjectGraphOptions, DBX_GITIGNORE_BLOCK, IGNORED_DIRS, LoadedConfig, MANIFEST_DIR, MANIFEST_FILE, Manifest, PackageManager, ProjectGraph, ProjectNode, ResetProjectsOptions, ResetProjectsResult, ResetSelectors, ResetToolingOptions, ResetToolingResult, RunSyncOptions, RunWatchOptions, SelectProjectsOptions, SelectedProject, SyncResult, VscodeSyncOptions, buildProjectGraph, detectPackageManager, detectProjectType, ensureDbxGitignore, findConfigFile, loadToolingConfig, orderProjects, projectGraphPath, readManifest, readProjectGraph, resetProjects, resetTooling, resolveProjectType, runSync, runWatch, selectProjects, vscodeSyncTask, writeManifest, writeProjectGraph };
|
package/dist/core.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{DBX_GITIGNORE_BLOCK as e,ensureDbxGitignore as t}from"./packages/core/src/gitignore.js";import{detectProjectType as n,resolveProjectType as r}from"./packages/core/src/project-type.js";import{findConfigFile as i,loadToolingConfig as a}from"./packages/core/src/loader.js";import{IGNORED_DIRS as o,buildProjectGraph as s,detectPackageManager as c,orderProjects as l,projectGraphPath as u,readProjectGraph as d,writeProjectGraph as f}from"./packages/core/src/graph.js";import{MANIFEST_DIR as p,MANIFEST_FILE as m,readManifest as h,writeManifest as g}from"./packages/core/src/manifest.js";import{selectProjects as _}from"./packages/core/src/select.js";import{resetProjects as v,resetTooling as y}from"./packages/core/src/reset.js";import{runSync as b}from"./packages/core/src/sync.js";import{vscodeSyncTask as x}from"./packages/core/src/vscode.js";import{runWatch as S}from"./packages/core/src/watch.js";import"./packages/core/src/index.js";export{e as DBX_GITIGNORE_BLOCK,o as IGNORED_DIRS,p as MANIFEST_DIR,m as MANIFEST_FILE,s as buildProjectGraph,c as detectPackageManager,n as detectProjectType,t as ensureDbxGitignore,i as findConfigFile,a as loadToolingConfig,l as orderProjects,u as projectGraphPath,h as readManifest,d as readProjectGraph,v as resetProjects,y as resetTooling,r as resolveProjectType,b as runSync,S as runWatch,_ as selectProjects,x as vscodeSyncTask,g as writeManifest,f as writeProjectGraph};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
3
|
import { mergeJsonAt, readJsonAt, readJsonFile, toJson, writeJsonFile } from "./packages/shared/src/fs-utils.js";
|
|
4
|
+
import { Colors, LOG_LEVELS, LogChannel, LogLevel, Logger, LoggerConfig, LoggerOptions, configureLogger, createLogger, getLogOverrides, getLogger, isLogLevel, logger, normalizeLogLevel, setLogConfig, setLogOverrides, stripAnsi } from "./packages/shared/src/logger.js";
|
|
4
5
|
import { Sortable, deepMerge, isPlainObject, mapValues, resolveSort, sort } from "./packages/shared/src/object-utils.js";
|
|
5
6
|
import { ToolingProvider, ToolingProviderAction, ToolingProviderCommand, providerActions } from "./packages/shared/src/provider.js";
|
|
6
7
|
import { RunOptions, run, spawnCross } from "./packages/shared/src/run.js";
|
|
7
8
|
import { asString, camelCase, camelCaseId, capitalize, constantCase, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, formatCliFlag, hasText, indent, isLocalhost, kebabCase, pascalCase, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, sanitizeSlashes, snakeCase, str, titleCase } from "./packages/shared/src/string-utils.js";
|
|
8
9
|
import { ReplacementOptions, ReplacementValue, Replacements, Replacer, applyReplacements, applyReplacementsDeep, createReplacer, defineReplacements, extractTokens, hasUnresolvedTokens, tokenPattern } from "./packages/shared/src/template.js";
|
|
9
|
-
import { ChangelogWorkflowsConfig, DbxConfigSections, ProjectType, ToolingBiomeConfig, ToolingChangelogConfig, ToolingConfigSections, ToolingProjectConfig, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig } from "./packages/shared/src/config-types.js";
|
|
10
|
+
import { ChangelogWorkflowsConfig, DbxConfigSections, ProjectType, ToolingBiomeConfig, ToolingChangelogConfig, ToolingConfigSections, ToolingLoggerConfig, ToolingProjectConfig, ToolingProvidersConfig, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig } from "./packages/shared/src/config-types.js";
|
|
10
11
|
import { Awaitable, GeneratedFile, JsonValue, PackageJson, ToolingArgument, ToolingCommand, ToolingCommandContext, ToolingOption } from "./packages/shared/src/types.js";
|
|
11
|
-
import { CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, CONFIG_TYPE_SCHEMAS, biomeConfigSchema, changelogConfigSchema, changelogWorkflowsConfigSchema, dbxConfigSchema, projectConfigSchema, projectTypeSchema, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema } from "./packages/shared/src/config-schema.js";
|
|
12
|
+
import { CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, CONFIG_TYPE_SCHEMAS, biomeConfigSchema, changelogConfigSchema, changelogWorkflowsConfigSchema, dbxConfigSchema, loggerConfigSchema, projectConfigSchema, projectTypeSchema, providersConfigSchema, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema } from "./packages/shared/src/config-schema.js";
|
|
12
13
|
import { CONFIG_FILE_NAMES, DbxConfig, ManagedFile, SyncContext, SyncSummary, SyncTask, ToolingConfig, ToolingHooks, ToolingSection, defineConfig, repoSlugFromUrl, resolveTokens, sectionConfig, sectionEnabled } from "./packages/shared/src/toolchain.js";
|
|
13
14
|
import { YamlValue, toYaml } from "./packages/shared/src/yaml.js";
|
|
14
15
|
import { index_d_exports as index_d_exports$5 } from "./packages/shared/src/index.js";
|
|
15
16
|
import { index_d_exports } from "./packages/biome/src/index.js";
|
|
16
17
|
import { index_d_exports as index_d_exports$1 } from "./packages/changelog/src/index.js";
|
|
17
18
|
import { index_d_exports as index_d_exports$2 } from "./packages/config/src/index.js";
|
|
19
|
+
import { DBX_GITIGNORE_BLOCK, ensureDbxGitignore } from "./packages/core/src/gitignore.js";
|
|
18
20
|
import { BuildProjectGraphOptions, IGNORED_DIRS, PackageManager, ProjectGraph, ProjectNode, buildProjectGraph, detectPackageManager, orderProjects, projectGraphPath, readProjectGraph, writeProjectGraph } from "./packages/core/src/graph.js";
|
|
19
21
|
import { LoadedConfig, findConfigFile, loadToolingConfig } from "./packages/core/src/loader.js";
|
|
20
22
|
import { MANIFEST_DIR, MANIFEST_FILE, Manifest, readManifest, writeManifest } from "./packages/core/src/manifest.js";
|
|
@@ -29,4 +31,4 @@ import { index_d_exports as index_d_exports$6 } from "./packages/tsconfig/src/in
|
|
|
29
31
|
import { index_d_exports as index_d_exports$4 } from "./packages/project/src/index.js";
|
|
30
32
|
import { index_d_exports as index_d_exports$7 } from "./packages/tsdown/src/index.js";
|
|
31
33
|
import { defaultSyncTasks } from "./sync.js";
|
|
32
|
-
export { Awaitable, BuildProjectGraphOptions, CONFIG_FILE_NAMES, CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, CONFIG_TYPE_SCHEMAS, ChangelogWorkflowsConfig, DbxConfig, DbxConfigSections, GeneratedFile, IGNORED_DIRS, JsonValue, LoadedConfig, MANIFEST_DIR, MANIFEST_FILE, ManagedFile, Manifest, PackageJson, PackageManager, ProjectGraph, ProjectNode, ProjectType, ReplacementOptions, ReplacementValue, Replacements, Replacer, ResetProjectsOptions, ResetProjectsResult, ResetSelectors, ResetToolingOptions, ResetToolingResult, RunOptions, RunSyncOptions, RunWatchOptions, SelectProjectsOptions, SelectedProject, Sortable, SyncContext, SyncResult, SyncSummary, SyncTask, ToolingArgument, ToolingBiomeConfig, ToolingChangelogConfig, ToolingCommand, ToolingCommandContext, ToolingConfig, ToolingConfigSections, ToolingHooks, ToolingOption, ToolingProjectConfig, ToolingProvider, ToolingProviderAction, ToolingProviderCommand, ToolingSection, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, VscodeSyncOptions, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, type YamlValue, applyReplacements, applyReplacementsDeep, asString, index_d_exports as biome, biomeConfigSchema, buildProjectGraph, camelCase, camelCaseId, capitalize, index_d_exports$1 as changelog, changelogConfigSchema, changelogWorkflowsConfigSchema, index_d_exports$2 as config, constantCase, index_d_exports$3 as core, createReplacer, dbxConfigSchema, deepMerge, defaultSyncTasks, defineConfig, defineReplacements, detectPackageManager, detectProjectType, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, extractTokens, findConfigFile, formatCliFlag, hasText, hasUnresolvedTokens, indent, isLocalhost, isPlainObject, kebabCase, loadToolingConfig, mapValues, mergeJsonAt, orderProjects, pascalCase, index_d_exports$4 as project, projectConfigSchema, projectGraphPath, projectTypeSchema, providerActions, readJsonAt, readJsonFile, readManifest, readProjectGraph, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, repoSlugFromUrl, resetProjects, resetTooling, resolveProjectType, resolveSort, resolveTokens, run, runSync, runWatch, sanitizeSlashes, sectionConfig, sectionEnabled, selectProjects, index_d_exports$5 as shared, snakeCase, sort, spawnCross, str, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolingConfigSchema, index_d_exports$6 as tsconfig, tsconfigConfigSchema, index_d_exports$7 as tsdown, viteConfigSchema, vscodeSyncTask, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, writeJsonFile, writeManifest, writeProjectGraph };
|
|
34
|
+
export { Awaitable, BuildProjectGraphOptions, CONFIG_FILE_NAMES, CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, CONFIG_TYPE_SCHEMAS, ChangelogWorkflowsConfig, Colors, DBX_GITIGNORE_BLOCK, DbxConfig, DbxConfigSections, GeneratedFile, IGNORED_DIRS, JsonValue, LOG_LEVELS, LoadedConfig, LogChannel, LogLevel, Logger, LoggerConfig, LoggerOptions, MANIFEST_DIR, MANIFEST_FILE, ManagedFile, Manifest, PackageJson, PackageManager, ProjectGraph, ProjectNode, ProjectType, ReplacementOptions, ReplacementValue, Replacements, Replacer, ResetProjectsOptions, ResetProjectsResult, ResetSelectors, ResetToolingOptions, ResetToolingResult, RunOptions, RunSyncOptions, RunWatchOptions, SelectProjectsOptions, SelectedProject, Sortable, SyncContext, SyncResult, SyncSummary, SyncTask, ToolingArgument, ToolingBiomeConfig, ToolingChangelogConfig, ToolingCommand, ToolingCommandContext, ToolingConfig, ToolingConfigSections, ToolingHooks, ToolingLoggerConfig, ToolingOption, ToolingProjectConfig, ToolingProvider, ToolingProviderAction, ToolingProviderCommand, ToolingProvidersConfig, ToolingSection, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, VscodeSyncOptions, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, type YamlValue, applyReplacements, applyReplacementsDeep, asString, index_d_exports as biome, biomeConfigSchema, buildProjectGraph, camelCase, camelCaseId, capitalize, index_d_exports$1 as changelog, changelogConfigSchema, changelogWorkflowsConfigSchema, index_d_exports$2 as config, configureLogger, constantCase, index_d_exports$3 as core, createLogger, createReplacer, dbxConfigSchema, deepMerge, defaultSyncTasks, defineConfig, defineReplacements, detectPackageManager, detectProjectType, ensureDbxGitignore, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, extractTokens, findConfigFile, formatCliFlag, getLogOverrides, getLogger, hasText, hasUnresolvedTokens, indent, isLocalhost, isLogLevel, isPlainObject, kebabCase, loadToolingConfig, logger, loggerConfigSchema, mapValues, mergeJsonAt, normalizeLogLevel, orderProjects, pascalCase, index_d_exports$4 as project, projectConfigSchema, projectGraphPath, projectTypeSchema, providerActions, providersConfigSchema, readJsonAt, readJsonFile, readManifest, readProjectGraph, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, repoSlugFromUrl, resetProjects, resetTooling, resolveProjectType, resolveSort, resolveTokens, run, runSync, runWatch, sanitizeSlashes, sectionConfig, sectionEnabled, selectProjects, setLogConfig, setLogOverrides, index_d_exports$5 as shared, snakeCase, sort, spawnCross, str, stripAnsi, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolingConfigSchema, index_d_exports$6 as tsconfig, tsconfigConfigSchema, index_d_exports$7 as tsdown, viteConfigSchema, vscodeSyncTask, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, writeJsonFile, writeManifest, writeProjectGraph };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{deepMerge as e,isPlainObject as t,mapValues as n,resolveSort as r,sort as i}from"./packages/shared/src/object-utils.js";import{mergeJsonAt as a,readJsonAt as o,readJsonFile as s,toJson as c,writeJsonFile as l}from"./packages/shared/src/fs-utils.js";import{
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{deepMerge as e,isPlainObject as t,mapValues as n,resolveSort as r,sort as i}from"./packages/shared/src/object-utils.js";import{mergeJsonAt as a,readJsonAt as o,readJsonFile as s,toJson as c,writeJsonFile as l}from"./packages/shared/src/fs-utils.js";import{LOG_LEVELS as u,configureLogger as d,createLogger as f,getLogOverrides as p,getLogger as m,isLogLevel as h,logger as g,normalizeLogLevel as _,setLogConfig as v,setLogOverrides as y,stripAnsi as b}from"./packages/shared/src/logger.js";import{providerActions as x}from"./packages/shared/src/provider.js";import{run as S,spawnCross as C}from"./packages/shared/src/run.js";import{asString as w,camelCase as T,camelCaseId as E,capitalize as D,constantCase as O,ensureLeadingSlash as k,ensureSlashes as A,ensureTrailingSlash as j,formatCliFlag as M,hasText as N,indent as P,isLocalhost as F,kebabCase as I,pascalCase as L,removeDoubleSlashes as R,removeLeadingSlash as z,removeTrailingSlash as B,sanitizeSlashes as V,snakeCase as H,str as U,titleCase as W}from"./packages/shared/src/string-utils.js";import{applyReplacements as G,applyReplacementsDeep as K,createReplacer as q,defineReplacements as J,extractTokens as Y,hasUnresolvedTokens as X,tokenPattern as Z}from"./packages/shared/src/template.js";import{CONFIG_SECTION_DESCRIPTIONS as Q,CONFIG_SECTION_SCHEMAS as $,CONFIG_TYPE_SCHEMAS as ee,biomeConfigSchema as te,changelogConfigSchema as ne,changelogWorkflowsConfigSchema as re,dbxConfigSchema as ie,loggerConfigSchema as ae,projectConfigSchema as oe,projectTypeSchema as se,providersConfigSchema as ce,templateKindSchema as le,templateSourceSchema as ue,templateSourceTypeSchema as de,templatesConfigSchema as fe,toolingConfigSchema as pe,tsconfigConfigSchema as me,viteConfigSchema as he,watchConfigSchema as ge,workflowConfigSchema as _e,workflowSettingSchema as ve,workflowStepSchema as ye,workflowStepsConfigSchema as be}from"./packages/shared/src/config-schema.js";import{CONFIG_FILE_NAMES as xe,defineConfig as Se,repoSlugFromUrl as Ce,resolveTokens as we,sectionConfig as Te,sectionEnabled as Ee}from"./packages/shared/src/toolchain.js";import{toYaml as De}from"./packages/shared/src/yaml.js";import{src_exports as Oe}from"./packages/shared/src/index.js";import{src_exports as ke}from"./packages/biome/src/index.js";import{src_exports as Ae}from"./packages/changelog/src/index.js";import{src_exports as je}from"./packages/config/src/index.js";import{DBX_GITIGNORE_BLOCK as Me,ensureDbxGitignore as Ne}from"./packages/core/src/gitignore.js";import{detectProjectType as Pe,resolveProjectType as Fe}from"./packages/core/src/project-type.js";import{findConfigFile as Ie,loadToolingConfig as Le}from"./packages/core/src/loader.js";import{IGNORED_DIRS as Re,buildProjectGraph as ze,detectPackageManager as Be,orderProjects as Ve,projectGraphPath as He,readProjectGraph as Ue,writeProjectGraph as We}from"./packages/core/src/graph.js";import{MANIFEST_DIR as Ge,MANIFEST_FILE as Ke,readManifest as qe,writeManifest as Je}from"./packages/core/src/manifest.js";import{selectProjects as Ye}from"./packages/core/src/select.js";import{resetProjects as Xe,resetTooling as Ze}from"./packages/core/src/reset.js";import{runSync as Qe}from"./packages/core/src/sync.js";import{vscodeSyncTask as $e}from"./packages/core/src/vscode.js";import{runWatch as et}from"./packages/core/src/watch.js";import{src_exports as tt}from"./packages/core/src/index.js";import{src_exports as nt}from"./packages/tsconfig/src/index.js";import{src_exports as rt}from"./packages/project/src/index.js";import{src_exports as it}from"./packages/tsdown/src/index.js";import{defaultSyncTasks as at}from"./sync.js";export{xe as CONFIG_FILE_NAMES,Q as CONFIG_SECTION_DESCRIPTIONS,$ as CONFIG_SECTION_SCHEMAS,ee as CONFIG_TYPE_SCHEMAS,Me as DBX_GITIGNORE_BLOCK,Re as IGNORED_DIRS,u as LOG_LEVELS,Ge as MANIFEST_DIR,Ke as MANIFEST_FILE,G as applyReplacements,K as applyReplacementsDeep,w as asString,ke as biome,te as biomeConfigSchema,ze as buildProjectGraph,T as camelCase,E as camelCaseId,D as capitalize,Ae as changelog,ne as changelogConfigSchema,re as changelogWorkflowsConfigSchema,je as config,d as configureLogger,O as constantCase,tt as core,f as createLogger,q as createReplacer,ie as dbxConfigSchema,e as deepMerge,at as defaultSyncTasks,Se as defineConfig,J as defineReplacements,Be as detectPackageManager,Pe as detectProjectType,Ne as ensureDbxGitignore,k as ensureLeadingSlash,A as ensureSlashes,j as ensureTrailingSlash,Y as extractTokens,Ie as findConfigFile,M as formatCliFlag,p as getLogOverrides,m as getLogger,N as hasText,X as hasUnresolvedTokens,P as indent,F as isLocalhost,h as isLogLevel,t as isPlainObject,I as kebabCase,Le as loadToolingConfig,g as logger,ae as loggerConfigSchema,n as mapValues,a as mergeJsonAt,_ as normalizeLogLevel,Ve as orderProjects,L as pascalCase,rt as project,oe as projectConfigSchema,He as projectGraphPath,se as projectTypeSchema,x as providerActions,ce as providersConfigSchema,o as readJsonAt,s as readJsonFile,qe as readManifest,Ue as readProjectGraph,R as removeDoubleSlashes,z as removeLeadingSlash,B as removeTrailingSlash,Ce as repoSlugFromUrl,Xe as resetProjects,Ze as resetTooling,Fe as resolveProjectType,r as resolveSort,we as resolveTokens,S as run,Qe as runSync,et as runWatch,V as sanitizeSlashes,Te as sectionConfig,Ee as sectionEnabled,Ye as selectProjects,v as setLogConfig,y as setLogOverrides,Oe as shared,H as snakeCase,i as sort,C as spawnCross,U as str,b as stripAnsi,le as templateKindSchema,ue as templateSourceSchema,de as templateSourceTypeSchema,fe as templatesConfigSchema,W as titleCase,c as toJson,De as toYaml,Z as tokenPattern,pe as toolingConfigSchema,nt as tsconfig,me as tsconfigConfigSchema,it as tsdown,he as viteConfigSchema,$e as vscodeSyncTask,ge as watchConfigSchema,_e as workflowConfigSchema,ve as workflowSettingSchema,ye as workflowStepSchema,be as workflowStepsConfigSchema,l as writeJsonFile,Je as writeManifest,We as writeProjectGraph};
|
package/dist/package.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;var e=`1.
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;var e=`1.3.1`;export{e as version};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{logger as e}from"../../../shared/src/logger.js";import"../../../shared/src/index.js";import{runChangelog as t}from"../run.js";import{runWorkflows as n}from"../run-workflows.js";function r(){return[{name:`workflow`,description:"Trigger one or more generated GitHub workflows (via `gh workflow run`).",args:[{name:`workflows`,description:`Workflow ids or file names (default: every enabled workflow).`,variadic:!0,required:!1}],options:[{flags:`--cwd <dir>`,description:`Project root (default: cwd).`},{flags:`--ref <ref>`,description:`Git ref to run the workflow on.`},{flags:`--gh <cmd>`,description:`The gh executable (default: gh).`}],run:async(t,r)=>{let i=t.workflows,a=Array.isArray(i)?i:i?[String(i)]:void 0,o=await n({cwd:t.cwd??r.cwd,config:r.config,...a?{workflows:a}:{},...t.ref?{ref:t.ref}:{},...t.gh?{gh:t.gh}:{}}),s=!1;for(let t of o.ran)t.code===0?e.info(`triggered ${t.file}`):(s=!0,e.error(`${t.file} exited ${t.code}`));s&&(process.exitCode=1)}},{name:`changelog`,description:`Scan commits, derive the semver bump and update the CHANGELOG.md files + versions.`,options:[{flags:`--range <range>`,description:`Git revision range to scan.`},{flags:`--dry-run`,description:`Print the proposed entry without writing.`},{flags:`--version <semver>`,description:`Override the version.`},{flags:`--base-version <semver>`,description:`Bump from this version instead.`},{flags:`--processing-method <method>`,description:"`latest` (default), `all`, or a git range."},{flags:`--format-only`,description:`Only regroup existing changelogs.`},{flags:`--no-package-changes-section`,description:`Skip the package-changes footer.`}],run:e=>{let n=[];e.range&&n.push(`--range`,String(e.range)),e.dryRun&&n.push(`--dry-run`),e.version&&n.push(`--version`,String(e.version)),e.baseVersion&&n.push(`--base-version`,String(e.baseVersion)),e.processingMethod&&n.push(`--processing-method`,String(e.processingMethod)),e.formatOnly&&n.push(`--format-only`),e.packageChangesSection===!1&&n.push(`--no-package-changes-section`),t(n)}}]}export{r as changelogCommands};
|
|
@@ -5,7 +5,7 @@ import { parseArgsCli } from "./utils/args.js";
|
|
|
5
5
|
import { formatBody, groupItems, parseCcSubject, renderGroups, ruleTitle, splitInlineDescription } from "./utils/format.js";
|
|
6
6
|
import { deriveBump, readCommits } from "./utils/git.js";
|
|
7
7
|
import { parseExistingChangelog, reformatChangelogContent } from "./utils/reformat.js";
|
|
8
|
-
import { buildSummary } from "./utils/summary.js";
|
|
8
|
+
import { buildSummary, renderCommitRef } from "./utils/summary.js";
|
|
9
9
|
import { renderChangelogEntry } from "./utils/version.js";
|
|
10
10
|
import { main, runChangelog } from "./run.js";
|
|
11
11
|
import { DEFAULT_WORKFLOW_TOKENS, RenderWorkflowOptions, WORKFLOW_FILENAMES, Workflow, WorkflowId, WorkflowJob, applyWorkflowConfig, defaultWorkflows, isEnabled, renderWorkflow, renderWorkflows } from "./workflows.js";
|
|
@@ -13,7 +13,7 @@ import { RanWorkflow, RunWorkflowsOptions, RunWorkflowsResult, resolveWorkflowId
|
|
|
13
13
|
import { COMMITLINT_HEADER, WORKFLOW_HEADER, changelogSyncTask, workflowFilenames } from "./sync.js";
|
|
14
14
|
import { CommitlintOptions, conventionalCommitsVscodeExtensions, conventionalCommitsVscodeSettings, renderCommitlintConfig } from "./templates.js";
|
|
15
15
|
declare namespace index_d_exports {
|
|
16
|
-
export { AuthorInfo, BumpType, COMMITLINT_HEADER, CliOptions, CommitRecord, CommitlintOptions, DEFAULT_WORKFLOW_TOKENS, ExistingEntry, GroupedItem, GroupedRule, IssueInfo, ParsedCommit, ProcessingMethod, RanWorkflow, RenderWorkflowOptions, RunWorkflowsOptions, RunWorkflowsResult, WORKFLOW_FILENAMES, WORKFLOW_HEADER, Workflow, WorkflowId, WorkflowJob, applyWorkflowConfig, buildSummary, changelogSyncTask, conventionalCommitsVscodeExtensions, conventionalCommitsVscodeSettings, defaultWorkflows, deriveBump, formatBody, groupItems, isEnabled, main, parseArgsCli, parseCcSubject, parseExistingChangelog, readCommits, reformatChangelogContent, renderChangelogEntry, renderCommitlintConfig, renderGroups, renderWorkflow, renderWorkflows, resolveWorkflowId, ruleTitle, runChangelog, runWorkflows, splitInlineDescription, workflowFilenames };
|
|
16
|
+
export { AuthorInfo, BumpType, COMMITLINT_HEADER, CliOptions, CommitRecord, CommitlintOptions, DEFAULT_WORKFLOW_TOKENS, ExistingEntry, GroupedItem, GroupedRule, IssueInfo, ParsedCommit, ProcessingMethod, RanWorkflow, RenderWorkflowOptions, RunWorkflowsOptions, RunWorkflowsResult, WORKFLOW_FILENAMES, WORKFLOW_HEADER, Workflow, WorkflowId, WorkflowJob, applyWorkflowConfig, buildSummary, changelogSyncTask, conventionalCommitsVscodeExtensions, conventionalCommitsVscodeSettings, defaultWorkflows, deriveBump, formatBody, groupItems, isEnabled, main, parseArgsCli, parseCcSubject, parseExistingChangelog, readCommits, reformatChangelogContent, renderChangelogEntry, renderCommitRef, renderCommitlintConfig, renderGroups, renderWorkflow, renderWorkflows, resolveWorkflowId, ruleTitle, runChangelog, runWorkflows, splitInlineDescription, workflowFilenames };
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
|
-
export { AuthorInfo, BumpType, COMMITLINT_HEADER, CliOptions, CommitRecord, CommitlintOptions, DEFAULT_WORKFLOW_TOKENS, ExistingEntry, GroupedItem, GroupedRule, IssueInfo, ParsedCommit, ProcessingMethod, RanWorkflow, RenderWorkflowOptions, RunWorkflowsOptions, RunWorkflowsResult, WORKFLOW_FILENAMES, WORKFLOW_HEADER, Workflow, WorkflowId, WorkflowJob, applyWorkflowConfig, buildSummary, changelogSyncTask, conventionalCommitsVscodeExtensions, conventionalCommitsVscodeSettings, defaultWorkflows, deriveBump, formatBody, groupItems, index_d_exports, isEnabled, main, parseArgsCli, parseCcSubject, parseExistingChangelog, readCommits, reformatChangelogContent, renderChangelogEntry, renderCommitlintConfig, renderGroups, renderWorkflow, renderWorkflows, resolveWorkflowId, ruleTitle, runChangelog, runWorkflows, splitInlineDescription, workflowFilenames };
|
|
19
|
+
export { AuthorInfo, BumpType, COMMITLINT_HEADER, CliOptions, CommitRecord, CommitlintOptions, DEFAULT_WORKFLOW_TOKENS, ExistingEntry, GroupedItem, GroupedRule, IssueInfo, ParsedCommit, ProcessingMethod, RanWorkflow, RenderWorkflowOptions, RunWorkflowsOptions, RunWorkflowsResult, WORKFLOW_FILENAMES, WORKFLOW_HEADER, Workflow, WorkflowId, WorkflowJob, applyWorkflowConfig, buildSummary, changelogSyncTask, conventionalCommitsVscodeExtensions, conventionalCommitsVscodeSettings, defaultWorkflows, deriveBump, formatBody, groupItems, index_d_exports, isEnabled, main, parseArgsCli, parseCcSubject, parseExistingChangelog, readCommits, reformatChangelogContent, renderChangelogEntry, renderCommitRef, renderCommitlintConfig, renderGroups, renderWorkflow, renderWorkflows, resolveWorkflowId, ruleTitle, runChangelog, runWorkflows, splitInlineDescription, workflowFilenames };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{__exportAll as e}from"../../../_virtual/_rolldown/runtime.js";import{parseArgsCli as t}from"./utils/args.js";import{deriveBump as n,readCommits as r}from"./utils/git.js";import{formatBody as i,groupItems as a,parseCcSubject as o,renderGroups as s,ruleTitle as c,splitInlineDescription as l}from"./utils/format.js";import{renderChangelogEntry as u}from"./utils/version.js";import{parseExistingChangelog as d,reformatChangelogContent as f}from"./utils/reformat.js";import{buildSummary as p}from"./utils/summary.js";import{main as
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{__exportAll as e}from"../../../_virtual/_rolldown/runtime.js";import{parseArgsCli as t}from"./utils/args.js";import{deriveBump as n,readCommits as r}from"./utils/git.js";import{formatBody as i,groupItems as a,parseCcSubject as o,renderGroups as s,ruleTitle as c,splitInlineDescription as l}from"./utils/format.js";import{renderChangelogEntry as u}from"./utils/version.js";import{parseExistingChangelog as d,reformatChangelogContent as f}from"./utils/reformat.js";import{buildSummary as p,renderCommitRef as m}from"./utils/summary.js";import{main as h,runChangelog as g}from"./run.js";import{DEFAULT_WORKFLOW_TOKENS as _,WORKFLOW_FILENAMES as v,applyWorkflowConfig as y,defaultWorkflows as b,isEnabled as x,renderWorkflow as S,renderWorkflows as C}from"./workflows.js";import{resolveWorkflowId as w,runWorkflows as T}from"./run-workflows.js";import{conventionalCommitsVscodeExtensions as E,conventionalCommitsVscodeSettings as D,renderCommitlintConfig as O}from"./templates.js";import{COMMITLINT_HEADER as k,WORKFLOW_HEADER as A,changelogSyncTask as j,workflowFilenames as M}from"./sync.js";var N=/* @__PURE__ */ e({COMMITLINT_HEADER:()=>k,DEFAULT_WORKFLOW_TOKENS:()=>_,WORKFLOW_FILENAMES:()=>v,WORKFLOW_HEADER:()=>A,applyWorkflowConfig:()=>y,buildSummary:()=>p,changelogSyncTask:()=>j,conventionalCommitsVscodeExtensions:()=>E,conventionalCommitsVscodeSettings:()=>D,defaultWorkflows:()=>b,deriveBump:()=>n,formatBody:()=>i,groupItems:()=>a,isEnabled:()=>x,main:()=>h,parseArgsCli:()=>t,parseCcSubject:()=>o,parseExistingChangelog:()=>d,readCommits:()=>r,reformatChangelogContent:()=>f,renderChangelogEntry:()=>u,renderCommitRef:()=>m,renderCommitlintConfig:()=>O,renderGroups:()=>s,renderWorkflow:()=>S,renderWorkflows:()=>C,resolveWorkflowId:()=>w,ruleTitle:()=>c,runChangelog:()=>g,runWorkflows:()=>T,splitInlineDescription:()=>l,workflowFilenames:()=>M});export{k as COMMITLINT_HEADER,_ as DEFAULT_WORKFLOW_TOKENS,v as WORKFLOW_FILENAMES,A as WORKFLOW_HEADER,y as applyWorkflowConfig,p as buildSummary,j as changelogSyncTask,E as conventionalCommitsVscodeExtensions,D as conventionalCommitsVscodeSettings,b as defaultWorkflows,n as deriveBump,i as formatBody,a as groupItems,x as isEnabled,h as main,t as parseArgsCli,o as parseCcSubject,d as parseExistingChangelog,r as readCommits,f as reformatChangelogContent,u as renderChangelogEntry,m as renderCommitRef,O as renderCommitlintConfig,s as renderGroups,S as renderWorkflow,C as renderWorkflows,w as resolveWorkflowId,c as ruleTitle,g as runChangelog,T as runWorkflows,l as splitInlineDescription,N as src_exports,M as workflowFilenames};
|