@yorozu/build 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +38 -0
- package/chunks/21EFCjEU.js +19160 -0
- package/chunks/CMapqBQB.js +2620 -0
- package/chunks/CYSd7-PF.js +623 -0
- package/chunks/Cr5v7tI0.js +1824 -0
- package/ci/github-actions.d.ts +3 -0
- package/ci/index.d.ts +1 -0
- package/cli/commands/_utils.d.ts +8 -0
- package/cli/commands/build.d.ts +40 -0
- package/cli/commands/bump-version.d.ts +27 -0
- package/cli/commands/cr.d.ts +27 -0
- package/cli/commands/docs.d.ts +9 -0
- package/cli/commands/find-changed-packages.d.ts +10 -0
- package/cli/commands/gen-changelog.d.ts +10 -0
- package/cli/commands/gen-deps-graph.d.ts +15 -0
- package/cli/commands/jsr.d.ts +6 -0
- package/cli/commands/lint/config.d.ts +1 -0
- package/cli/commands/lint/index.d.ts +11 -0
- package/cli/commands/lint/validate-workspace-deps.d.ts +23 -0
- package/cli/commands/publish.d.ts +62 -0
- package/cli/commands/release.d.ts +45 -0
- package/cli/index.d.ts +8 -0
- package/cli/log.d.ts +3 -0
- package/cli/main.d.ts +2 -0
- package/config.d.ts +57 -0
- package/git/github.d.ts +15 -0
- package/git/index.d.ts +2 -0
- package/git/utils.d.ts +38 -0
- package/index.d.ts +8 -0
- package/index.js +26 -0
- package/jsr/_deno-directives.d.ts +1 -0
- package/jsr/config.d.ts +1 -0
- package/jsr/create-packages.d.ts +8 -0
- package/jsr/deno-json.d.ts +19 -0
- package/jsr/generate-workspace.d.ts +9 -0
- package/jsr/index.d.ts +6 -0
- package/jsr/populate.d.ts +10 -0
- package/jsr/utils/external-libs.d.ts +8 -0
- package/jsr/utils/index.d.ts +4 -0
- package/jsr/utils/jsr-api.d.ts +23 -0
- package/jsr/utils/jsr-json.d.ts +10 -0
- package/jsr/utils/jsr.d.ts +10 -0
- package/jsr.d.ts +1 -0
- package/jsr.js +2 -0
- package/misc/_config.d.ts +2 -0
- package/misc/exec.d.ts +15 -0
- package/misc/fs.d.ts +4 -0
- package/misc/index.d.ts +6 -0
- package/misc/path.d.ts +1 -0
- package/misc/publish-order.d.ts +3 -0
- package/misc/tsconfig.d.ts +2 -0
- package/npm/index.d.ts +1 -0
- package/npm/npm-api.d.ts +6 -0
- package/package-json/collect-package-jsons.d.ts +9 -0
- package/package-json/find-package-json.d.ts +1 -0
- package/package-json/index.d.ts +6 -0
- package/package-json/parse.d.ts +11 -0
- package/package-json/process-package-json.d.ts +20 -0
- package/package-json/types.d.ts +39 -0
- package/package-json/utils.d.ts +4 -0
- package/package.json +59 -0
- package/versioning/bump-version.d.ts +31 -0
- package/versioning/collect-files.d.ts +21 -0
- package/versioning/generate-changelog.d.ts +8 -0
- package/versioning/index.d.ts +4 -0
- package/versioning/types.d.ts +21 -0
- package/vite/build-plugin.d.ts +73 -0
- package/vite/config.d.ts +47 -0
- package/vite/index.d.ts +2 -0
- package/vite.d.ts +1 -0
- package/vite.js +184 -0
- package/yorozu-build.d.ts +1 -0
- package/yorozu-build.js +527 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ivan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# @yorozu/build
|
|
2
|
+
|
|
3
|
+
Build and release toolkit for the yorozu monorepo. It discovers workspace packages, builds them with Vite, rewrites `workspace:` / `catalog:` dependencies, and publishes a single shared version.
|
|
4
|
+
|
|
5
|
+
## How this repo uses it
|
|
6
|
+
|
|
7
|
+
The root `package.json` `version` is the source of truth for every managed package (`@yorozu/utils`, `@yorozu/io`, `@yorozu/net`, `@yorozu/node`, `@yorozu/build`).
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm build # build every npm-publishable package (including standalone)
|
|
11
|
+
pnpm lint:workspace # workspace: protocol + external version alignment
|
|
12
|
+
pnpm release:dry # print next version, changelog, and publish list
|
|
13
|
+
pnpm release # bump, build, publish to npm, commit, and tag
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
`pnpm release` is `yorozu-build release --with-npm`. First release (no git tag yet) does **not** bump: it publishes the current root version (`0.1.0`) and tags `v0.1.0`. Later releases bump the root version and rewrite every managed package to match.
|
|
17
|
+
|
|
18
|
+
### Standalone packages
|
|
19
|
+
|
|
20
|
+
`@yorozu/fetch` sets `yorozu.standalone: true` and keeps its own version. It is still built and published by the same `release` command, but it is not rewritten to the shared root version.
|
|
21
|
+
|
|
22
|
+
## CLI
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
yorozu-build --help
|
|
26
|
+
yorozu-build build @yorozu/utils
|
|
27
|
+
yorozu-build build :all
|
|
28
|
+
yorozu-build lint
|
|
29
|
+
yorozu-build release --with-npm --dry-run
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Commands: `lint`, `build`, `publish`, `bump-version`, `gen-changelog`, `find-changed-packages`, `release`, `jsr`, `docs`, `gen-deps-graph`, `cr`.
|
|
33
|
+
|
|
34
|
+
## Config
|
|
35
|
+
|
|
36
|
+
Root `build.config.js` sets the tagging schema (`semver`) and JSR source/exclude globs. Per-package `build.config.js` can adjust Vite options and `package.json` before publish.
|
|
37
|
+
|
|
38
|
+
The Vite plugin is `yorozuBuild` from `@yorozu/build/vite`, registered in the repo-root `vite.config.ts`.
|