@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.
- package/dist/cli.js +3 -3
- 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', '
|
|
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)
|
|
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)
|
|
160
|
+
if (!file.overwrite && existsSync(filePath)) {
|
|
161
161
|
phpSkipped++;
|
|
162
162
|
continue;
|
|
163
163
|
}
|