@postxl/cli 1.0.10 → 1.0.12

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
@@ -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.kind === 'workspace') {
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.10",
3
+ "version": "1.0.12",
4
4
  "description": "Command-line interface for PostXL code generation framework",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -41,13 +41,13 @@
41
41
  "directory": "packages/cli"
42
42
  },
43
43
  "dependencies": {
44
- "commander": "12.1.0",
45
- "dotenv": "16.4.7",
44
+ "commander": "14.0.2",
45
+ "dotenv": "17.2.3",
46
46
  "zod-validation-error": "3.4.0",
47
- "@postxl/generator": "^1.0.5",
48
- "@postxl/generators": "^1.0.7",
49
- "@postxl/schema": "^1.0.1",
50
- "@postxl/utils": "^1.0.0"
47
+ "@postxl/generator": "^1.0.7",
48
+ "@postxl/generators": "^1.0.13",
49
+ "@postxl/schema": "^1.0.3",
50
+ "@postxl/utils": "^1.0.1"
51
51
  },
52
52
  "devDependencies": {},
53
53
  "wallaby": {