Files
quixotic/.serena/memories/npm_to_yarn_migration_complete.md
Andrey Kondratev 3c615acaeb more fixes
2025-08-28 17:42:49 +05:00

1.8 KiB

NPM to Yarn Migration Complete

All npm commands have been successfully replaced with yarn equivalents across the project.

Files Updated:

1. package.json

  • "validate": "npm run lint && npm run build""validate": "yarn lint && yarn build"
  • "pretest": "npm run validate""pretest": "yarn validate"
  • Package manager already set to "packageManager": "yarn@1.22.19"

2. Dockerfile

  • RUN npm install && npm cache clean --forceRUN yarn install --frozen-lockfile && yarn cache clean
  • RUN npm run buildRUN yarn build
  • RUN npm prune --productionRUN yarn install --production --frozen-lockfile

3. .github/workflows/ci.yml

  • Node.js cache changed from 'npm' to 'yarn'
  • npm installyarn install --frozen-lockfile
  • npm run lintyarn lint
  • npm run buildyarn build
  • npm run validateyarn validate

4. .claude/settings.local.json

  • All npm-related Bash permissions updated:
    • "Bash(npm run typecheck:*)""Bash(yarn typecheck:*)"
    • "Bash(npm run type-check:*)""Bash(yarn type-check:*)"
    • "Bash(npm run lint)""Bash(yarn lint)"
    • "Bash(npm run build:*)""Bash(yarn build:*)"
    • "Bash(npm run dev:*)""Bash(yarn dev:*)"
    • "Bash(npm run:*)""Bash(yarn run:*)"
    • "Bash(npm start)""Bash(yarn start)"

5. Memory Files Updated

  • .serena/memories/docker-traefik-ssl-complete-setup.md: Updated management commands and build process references
  • .serena/memories/typescript_migration_complete.md: Updated build process documentation

Benefits of Yarn Migration:

  • Deterministic dependency resolution with yarn.lock
  • Faster installs with better caching
  • More reliable CI/CD builds with --frozen-lockfile
  • Better workspace support (if needed in future)
  • Consistent package management across development and production