Skip to content

Commit e175677

Browse files
committed
chore(release): v1.1.0 - Add start script, improve test coverage, and update dependencies
- Introduced `start: node dist/index.js` script in generated projects. - Added `vitest.config.ts` and 7 unit tests for `detectPackageManager`. - Fixed registration of `-d, --default` flag and improved git commit guard logic. - Extended `.gitignore` and updated various scripts for consistency. - Bumped Node.js minimum requirement to 20.19.0 and updated README accordingly. - Removed dead code and stale backup files.
1 parent a387638 commit e175677

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,39 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.1.0] - 2026-03-21
9+
10+
### Added
11+
12+
- `start: node dist/index.js` script in all generated projects (was documented in README but never actually generated)
13+
- `vitest.config.ts` with explicit test include pattern and timeout
14+
- 7 unit tests for `detectPackageManager` covering user agent parsing, lockfile detection, and npm fallback
15+
- `-d, --default` flag now properly registered in cac — was dead code before (only handled in a parser that never ran with flags)
16+
17+
### Changed
18+
19+
- Extended generated `.gitignore`: now includes `.env.local`, `*.log`, `npm-debug.log*`, `coverage/`, `.DS_Store`
20+
- Replaced `spawnSync` with async `spawn` in generator — no longer blocks the event loop during git and install operations
21+
- `dev` script in root project switched from `ts-node` to `tsx` for consistency with generated projects
22+
- `prepare` script updated from deprecated `husky install` to `husky`
23+
- ESLint config: replaced `globals.jest` with `globals.vitest`
24+
- `publish.yml` workflow: Node 18 (EOL) → Node 20 to match CI
25+
- `generator.test.ts`: disabled real `npm install` (was the only test running a live install, now consistent with all other tests)
26+
- Pinned `tsx ^4.21.0` in devDependencies so generated projects get a deterministic version instead of `latest`
27+
- Node.js minimum requirement bumped to 20.19.0 (required by cac v7)
28+
- README: corrected `ts-node``tsx` in nodemon section, updated Node.js requirement
29+
30+
### Fixed
31+
32+
- Git commit guard condition was `!insideRepo || !hasCommits` — would attempt to commit outside a git repo; corrected to `insideRepo && !hasCommits`
33+
- `Omit<ToolOptions, 'yes' | 'default'>` used a non-existent key `'default'` — corrected to `'useDefaults'`
34+
- `--no-commit` test now asserts `git rev-parse HEAD` fails (repo has no commits), not just that `.git` exists
35+
36+
### Removed
37+
38+
- `parseFlagsFromArgv` (80 lines of dead code — only executed with zero CLI arguments, always returned `{}`)
39+
- `.husky/pre-commit.bak` stale backup file
40+
841
## [1.0.8] - 2026-01-19
942

1043
### Changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "launchts",
3-
"version": "1.0.8",
3+
"version": "1.1.0",
44
"description": "Fast, interactive CLI to scaffold TypeScript projects",
55
"bin": {
66
"launchts": "dist/cli.js"

0 commit comments

Comments
 (0)