@postxl/cli 1.0.10 → 1.0.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.
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { ProjectSchemaName, ProjectSlug } from '@postxl/schema';
|
|
1
|
+
import { ProjectSchemaName, ProjectSlug, ProjectType } from '@postxl/schema';
|
|
2
2
|
import { ProjectPath } from '../create-project.command';
|
|
3
3
|
export type CreateProjectOptions = {
|
|
4
4
|
name: ProjectSchemaName;
|
|
5
5
|
slug: ProjectSlug;
|
|
6
6
|
schema: object & {
|
|
7
|
-
projectType?:
|
|
8
|
-
kind: string;
|
|
9
|
-
};
|
|
7
|
+
projectType?: ProjectType;
|
|
10
8
|
};
|
|
11
9
|
projectPath: ProjectPath;
|
|
12
10
|
};
|
|
@@ -136,10 +136,7 @@ async function createProject(options) {
|
|
|
136
136
|
...schema,
|
|
137
137
|
name,
|
|
138
138
|
slug,
|
|
139
|
-
projectType:
|
|
140
|
-
kind: projectPath.kind,
|
|
141
|
-
projectDirectory: projectPath.projectGenerationPath,
|
|
142
|
-
},
|
|
139
|
+
projectType: projectPath.kind,
|
|
143
140
|
};
|
|
144
141
|
// Write source files directly to disk (not tracked as generated files)
|
|
145
142
|
// These are the files that define the project, not generated output
|
package/dist/generate.command.js
CHANGED
|
@@ -255,7 +255,7 @@ async function isInPostxlWorkspace(projectPath) {
|
|
|
255
255
|
async function resolveTargetPath({ projectPath, targetPath, envTargetPath, schemaSlug, projectType, }) {
|
|
256
256
|
let resolved = targetPath ?? envTargetPath;
|
|
257
257
|
if (!resolved) {
|
|
258
|
-
if (projectType
|
|
258
|
+
if (projectType === 'workspace') {
|
|
259
259
|
resolved = projectPath;
|
|
260
260
|
}
|
|
261
261
|
else if (await isInPostxlWorkspace(projectPath)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postxl/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Command-line interface for PostXL code generation framework",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"commander": "12.1.0",
|
|
45
45
|
"dotenv": "16.4.7",
|
|
46
46
|
"zod-validation-error": "3.4.0",
|
|
47
|
-
"@postxl/generator": "^1.0.
|
|
48
|
-
"@postxl/generators": "^1.0.
|
|
49
|
-
"@postxl/schema": "^1.0.
|
|
47
|
+
"@postxl/generator": "^1.0.6",
|
|
48
|
+
"@postxl/generators": "^1.0.8",
|
|
49
|
+
"@postxl/schema": "^1.0.2",
|
|
50
50
|
"@postxl/utils": "^1.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {},
|