Skip to content

Update dependencies#16

Merged
madkoo merged 4 commits into
mainfrom
update-dependencies
Apr 29, 2026
Merged

Update dependencies#16
madkoo merged 4 commits into
mainfrom
update-dependencies

Conversation

@madkoo

@madkoo madkoo commented Apr 16, 2026

Copy link
Copy Markdown
Owner

No description provided.

madkoo and others added 4 commits April 16, 2026 10:48
npm audit fix: vite 8.0.1→8.0.8, picomatch 4.0.3→4.0.4 (vitest tree).
Resolves 6 of 7 dependabot alerts (3 high, 2 medium, 1 auto-dismissed).
Remaining: picomatch 2.3.1 via fast-glob→micromatch (awaiting upstream fix).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Install @biomejs/biome as devDependency with biome.json config
  (2-space indent, single quotes, recommended rules, import sorting)
- Add lint, lint:fix, and format npm scripts targeting src/ and tests/
- Auto-fix all existing violations: node: protocol imports, import type,
  import sorting, forEach callback returns in tests
- Add Lint step to CI workflow before Build
- Update copilot-instructions.md with new lint commands

All 50 tests pass, build clean, zero lint violations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The function was flagged by Biome as unused (underscore prefix convention).
Removed the function and its os import; kept tmpDirs cleanup used by other tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 16, 2026 09:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates project dependencies and tooling configuration, mainly to modernize Node/TypeScript usage and enforce consistent formatting/linting in CI for the dfiles CLI codebase.

Changes:

  • Bump dev dependencies (notably TypeScript) and add Biome with new lint/format npm scripts.
  • Migrate Node built-in imports to the node: specifier and apply formatting adjustments across src/tests.
  • Add Biome config, wire lint step into GitHub Actions CI, and introduce Copilot repo instructions.

Reviewed changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/sync.test.ts Switch to node: imports + reformat test calls.
tests/status.test.ts Switch to node: imports + reformat helper/types usage.
tests/cache.test.ts Switch to node: imports + formatting changes in assertions/hooks.
src/sync.ts Use node: imports and import type, minor signature/error formatting tweaks.
src/index.ts Import order/formatting adjustments for CLI wiring.
src/config.ts Use node: imports and import type, minor error formatting tweaks.
src/commands/status.ts Use node: imports and simplify row formatting.
src/commands/pull.ts Use import type and reformat output/width calculations.
src/commands/list.ts Simplify row formatting implementation.
src/commands/init.ts Use node: imports and import type.
src/commands/add.ts Use node: imports and import type, formatting tweaks.
src/cache.ts Use node: imports, minor error formatting tweaks.
package.json Version bump, add Biome scripts, update dev deps.
package-lock.json Lockfile updated for new dev deps (notably Biome/TypeScript).
biome.json New Biome configuration.
.github/workflows/ci.yml Add npm run lint step to CI.
.github/copilot-instructions.md New repo-specific Copilot guidance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
{
"name": "@madkoo/dfiles",
"version": "1.1.1",
"version": "1.1.2",
Comment thread package.json
Comment on lines +27 to 31
"@biomejs/biome": "^2.4.12",
"@types/node": "^25.5.0",
"ts-node": "^10.9.0",
"typescript": "^5.4.0",
"typescript": "^6.0.2",
"vitest": "^4.0.0"

## Must follow workflow

1. Always when implementing a feature or bug fix always create new tests and update exisiting ones as needed. Tests should cover both typical and edge cases.
@madkoo madkoo merged commit 4b61dcf into main Apr 29, 2026
10 checks passed
@madkoo madkoo deleted the update-dependencies branch April 29, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants