@yorozu/build 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunks/{21EFCjEU.js → Boit7C7A.js} +1 -1
- package/chunks/{Cr5v7tI0.js → C8taqIWx.js} +1 -1
- package/chunks/{CMapqBQB.js → D8T5_c6n.js} +4 -4
- package/chunks/{CYSd7-PF.js → DOprhwii.js} +2 -2
- package/cli/commands/bump-version.d.ts +2 -2
- package/cli/commands/release.d.ts +2 -2
- package/index.js +3 -3
- package/jsr.js +1 -1
- package/package.json +2 -2
- package/vite.js +5 -1
- package/yorozu-build.js +4 -4
|
@@ -45,7 +45,7 @@ var __require$1 = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? requi
|
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region ../utils/src/misc/assert.ts
|
|
47
47
|
function assertNotNull(value) {
|
|
48
|
-
if (value
|
|
48
|
+
if (value == null) throw new Error(`Value is ${value}.`);
|
|
49
49
|
}
|
|
50
50
|
function asNonNull(value) {
|
|
51
51
|
assertNotNull(value);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __commonJSMin, __require, asNonNull, info, normalizeFilePath } from "./
|
|
1
|
+
import { __commonJSMin, __require, asNonNull, info, normalizeFilePath } from "./Boit7C7A.js";
|
|
2
2
|
import process$1 from "node:process";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
//#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __toESM as __toESM$1, asNonNull, asyncPool, collectPackageJsons, error, fileExists, filterPackageJsonsForPublish, findPackageByName, findRootPackage, getWorkspaceRoot, info, loadBuildConfig, normalizeFilePath, number, object, parsePackageJsonFile, processPackageJson, require_picomatch, string as string$1, warn } from "./
|
|
2
|
-
import { exec, require_semver, sortWorkspaceByPublishOrder } from "./
|
|
1
|
+
import { __toESM as __toESM$1, asNonNull, asyncPool, collectPackageJsons, error, fileExists, filterPackageJsonsForPublish, findPackageByName, findRootPackage, getWorkspaceRoot, info, loadBuildConfig, normalizeFilePath, number, object, parsePackageJsonFile, processPackageJson, require_picomatch, string as string$1, warn } from "./Boit7C7A.js";
|
|
2
|
+
import { exec, require_semver, sortWorkspaceByPublishOrder } from "./C8taqIWx.js";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { appendFileSync } from "node:fs";
|
|
5
5
|
import { EOL, tmpdir } from "node:os";
|
|
@@ -52,8 +52,8 @@ var LruMap = class {
|
|
|
52
52
|
if (this.#map.has(key)) this.#map.delete(key);
|
|
53
53
|
this.#map.set(key, value);
|
|
54
54
|
if (this.#map.size > this.#capacity) {
|
|
55
|
-
let oldest = this.#map.keys().next()
|
|
56
|
-
if (oldest
|
|
55
|
+
let oldest = this.#map.keys().next();
|
|
56
|
+
if (!oldest.done) this.#map.delete(oldest.value);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
delete(key) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __toESM, asNonNull, asyncPool, collectPackageJsons, collectVersions, directoryExists, fileExists, filterPackageJsonsForPublish, findRootPackage, glob, info, loadBuildConfig, normalizeFilePath, object, processPackageJson, record, require_picomatch, string, tryCopy, unknown } from "./
|
|
2
|
-
import { determinePublishOrder, exec, require_semver } from "./
|
|
1
|
+
import { __toESM, asNonNull, asyncPool, collectPackageJsons, collectVersions, directoryExists, fileExists, filterPackageJsonsForPublish, findRootPackage, glob, info, loadBuildConfig, normalizeFilePath, object, processPackageJson, record, require_picomatch, string, tryCopy, unknown } from "./Boit7C7A.js";
|
|
2
|
+
import { determinePublishOrder, exec, require_semver } from "./C8taqIWx.js";
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import { dirname, join, relative, resolve } from "node:path";
|
|
@@ -14,13 +14,13 @@ export declare function sharedWorkspaceBumpOptions(params: {
|
|
|
14
14
|
export declare function formatBumpVersionResult(result: BumpVersionResult, withReleaseType: boolean): string;
|
|
15
15
|
export declare let bumpVersionCli: bc.Command<{
|
|
16
16
|
root: string | undefined;
|
|
17
|
-
type: "
|
|
17
|
+
type: "patch" | "minor" | "major" | "auto";
|
|
18
18
|
since: string | undefined;
|
|
19
19
|
dryRun: boolean | undefined;
|
|
20
20
|
quiet: boolean | undefined;
|
|
21
21
|
}, {
|
|
22
22
|
root: string | undefined;
|
|
23
|
-
type: "
|
|
23
|
+
type: "patch" | "minor" | "major" | "auto";
|
|
24
24
|
since: string | undefined;
|
|
25
25
|
dryRun: boolean | undefined;
|
|
26
26
|
quiet: boolean | undefined;
|
|
@@ -5,7 +5,7 @@ export declare function shouldSkipAutoRelease(params: {
|
|
|
5
5
|
commitsSincePrevTag: ReadonlyArray<unknown>;
|
|
6
6
|
}): boolean;
|
|
7
7
|
export declare let releaseCli: bc.Command<{
|
|
8
|
-
kind: "
|
|
8
|
+
kind: "patch" | "minor" | "major" | "auto";
|
|
9
9
|
withGithubRelease: boolean;
|
|
10
10
|
gitExtraOrigins: string | undefined;
|
|
11
11
|
githubToken: string | undefined;
|
|
@@ -24,7 +24,7 @@ export declare let releaseCli: bc.Command<{
|
|
|
24
24
|
noProvenance: boolean | undefined;
|
|
25
25
|
dryRun: boolean | undefined;
|
|
26
26
|
}, {
|
|
27
|
-
kind: "
|
|
27
|
+
kind: "patch" | "minor" | "major" | "auto";
|
|
28
28
|
withGithubRelease: boolean;
|
|
29
29
|
gitExtraOrigins: string | undefined;
|
|
30
30
|
githubToken: string | undefined;
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PackageJsonSchema, collectPackageJsons, collectVersions, directoryExists, error, fileExists, filterPackageJsonsForPublish, findPackageByName, findRootPackage, getWorkspaceRoot, info, loadBuildConfig, normalizeFilePath, parsePackageJson, parsePackageJsonFile, parsePackageJsonFromDir, parseWorkspaceRootPackageJson, processPackageJson, removeCommonjsExports, tryCopy, warn } from "./chunks/
|
|
2
|
-
import { LruMap, NPM_PACKAGE_NAME_REGEX, buildPackage, buildWorkspace, bumpVersion, createGithubRelease, determineBumpType, findChangedFiles, findProjectChangedFiles, findProjectChangedPackages, generateChangelog, generateDepsGraph, generateDocs, getCommitsBetween, getCurrentBranch, getCurrentCommit, getFirstCommit, getGithubActionsInput, getLatestTag, getTsconfigFiles, getTsconfigFor, gitTagExists, isRunningInGithubActions, npmCheckVersion, parseConventionalCommit, publishPackages, runContinuousRelease, validateWorkspaceDeps, writeGithubActionsOutput } from "./chunks/
|
|
3
|
-
import { ExecError, determinePublishOrder, exec, sortWorkspaceByPublishOrder } from "./chunks/
|
|
1
|
+
import { PackageJsonSchema, collectPackageJsons, collectVersions, directoryExists, error, fileExists, filterPackageJsonsForPublish, findPackageByName, findRootPackage, getWorkspaceRoot, info, loadBuildConfig, normalizeFilePath, parsePackageJson, parsePackageJsonFile, parsePackageJsonFromDir, parseWorkspaceRootPackageJson, processPackageJson, removeCommonjsExports, tryCopy, warn } from "./chunks/Boit7C7A.js";
|
|
2
|
+
import { LruMap, NPM_PACKAGE_NAME_REGEX, buildPackage, buildWorkspace, bumpVersion, createGithubRelease, determineBumpType, findChangedFiles, findProjectChangedFiles, findProjectChangedPackages, generateChangelog, generateDepsGraph, generateDocs, getCommitsBetween, getCurrentBranch, getCurrentCommit, getFirstCommit, getGithubActionsInput, getLatestTag, getTsconfigFiles, getTsconfigFor, gitTagExists, isRunningInGithubActions, npmCheckVersion, parseConventionalCommit, publishPackages, runContinuousRelease, validateWorkspaceDeps, writeGithubActionsOutput } from "./chunks/D8T5_c6n.js";
|
|
3
|
+
import { ExecError, determinePublishOrder, exec, sortWorkspaceByPublishOrder } from "./chunks/C8taqIWx.js";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
//#region src/package-json/find-package-json.ts
|
|
6
6
|
var findPackageJsonCache = new LruMap(32);
|
package/jsr.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { downloadJsrPackage, findClosestJsrJson, generateDenoWorkspace, getModuleCacheDirectory, jsrCheckVersion, jsrCreatePackages, jsrCreateScope, jsrGetScopeInfo, jsrMaybeCreatePackage, jsrSetGithubRepo, packageJsonToDeno, parseImportSpecifier, parseJsrJson, populateFromUpstream, splitImportRequest } from "./chunks/
|
|
1
|
+
import { downloadJsrPackage, findClosestJsrJson, generateDenoWorkspace, getModuleCacheDirectory, jsrCheckVersion, jsrCreatePackages, jsrCreateScope, jsrGetScopeInfo, jsrMaybeCreatePackage, jsrSetGithubRepo, packageJsonToDeno, parseImportSpecifier, parseJsrJson, populateFromUpstream, splitImportRequest } from "./chunks/DOprhwii.js";
|
|
2
2
|
export { downloadJsrPackage, findClosestJsrJson, generateDenoWorkspace, getModuleCacheDirectory, jsrCheckVersion, jsrCreatePackages, jsrCreateScope, jsrGetScopeInfo, jsrMaybeCreatePackage, jsrSetGithubRepo, packageJsonToDeno, parseImportSpecifier, parseJsrJson, populateFromUpstream, splitImportRequest };
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yorozu/build",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"description": "build and release utilities for yorozu packages",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@drizzle-team/brocli": "0.12.0",
|
|
9
|
-
"@yorozu/utils": "^0.
|
|
9
|
+
"@yorozu/utils": "^0.3.0",
|
|
10
10
|
"cross-spawn": "7.0.6",
|
|
11
11
|
"detect-indent": "7.0.2",
|
|
12
12
|
"esbuild": "0.25.12",
|
package/vite.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { asNonNull, collectPackageJsons, collectVersions, directoryExists, fileExists, glob, loadBuildConfig, normalizeFilePath, parallelMap, processPackageJson, removeCommonjsExports, tryCopy, warn } from "./chunks/
|
|
1
|
+
import { asNonNull, collectPackageJsons, collectVersions, directoryExists, fileExists, glob, loadBuildConfig, normalizeFilePath, parallelMap, processPackageJson, removeCommonjsExports, tryCopy, warn } from "./chunks/Boit7C7A.js";
|
|
2
2
|
import process from "node:process";
|
|
3
3
|
import { dirname, join, relative } from "node:path";
|
|
4
4
|
import * as fsp from "node:fs/promises";
|
|
@@ -23,6 +23,10 @@ function deepMerge(into, from, options = {}) {
|
|
|
23
23
|
continue;
|
|
24
24
|
}
|
|
25
25
|
if (typeof value === "object" && value !== null) {
|
|
26
|
+
if (value instanceof Date || value instanceof Map || value instanceof Set || value instanceof RegExp) {
|
|
27
|
+
if (propertiesStrategy === "ignore" && existing !== void 0) {} else into[key] = value;
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
26
30
|
if (objectsStrategy === "merge" && typeof existing === "object" && existing !== null) into[key] = deepMerge(existing, value, options);
|
|
27
31
|
else if (objectsStrategy === "ignore" && existing !== void 0) {} else into[key] = { ...value };
|
|
28
32
|
continue;
|
package/yorozu-build.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { asNonNull, collectPackageJsons, error, filterPackageJsonsForPublish, findRootPackage, getWorkspaceRoot, info, parallelMap, warn } from "./chunks/
|
|
3
|
-
import { boolean, buildPackageCli, bumpVersion, command, createGithubRelease, findProjectChangedPackages, generateChangelog, generateDepsGraphCli, generateDocsCli, getCommitsBetween, getLatestTag, gitTagExists, isRunningInGithubActions, loadConfig, publishPackages, publishPackagesCli, resolveWorkspaceRoot, run, runContinuousReleaseCli, string, validateWorkspaceDeps, writeGithubActionsOutput } from "./chunks/
|
|
4
|
-
import { ExecError, exec, sortWorkspaceByPublishOrder } from "./chunks/
|
|
5
|
-
import { generateDenoWorkspace, jsrCreatePackages, populateFromUpstream } from "./chunks/
|
|
2
|
+
import { asNonNull, collectPackageJsons, error, filterPackageJsonsForPublish, findRootPackage, getWorkspaceRoot, info, parallelMap, warn } from "./chunks/Boit7C7A.js";
|
|
3
|
+
import { boolean, buildPackageCli, bumpVersion, command, createGithubRelease, findProjectChangedPackages, generateChangelog, generateDepsGraphCli, generateDocsCli, getCommitsBetween, getLatestTag, gitTagExists, isRunningInGithubActions, loadConfig, publishPackages, publishPackagesCli, resolveWorkspaceRoot, run, runContinuousReleaseCli, string, validateWorkspaceDeps, writeGithubActionsOutput } from "./chunks/D8T5_c6n.js";
|
|
4
|
+
import { ExecError, exec, sortWorkspaceByPublishOrder } from "./chunks/C8taqIWx.js";
|
|
5
|
+
import { generateDenoWorkspace, jsrCreatePackages, populateFromUpstream } from "./chunks/DOprhwii.js";
|
|
6
6
|
import process from "node:process";
|
|
7
7
|
import { basename } from "node:path";
|
|
8
8
|
import { readFile } from "node:fs/promises";
|