@wp-typia/project-tools 0.16.10 → 0.16.11
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/runtime/cli-help.js
CHANGED
|
@@ -33,7 +33,7 @@ Built-in templates: ${TEMPLATE_IDS.join(", ")}
|
|
|
33
33
|
Package managers: ${PACKAGE_MANAGER_IDS.join(", ")}
|
|
34
34
|
Notes:
|
|
35
35
|
\`wp-typia create\` is the canonical scaffold command.
|
|
36
|
-
\`wp-typia <project-dir>\` remains a backward-compatible alias to \`create
|
|
36
|
+
\`wp-typia <project-dir>\` remains a backward-compatible alias to \`create\` when \`<project-dir>\` is the only positional argument.
|
|
37
37
|
Use \`--template workspace\` as shorthand for \`@wp-typia/create-workspace-template\`, the official empty workspace scaffold behind \`wp-typia add ...\`.
|
|
38
38
|
\`add variation\` uses an existing workspace block from \`scripts/block-config.ts\`.
|
|
39
39
|
\`add pattern\` scaffolds a namespaced PHP pattern shell under \`src/patterns/\`.
|
|
@@ -108,7 +108,7 @@ export async function runScaffoldFlow({ projectInput, cwd = process.cwd(), templ
|
|
|
108
108
|
? externalLayerSource.trim()
|
|
109
109
|
: undefined;
|
|
110
110
|
if (!projectInput) {
|
|
111
|
-
throw new Error("Project directory is required. Usage: wp-typia create <project-dir> (or wp-typia <project-dir>).");
|
|
111
|
+
throw new Error("Project directory is required. Usage: wp-typia create <project-dir> (or wp-typia <project-dir> when <project-dir> is the only positional argument).");
|
|
112
112
|
}
|
|
113
113
|
const resolvedTemplateId = await resolveTemplateId({
|
|
114
114
|
templateId,
|
|
@@ -41,7 +41,7 @@ function injectBefore(source, needle, insertion) {
|
|
|
41
41
|
return source.replace(needle, `${insertion}\n${needle}`);
|
|
42
42
|
}
|
|
43
43
|
function injectAfterBlockMetadataImport(source, insertion) {
|
|
44
|
-
|
|
44
|
+
const nextSource = injectAfter(source, BLOCK_METADATA_IMPORT_LINE, insertion);
|
|
45
45
|
if (nextSource !== source) {
|
|
46
46
|
return nextSource;
|
|
47
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wp-typia/project-tools",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.11",
|
|
4
4
|
"description": "Project orchestration and programmatic tooling for wp-typia",
|
|
5
5
|
"packageManager": "bun@1.3.11",
|
|
6
6
|
"type": "module",
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
"dependencies": {
|
|
122
122
|
"@wp-typia/api-client": "^0.4.4",
|
|
123
123
|
"@wp-typia/block-runtime": "^0.4.8",
|
|
124
|
-
"@wp-typia/rest": "^0.3.
|
|
125
|
-
"@wp-typia/block-types": "^0.2.
|
|
124
|
+
"@wp-typia/rest": "^0.3.8",
|
|
125
|
+
"@wp-typia/block-types": "^0.2.4",
|
|
126
126
|
"mustache": "^4.2.0",
|
|
127
127
|
"npm-package-arg": "^13.0.0",
|
|
128
128
|
"semver": "^7.7.3",
|