Skip to content

Remove package-lock.json and gitignore non-yarn lock files#2140

Open
trillium wants to merge 11 commits intodevelopmentfrom
chore/remove-package-lock
Open

Remove package-lock.json and gitignore non-yarn lock files#2140
trillium wants to merge 11 commits intodevelopmentfrom
chore/remove-package-lock

Conversation

@trillium
Copy link
Copy Markdown
Member

@trillium trillium commented Apr 28, 2026

Summary

Fixes #2141

Dependencies

This PR is based on chore/backend-esm-migration (#2134) and should be merged after #2134 lands on development.

Test plan

  • Verify backend/package-lock.json is no longer tracked
  • Verify .gitignore includes package-lock.json and pnpm-lock.yaml
  • Confirm yarn.lock is still tracked and unaffected

trillium and others added 11 commits July 12, 2023 15:33
…tle caching, and commit tracking

- Python skill (verify_stale_issue.py) with issue type detection
- Bash implementations for single and batch issue verification
- Label-based scope detection (dev vs non-dev roles)
- Title consistency caching system
- Git commit history analysis for PR tracking
- Decision tree logic for issue verdict categorization
Convert all require() calls for third-party npm packages (express, mongoose, jsonwebtoken, etc.) to ESM import syntax as the first step of the CJS-to-ESM migration.
…ensions

Convert all require() calls for relative paths (./x, ../x) to ESM import syntax, adding explicit .js file extensions as required by the ESM module resolution algorithm.
Replace all module.exports assignments with ESM export syntax. Barrel files (models/index.js, controllers/index.js, middleware/index.js, validators/index.js) use named exports; individual modules use export default.
…check

Convert the CJS entry-point guard pattern to its ESM equivalent using fileURLToPath(import.meta.url), which is needed because ESM has no require.main.
…configs to .cjs

Flip the ESM switch by adding "type": "module" to backend/package.json. Rename jest.config.js and jest-mongodb-config.js to .cjs since Jest config files must remain CommonJS until the Vitest migration.
Replace Jest with Vitest: add vitest.config.js with node environment and 30s timeout, update package.json scripts (test -> vitest run, test:watch -> vitest), convert jest.setup.js to use vi.mock, and remove jest/jest-mongodb config files and dependencies.
… test files

Replace all Jest test APIs with their Vitest equivalents (jest.mock -> vi.mock, jest.fn -> vi.fn) and add explicit vitest imports (describe, it, expect, vi, etc.) to every test file.
…-test.js

Vitest does not support the done() callback pattern; remove done parameter and done() calls from all test functions, using async/await instead. Add vitest lifecycle imports (beforeAll, afterEach, afterAll) to setup-test.js.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove package-lock.json and add non-yarn lock files to .gitignore

1 participant