wp-typia 0.22.9 → 0.23.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 +5 -0
- package/bin/routing-metadata.generated.js +16 -0
- package/dist-bunli/.bunli/commands.gen.js +7312 -3829
- package/dist-bunli/{cli-2pnk64h0.js → cli-1meywwsy.js} +148 -124
- package/dist-bunli/{cli-fys8vm2t.js → cli-43mx1vfb.js} +4 -1
- package/dist-bunli/{cli-ag722tzm.js → cli-9npd9was.js} +9 -5
- package/dist-bunli/{cli-add-6dn9h94t.js → cli-add-21bvpfgw.js} +4591 -2319
- package/dist-bunli/{cli-arz4rcye.js → cli-agywa5n6.js} +6 -6
- package/dist-bunli/{cli-xw1wbxf3.js → cli-c2acv5dv.js} +1 -1
- package/dist-bunli/{cli-doctor-564c43ay.js → cli-doctor-wy2yjsge.js} +245 -146
- package/dist-bunli/{cli-init-znhqp8tr.js → cli-init-xnsbxncv.js} +16 -6
- package/dist-bunli/{cli-rwjkqjhs.js → cli-j8et6jvr.js} +37 -2
- package/dist-bunli/{cli-scaffold-6trxyyk6.js → cli-scaffold-zhp2ym8z.js} +9 -9
- package/dist-bunli/{cli-regw5384.js → cli-ts9thts5.js} +1568 -1035
- package/dist-bunli/{cli-y934dq2k.js → cli-z5qkx2pn.js} +197 -100
- package/dist-bunli/cli.js +3 -3
- package/dist-bunli/{command-list-g3qhb3y4.js → command-list-aqrkx021.js} +881 -505
- package/dist-bunli/{migrations-qc1r0yqe.js → migrations-bx0yvc2v.js} +4 -4
- package/dist-bunli/node-cli.js +1173 -693
- 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-ts9thts5.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
|