wp-typia 0.23.0 → 0.24.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/README.md +3 -1
- package/bin/routing-metadata.generated.js +11 -0
- package/dist-bunli/.bunli/commands.gen.js +11884 -9017
- package/dist-bunli/{cli-9npd9was.js → cli-0v407aag.js} +12 -10
- package/dist-bunli/{cli-hhp1d348.js → cli-1170yyve.js} +8 -7
- package/dist-bunli/{cli-1meywwsy.js → cli-74y6z3yx.js} +1455 -819
- package/dist-bunli/{cli-qse6myha.js → cli-8hxf9qw6.js} +11 -3
- package/dist-bunli/{cli-8reep89s.js → cli-9fx0qgb7.js} +2 -2
- package/dist-bunli/{cli-add-21bvpfgw.js → cli-add-nmdraf20.js} +8542 -7667
- package/dist-bunli/{cli-52ke0ptp.js → cli-am5x7tb4.js} +8 -2
- package/dist-bunli/{cli-43mx1vfb.js → cli-bajwv85z.js} +2 -1
- package/dist-bunli/cli-ccax7s0s.js +34 -0
- package/dist-bunli/{cli-z5qkx2pn.js → cli-cwjdzq6n.js} +79 -13
- package/dist-bunli/{cli-diagnostics-5dvztm7q.js → cli-diagnostics-10drxh34.js} +1 -1
- package/dist-bunli/{cli-doctor-wy2yjsge.js → cli-doctor-pcss6ecx.js} +688 -459
- package/dist-bunli/{cli-2rqf6t0b.js → cli-e4bwd81c.js} +8 -11
- package/dist-bunli/{cli-init-xnsbxncv.js → cli-init-he7vm7kc.js} +15 -11
- package/dist-bunli/{cli-prompt-614tq57c.js → cli-prompt-ncyg68rn.js} +1 -1
- package/dist-bunli/{cli-bq2v559b.js → cli-rdcga1bd.js} +31 -13
- package/dist-bunli/{cli-scaffold-zhp2ym8z.js → cli-scaffold-an2k0fnm.js} +28 -16
- package/dist-bunli/{cli-c2acv5dv.js → cli-sw06c521.js} +2 -2
- package/dist-bunli/{cli-templates-hc71dfc2.js → cli-templates-g8t4fm11.js} +3 -2
- package/dist-bunli/{cli-p95wr1q8.js → cli-tq730sqt.js} +6 -3
- package/dist-bunli/{cli-ts9thts5.js → cli-v0nnagb3.js} +1513 -1053
- package/dist-bunli/{cli-agywa5n6.js → cli-y0a8nztv.js} +15 -6
- package/dist-bunli/cli-z48frc8t.js +229 -0
- package/dist-bunli/cli.js +5 -5
- package/dist-bunli/{command-list-aqrkx021.js → command-list-xaw5agks.js} +241 -64
- package/dist-bunli/{create-template-validation-rtec5sng.js → create-template-validation-4fr851vg.js} +5 -4
- package/dist-bunli/{migrations-bx0yvc2v.js → migrations-z7f4kxba.js} +10 -9
- package/dist-bunli/node-cli.js +661 -389
- package/dist-bunli/{workspace-project-csnnggz6.js → workspace-project-gmv2a71z.js} +4 -3
- package/package.json +2 -2
- package/dist-bunli/cli-j8et6jvr.js +0 -123
|
@@ -18,7 +18,6 @@ import {
|
|
|
18
18
|
ensureAdvancedMigrationProject,
|
|
19
19
|
ensureMigrationDirectories,
|
|
20
20
|
escapeForCode,
|
|
21
|
-
exports_json_utils,
|
|
22
21
|
formatLegacyMigrationWorkspaceResetGuidance,
|
|
23
22
|
getAvailableSnapshotVersionsForBlock,
|
|
24
23
|
getFixtureFilePath,
|
|
@@ -45,20 +44,23 @@ import {
|
|
|
45
44
|
setValueAtPath,
|
|
46
45
|
writeInitialMigrationScaffold,
|
|
47
46
|
writeMigrationConfig
|
|
48
|
-
} from "./cli-
|
|
47
|
+
} from "./cli-e4bwd81c.js";
|
|
49
48
|
import {
|
|
50
49
|
readWorkspaceInventory
|
|
51
|
-
} from "./cli-
|
|
50
|
+
} from "./cli-v0nnagb3.js";
|
|
52
51
|
import {
|
|
53
52
|
getInvalidWorkspaceProjectReason,
|
|
54
53
|
tryResolveWorkspaceProject
|
|
55
|
-
} from "./cli-
|
|
54
|
+
} from "./cli-1170yyve.js";
|
|
56
55
|
import {
|
|
57
56
|
formatRunScript
|
|
58
|
-
} from "./cli-
|
|
57
|
+
} from "./cli-am5x7tb4.js";
|
|
58
|
+
import {
|
|
59
|
+
cloneJsonValue
|
|
60
|
+
} from "./cli-ccax7s0s.js";
|
|
59
61
|
import {
|
|
60
62
|
createReadlinePrompt
|
|
61
|
-
} from "./cli-
|
|
63
|
+
} from "./cli-rdcga1bd.js";
|
|
62
64
|
|
|
63
65
|
// ../wp-typia-project-tools/src/runtime/migrations.ts
|
|
64
66
|
import fs8 from "fs";
|
|
@@ -895,7 +897,7 @@ function createEdgeFixtureDocument(projectDir, block, fromVersion, toVersion, di
|
|
|
895
897
|
}
|
|
896
898
|
function createRenameFixtureCases(baseAttributes, renameCandidates) {
|
|
897
899
|
return renameCandidates.filter((candidate) => candidate.autoApply).map((candidate) => {
|
|
898
|
-
const nextInput =
|
|
900
|
+
const nextInput = cloneJsonValue(baseAttributes);
|
|
899
901
|
const legacyValue = getValueAtPath(nextInput, candidate.legacyPath);
|
|
900
902
|
deleteValueAtPath(nextInput, candidate.currentPath);
|
|
901
903
|
if (legacyValue === undefined) {
|
|
@@ -909,7 +911,7 @@ function createRenameFixtureCases(baseAttributes, renameCandidates) {
|
|
|
909
911
|
}
|
|
910
912
|
function createTransformFixtureCases(baseAttributes, transformSuggestions) {
|
|
911
913
|
return transformSuggestions.map((suggestion) => {
|
|
912
|
-
const nextInput =
|
|
914
|
+
const nextInput = cloneJsonValue(baseAttributes);
|
|
913
915
|
const legacyPath = suggestion.legacyPath ?? suggestion.currentPath;
|
|
914
916
|
setValueAtPath(nextInput, legacyPath, createTransformFixtureValue(suggestion.attribute, suggestion.currentPath));
|
|
915
917
|
return {
|
|
@@ -925,7 +927,7 @@ function createUnionFixtureCases(baseAttributes, manifestAttributes, renameCandi
|
|
|
925
927
|
continue;
|
|
926
928
|
}
|
|
927
929
|
for (const [branchKey, branch] of Object.entries(attribute.ts.union.branches ?? {})) {
|
|
928
|
-
const nextInput =
|
|
930
|
+
const nextInput = cloneJsonValue(baseAttributes);
|
|
929
931
|
const legacyPath = renameCandidates.find((candidate) => candidate.autoApply && candidate.currentPath === key)?.legacyPath ?? key;
|
|
930
932
|
setValueAtPath(nextInput, legacyPath, createUnionBranchFixtureValue(attribute.ts.union.discriminator, branchKey, branch));
|
|
931
933
|
cases.push({
|
|
@@ -2607,4 +2609,4 @@ function seedProjectMigrations(projectDir, currentMigrationVersion, blocks, { re
|
|
|
2607
2609
|
|
|
2608
2610
|
export { formatMigrationHelpText, parseMigrationArgs, formatDiffReport, verifyProjectMigrations, doctorProjectMigrations, fixturesProjectMigrations, fuzzProjectMigrations, runMigrationCommand, planProjectMigrations, wizardProjectMigrations, initProjectMigrations, snapshotProjectVersion, diffProjectMigrations, scaffoldProjectMigrations, seedProjectMigrations };
|
|
2609
2611
|
|
|
2610
|
-
//# debugId=
|
|
2612
|
+
//# debugId=A37691396E12D94E64756E2164756E21
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
parsePackageManagerField
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-am5x7tb4.js";
|
|
5
|
+
import {
|
|
6
|
+
readJsonFileSync
|
|
7
|
+
} from "./cli-ccax7s0s.js";
|
|
5
8
|
|
|
6
9
|
// ../wp-typia-project-tools/src/runtime/workspace-project.ts
|
|
7
10
|
import fs from "fs";
|
|
@@ -12,11 +15,9 @@ function hasNonEmptyString(value) {
|
|
|
12
15
|
}
|
|
13
16
|
function parseWorkspacePackageJson(projectDirOrManifestPath) {
|
|
14
17
|
const packageJsonPath = path.basename(projectDirOrManifestPath) === "package.json" ? projectDirOrManifestPath : path.join(projectDirOrManifestPath, "package.json");
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
throw new Error(`Failed to parse workspace package manifest at ${packageJsonPath}: ${error instanceof Error ? error.message : String(error)}`);
|
|
19
|
-
}
|
|
18
|
+
return readJsonFileSync(packageJsonPath, {
|
|
19
|
+
context: "workspace package manifest"
|
|
20
|
+
});
|
|
20
21
|
}
|
|
21
22
|
function getWorkspaceMetadataIssues(packageJson) {
|
|
22
23
|
if (!packageJson.wpTypia) {
|
|
@@ -102,4 +103,4 @@ function resolveWorkspaceProject(startDir) {
|
|
|
102
103
|
|
|
103
104
|
export { WORKSPACE_TEMPLATE_PACKAGE, parseWorkspacePackageJson, getInvalidWorkspaceProjectReason, parseWorkspacePackageManagerId, tryResolveWorkspaceProject, resolveWorkspaceProject };
|
|
104
105
|
|
|
105
|
-
//# debugId=
|
|
106
|
+
//# debugId=A038EAAB2DDFD6D964756E2164756E21
|