@agjs/tsforge 0.1.1 → 0.1.2
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/package.json +1 -1
- package/src/detect-gate.ts +8 -0
package/package.json
CHANGED
package/src/detect-gate.ts
CHANGED
|
@@ -447,6 +447,14 @@ async function ensureFile(
|
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
+
/** The bundled `prettier --write` command. Prepended to the EVAL gate so the
|
|
451
|
+
* model's output is auto-formatted before the strict checks run — the model
|
|
452
|
+
* never burns turns hand-formatting, and the committed code is prettier-clean.
|
|
453
|
+
* Uses tsforge's own prettier so it works in a target with no prettier installed. */
|
|
454
|
+
export function prettierWriteCommand(): string {
|
|
455
|
+
return `"${PRETTIER_BIN}" --write .`;
|
|
456
|
+
}
|
|
457
|
+
|
|
450
458
|
export async function buildGate(
|
|
451
459
|
cwd: string,
|
|
452
460
|
packs?: readonly string[],
|