wp-typia 0.22.9 → 0.22.10
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/dist-bunli/.bunli/commands.gen.js +2781 -2630
- package/dist-bunli/{cli-xw1wbxf3.js → cli-1k61xyn2.js} +1 -1
- package/dist-bunli/{cli-arz4rcye.js → cli-2mswafd6.js} +6 -6
- package/dist-bunli/{cli-2pnk64h0.js → cli-2x49egkd.js} +19 -21
- package/dist-bunli/{cli-regw5384.js → cli-3fzqhpx9.js} +1040 -1034
- package/dist-bunli/{cli-add-6dn9h94t.js → cli-add-8rvmezy0.js} +21 -21
- package/dist-bunli/{cli-doctor-564c43ay.js → cli-doctor-5m6xyx9q.js} +7 -7
- package/dist-bunli/{cli-init-znhqp8tr.js → cli-init-qv3zxmvc.js} +4 -4
- package/dist-bunli/{cli-scaffold-6trxyyk6.js → cli-scaffold-b1ex2y80.js} +8 -8
- package/dist-bunli/{cli-y934dq2k.js → cli-spdrcg8k.js} +117 -99
- package/dist-bunli/{cli-ag722tzm.js → cli-tjf0070f.js} +9 -5
- package/dist-bunli/cli.js +2 -2
- package/dist-bunli/{command-list-g3qhb3y4.js → command-list-h96cft88.js} +596 -489
- package/dist-bunli/{migrations-qc1r0yqe.js → migrations-7g9rag5d.js} +3 -3
- package/dist-bunli/node-cli.js +728 -588
- package/package.json +2 -2
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
PROJECT_TOOLS_PACKAGE_ROOT
|
|
4
4
|
} from "./cli-qse6myha.js";
|
|
5
|
+
import {
|
|
6
|
+
getOptionalNodeErrorCode
|
|
7
|
+
} from "./cli-3fzqhpx9.js";
|
|
5
8
|
|
|
6
9
|
// ../wp-typia-project-tools/src/runtime/package-versions.ts
|
|
7
10
|
import fs from "fs";
|
|
@@ -19,9 +22,6 @@ var DEFAULT_WORDPRESS_DATA_VERSION = "^9.28.0";
|
|
|
19
22
|
var DEFAULT_WORDPRESS_DATAVIEWS_VERSION = "^14.1.0";
|
|
20
23
|
var DEFAULT_WP_TYPIA_DATAVIEWS_VERSION = "^0.1.1";
|
|
21
24
|
var cachedPackageVersions = null;
|
|
22
|
-
function getErrorCode(error) {
|
|
23
|
-
return typeof error === "object" && error !== null && "code" in error ? String(error.code) : undefined;
|
|
24
|
-
}
|
|
25
25
|
function normalizeVersionRange(value) {
|
|
26
26
|
const trimmed = value?.trim();
|
|
27
27
|
if (!trimmed) {
|
|
@@ -73,7 +73,7 @@ function resolvePackageManifestLocation(packageJsonPath) {
|
|
|
73
73
|
source
|
|
74
74
|
};
|
|
75
75
|
} catch (error) {
|
|
76
|
-
if (
|
|
76
|
+
if (getOptionalNodeErrorCode(error) === "ENOENT") {
|
|
77
77
|
return {
|
|
78
78
|
cacheKey: `missing-file:${packageJsonPath}`,
|
|
79
79
|
packageJsonPath: null,
|
|
@@ -103,7 +103,7 @@ function resolveInstalledPackageManifestLocation(packageName) {
|
|
|
103
103
|
try {
|
|
104
104
|
return resolvePackageManifestLocation(require2.resolve(`${packageName}/package.json`));
|
|
105
105
|
} catch (error) {
|
|
106
|
-
if (
|
|
106
|
+
if (getOptionalNodeErrorCode(error) === "MODULE_NOT_FOUND") {
|
|
107
107
|
return {
|
|
108
108
|
cacheKey: `missing-module:${packageName}`,
|
|
109
109
|
packageJsonPath: null,
|
|
@@ -184,4 +184,4 @@ function getPackageVersions() {
|
|
|
184
184
|
|
|
185
185
|
export { DEFAULT_WORDPRESS_ABILITIES_VERSION, DEFAULT_WORDPRESS_CORE_ABILITIES_VERSION, DEFAULT_WORDPRESS_CORE_DATA_VERSION, DEFAULT_WORDPRESS_DATA_VERSION, DEFAULT_WORDPRESS_DATAVIEWS_VERSION, DEFAULT_WP_TYPIA_DATAVIEWS_VERSION, resolveManagedPackageVersionRange, getPackageVersions };
|
|
186
186
|
|
|
187
|
-
//# debugId=
|
|
187
|
+
//# debugId=00D2485EFE2B66E864756E2164756E21
|
|
@@ -1,23 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
getPackageVersions
|
|
4
|
-
} from "./cli-arz4rcye.js";
|
|
5
2
|
import {
|
|
6
3
|
CREATE_TEMPLATE_SELECTION_HINT,
|
|
7
4
|
parseTemplateLocator,
|
|
8
5
|
require_semver,
|
|
9
6
|
validateExplicitCreateTemplateId
|
|
10
7
|
} from "./cli-8reep89s.js";
|
|
11
|
-
import {
|
|
12
|
-
seedProjectMigrations
|
|
13
|
-
} from "./cli-ag722tzm.js";
|
|
14
|
-
import {
|
|
15
|
-
ensureMigrationDirectories,
|
|
16
|
-
isPlainObject,
|
|
17
|
-
stableJsonStringify,
|
|
18
|
-
writeInitialMigrationScaffold,
|
|
19
|
-
writeMigrationConfig
|
|
20
|
-
} from "./cli-2rqf6t0b.js";
|
|
21
8
|
import {
|
|
22
9
|
getBuiltInSharedTemplateLayerDir,
|
|
23
10
|
getBuiltInTemplateLayerDirs,
|
|
@@ -27,7 +14,10 @@ import {
|
|
|
27
14
|
isOmittableBuiltInTemplateLayerDir,
|
|
28
15
|
resolveBuiltInTemplateSource,
|
|
29
16
|
resolveBuiltInTemplateSourceFromLayerDirs
|
|
30
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-1k61xyn2.js";
|
|
18
|
+
import {
|
|
19
|
+
getPackageVersions
|
|
20
|
+
} from "./cli-2mswafd6.js";
|
|
31
21
|
import {
|
|
32
22
|
BUILTIN_BLOCK_METADATA_VERSION,
|
|
33
23
|
COMPOUND_CHILD_BLOCK_METADATA_DEFAULTS,
|
|
@@ -43,10 +33,21 @@ import {
|
|
|
43
33
|
isBuiltInTemplateId,
|
|
44
34
|
normalizeTemplateLookupId
|
|
45
35
|
} from "./cli-qse6myha.js";
|
|
36
|
+
import {
|
|
37
|
+
seedProjectMigrations
|
|
38
|
+
} from "./cli-tjf0070f.js";
|
|
39
|
+
import {
|
|
40
|
+
ensureMigrationDirectories,
|
|
41
|
+
isPlainObject,
|
|
42
|
+
stableJsonStringify,
|
|
43
|
+
writeInitialMigrationScaffold,
|
|
44
|
+
writeMigrationConfig
|
|
45
|
+
} from "./cli-2rqf6t0b.js";
|
|
46
46
|
import {
|
|
47
47
|
buildBlockCssClassName,
|
|
48
48
|
buildFrontendCssClassName,
|
|
49
49
|
getNodeErrorCode,
|
|
50
|
+
getOptionalNodeErrorCode,
|
|
50
51
|
normalizeBlockSlug,
|
|
51
52
|
pathExists,
|
|
52
53
|
readOptionalUtf8File,
|
|
@@ -57,7 +58,7 @@ import {
|
|
|
57
58
|
toTitleCase,
|
|
58
59
|
validateBlockSlug,
|
|
59
60
|
validateNamespace
|
|
60
|
-
} from "./cli-
|
|
61
|
+
} from "./cli-3fzqhpx9.js";
|
|
61
62
|
import {
|
|
62
63
|
createManagedTempRoot
|
|
63
64
|
} from "./cli-t73q5aqz.js";
|
|
@@ -3061,14 +3062,11 @@ import { createRequire } from "module";
|
|
|
3061
3062
|
import path8 from "path";
|
|
3062
3063
|
var require2 = createRequire(import.meta.url);
|
|
3063
3064
|
var DEFAULT_SCAFFOLD_REPOSITORY_REFERENCE = "imjlk/wp-typia";
|
|
3064
|
-
function getErrorCode(error) {
|
|
3065
|
-
return typeof error === "object" && error !== null && "code" in error ? String(error.code) : undefined;
|
|
3066
|
-
}
|
|
3067
3065
|
function readRepositoryPackageManifest(packageJsonPath) {
|
|
3068
3066
|
try {
|
|
3069
3067
|
return JSON.parse(fs4.readFileSync(packageJsonPath, "utf8"));
|
|
3070
3068
|
} catch (error) {
|
|
3071
|
-
if (
|
|
3069
|
+
if (getOptionalNodeErrorCode(error) === "ENOENT") {
|
|
3072
3070
|
return null;
|
|
3073
3071
|
}
|
|
3074
3072
|
throw error;
|
|
@@ -3078,7 +3076,7 @@ function resolveInstalledPackageManifestPath(packageName) {
|
|
|
3078
3076
|
try {
|
|
3079
3077
|
return require2.resolve(`${packageName}/package.json`);
|
|
3080
3078
|
} catch (error) {
|
|
3081
|
-
if (
|
|
3079
|
+
if (getOptionalNodeErrorCode(error) === "MODULE_NOT_FOUND") {
|
|
3082
3080
|
return null;
|
|
3083
3081
|
}
|
|
3084
3082
|
throw error;
|
|
@@ -14014,4 +14012,4 @@ async function resolveOptionalInteractiveExternalLayerId({
|
|
|
14014
14012
|
|
|
14015
14013
|
export { syncPersistenceRestArtifacts, copyInterpolatedDirectory, listInterpolatedDirectoryOutputs, getPrimaryDevelopmentScript, getOptionalOnboardingSteps, getOptionalOnboardingNote, getOptionalOnboardingShortNote, isCompoundPersistenceEnabled, formatNonEmptyTargetDirectoryError, resolveExternalTemplateLayers, resolveTemplateSeed, normalizeOptionalCliString, resolveLocalCliPathOption, assertExternalLayerCompositionOptions, assertBuiltInTemplateVariantAllowed, parseAlternateRenderTargets, parseCompoundInnerBlocksPreset, OPTIONAL_WORDPRESS_AI_CLIENT_COMPATIBILITY, REQUIRED_WORKSPACE_ABILITY_COMPATIBILITY, resolveScaffoldCompatibilityPolicy, createScaffoldCompatibilityConfig, renderScaffoldCompatibilityConfig, updatePluginHeaderCompatibility, getDefaultAnswers, resolveTemplateId, resolvePackageManagerId, collectScaffoldAnswers, DATA_STORAGE_MODES, PERSISTENCE_POLICIES, isDataStorageMode, isPersistencePolicy, scaffoldProject, resolveOptionalInteractiveExternalLayerId };
|
|
14016
14014
|
|
|
14017
|
-
//# debugId=
|
|
14015
|
+
//# debugId=D080E1AA4CFC66CB64756E2164756E21
|