@postxl/cli 1.0.12 → 1.0.13

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.
@@ -64,6 +64,7 @@ This reads the schema from ${(0, utils_1.yellow)('schema.json')} and runs the ge
64
64
  .option('-p, --pattern <glob>', 'filters files by glob pattern (e.g., "**/*.ts" or "backend/libs/**")')
65
65
  .option('-q, --quiet', 'does not print errors')
66
66
  .option('-s, --skip-lint', 'skips linting')
67
+ .option('-t, --skip-transform', 'skips linting and formatting')
67
68
  .option('-v, --verbose', 'shows verbose linting messages')
68
69
  .action(async (projectPath, targetPath, options) => {
69
70
  if (projectPath.startsWith('.')) {
@@ -104,20 +105,22 @@ This reads the schema from ${(0, utils_1.yellow)('schema.json')} and runs the ge
104
105
  .generate((g) => g)
105
106
  //
106
107
  .then(async (g) => {
107
- const lintResult = await (0, generator_1.lint)(g.context.vfs, options);
108
- if (!options.quiet) {
109
- (0, generator_1.logLintResults)(lintResult, options);
108
+ if (!options.skipTransform) {
109
+ const lintResult = await (0, generator_1.lint)(g.context.vfs, options);
110
+ if (!options.quiet) {
111
+ (0, generator_1.logLintResults)(lintResult, options);
112
+ }
113
+ await g.context.vfs.transform(generator_1.format, {
114
+ onError: ({ path, error }) => {
115
+ if (options.ignoreErrors) {
116
+ console.error(`Error formatting ${path}:`, error);
117
+ }
118
+ else {
119
+ throw error;
120
+ }
121
+ },
122
+ });
110
123
  }
111
- await g.context.vfs.transform(generator_1.format, {
112
- onError: ({ path, error }) => {
113
- if (options.ignoreErrors) {
114
- console.error(`Error formatting ${path}:`, error);
115
- }
116
- else {
117
- throw error;
118
- }
119
- },
120
- });
121
124
  const result = await (0, generator_1.sync)({
122
125
  vfs: g.context.vfs,
123
126
  lockFilePath: path.join(targetPath, 'postxl-lock.json'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postxl/cli",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Command-line interface for PostXL code generation framework",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -44,8 +44,8 @@
44
44
  "commander": "14.0.2",
45
45
  "dotenv": "17.2.3",
46
46
  "zod-validation-error": "3.4.0",
47
- "@postxl/generator": "^1.0.7",
48
- "@postxl/generators": "^1.0.13",
47
+ "@postxl/generator": "^1.0.8",
48
+ "@postxl/generators": "^1.2.0",
49
49
  "@postxl/schema": "^1.0.3",
50
50
  "@postxl/utils": "^1.0.1"
51
51
  },