@tsfpp/agents 1.3.1 → 1.3.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/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.3.2] - 2026-05-17
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- Fixed `init.mjs` duplicate symbol bug by removing a duplicate `writeEslintConfig` declaration.
|
|
18
|
+
|
|
13
19
|
## [1.3.1] - 2026-05-17
|
|
14
20
|
|
|
15
21
|
### Added
|
package/init.mjs
CHANGED
|
@@ -248,24 +248,7 @@ if (existsSync(eslintDest)) {
|
|
|
248
248
|
await writeEslintConfig();
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
async function writeEslintConfig() {
|
|
252
|
-
console.log(` Which ESLint profile does this project use?`);
|
|
253
|
-
console.log(` ${dim('1')} base ${dim('— TypeScript / Node.js')}`);
|
|
254
|
-
console.log(` ${dim('2')} react ${dim('— React / TSX')}`);
|
|
255
|
-
console.log(` ${dim('3')} api ${dim('— HTTP API / Node.js servers')}`);
|
|
256
|
-
|
|
257
|
-
const choice = await ask(` ${dim('[1/2/3, default: 1]')} `);
|
|
258
|
-
const profile = choice === '2' ? 'react' : choice === '3' ? 'api' : 'base';
|
|
259
251
|
|
|
260
|
-
try {
|
|
261
|
-
await writeFile(eslintDest, ESLINT_PROFILES[profile], 'utf8');
|
|
262
|
-
results.copied.push('eslint.config.js');
|
|
263
|
-
console.log(` ${green('✓')} eslint.config.js ${dim(`(profile: ${profile})`)}`);
|
|
264
|
-
} catch (err) {
|
|
265
|
-
results.failed.push('eslint.config.js');
|
|
266
|
-
console.log(` \x1b[31m✗\x1b[0m eslint.config.js ${dim(`(${err.message})`)}`);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
252
|
|
|
270
253
|
// ── Generate tsconfig.json ────────────────────────────────────────────────────
|
|
271
254
|
|