@tsfpp/agents 1.2.0 → 1.2.1
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/CHANGELOG.md +6 -0
- package/init.mjs +0 -17
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@ Versioning follows [Semantic Versioning](https://semver.org/).
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [1.2.1] - 2026-05-16
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- Fixed an `init.mjs` idempotency bug in ESLint config declaration handling.
|
|
18
|
+
|
|
13
19
|
## [1.2.0] - 2026-05-16
|
|
14
20
|
|
|
15
21
|
### Added
|
package/init.mjs
CHANGED
|
@@ -253,24 +253,7 @@ if (existsSync(eslintDest)) {
|
|
|
253
253
|
await writeEslintConfig();
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
async function writeEslintConfig() {
|
|
257
|
-
console.log(` Which ESLint profile does this project use?`);
|
|
258
|
-
console.log(` ${dim('1')} base ${dim('— TypeScript / Node.js')}`);
|
|
259
|
-
console.log(` ${dim('2')} react ${dim('— React / TSX')}`);
|
|
260
|
-
console.log(` ${dim('3')} api ${dim('— HTTP API / Node.js servers')}`);
|
|
261
|
-
|
|
262
|
-
const choice = await ask(` ${dim('[1/2/3, default: 1]')} `);
|
|
263
|
-
const profile = choice === '2' ? 'react' : choice === '3' ? 'api' : 'base';
|
|
264
256
|
|
|
265
|
-
try {
|
|
266
|
-
await writeFile(eslintDest, ESLINT_PROFILES[profile], 'utf8');
|
|
267
|
-
results.copied.push('eslint.config.js');
|
|
268
|
-
console.log(` ${green('✓')} eslint.config.js ${dim(`(profile: ${profile})`)}`);
|
|
269
|
-
} catch (err) {
|
|
270
|
-
results.failed.push('eslint.config.js');
|
|
271
|
-
console.log(` \x1b[31m✗\x1b[0m eslint.config.js ${dim(`(${err.message})`)}`);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
257
|
|
|
275
258
|
// ── Generate tsconfig.json ────────────────────────────────────────────────────
|
|
276
259
|
|