@omnifyjp/ts 1.1.2 → 1.1.3

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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -71,7 +71,7 @@ program
71
71
  .option('-c, --config <path>', 'Path to omnify.yaml (default: ./omnify.yaml)')
72
72
  .option('-i, --input <path>', 'Path to schemas.json (overrides config)')
73
73
  .option('-o, --output <path>', 'Output directory for TypeScript (overrides config)')
74
- .option('--force', 'Overwrite user-editable model files', false)
74
+ .option('--force', 'Force regeneration of auto-generated files', false)
75
75
  .action((opts) => {
76
76
  let inputPath;
77
77
  let tsEnabled = true;
@@ -126,7 +126,7 @@ program
126
126
  filePath = join(tsOutput, file.filePath);
127
127
  }
128
128
  mkdirSync(dirname(filePath), { recursive: true });
129
- if (!file.overwrite && existsSync(filePath) && !opts.force) {
129
+ if (!file.overwrite && existsSync(filePath)) {
130
130
  tsSkipped++;
131
131
  continue;
132
132
  }
@@ -157,7 +157,7 @@ program
157
157
  for (const file of phpFiles) {
158
158
  const filePath = resolve(configDir, file.path);
159
159
  mkdirSync(dirname(filePath), { recursive: true });
160
- if (!file.overwrite && existsSync(filePath) && !opts.force) {
160
+ if (!file.overwrite && existsSync(filePath)) {
161
161
  phpSkipped++;
162
162
  continue;
163
163
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnifyjp/ts",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "TypeScript model type generator from Omnify schemas.json",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",