Skip to content

Chore: package manager migration from yarn to npm#785

Draft
yesoreyeram wants to merge 1 commit into
mainfrom
chore/yarn-to-npm-migration
Draft

Chore: package manager migration from yarn to npm#785
yesoreyeram wants to merge 1 commit into
mainfrom
chore/yarn-to-npm-migration

Conversation

@yesoreyeram

Copy link
Copy Markdown
Collaborator

What

Migrates this repo's package manager from Yarn Berry (yarn@4.17.1) to npm (npm@11.18.0), part of a fleet-wide yarn → npm migration across grafana-org datasource plugin repos.

Changes

  • Removed yarn.lock, .yarnrc.yml, .yarn/releases/
  • package.json: packageManagernpm@11.18.0, script fix for a yarn-specific invocation (lint:fix)
  • Converted resolutionsoverrides (5 packages, simple flat rename, no version changes)
  • Added .npmrc (fleet-standard template)
  • Regenerated package-lock.json via npm install (no dependency versions changed, no legacy-peer-deps needed)
  • Removed now-dead yarn references in .gitignore, cspell.config.json, eslint.config.mjs, docs/developer-guide.md, scripts/test.sh

Note on pre-existing issues found (not fixed, out of scope)

docs/developer-guide.md and scripts/test.sh already referenced non-existent yarn watch / yarn e2e:update scripts before this PR (no such scripts exist in package.json — likely stale docs/scripts predating a tooling change). Preserved as equally-broken npm equivalents rather than silently fixing unrelated issues in this migration PR.

Verification (local)

  • npm install — clean, no ERESOLVE errors
  • npm run build — passes
  • npm run typecheck — passes
  • npm run lint — passes
  • npm run test:ci — passes (7/7 suites, 21/21 tests)

Scope note

Part of a batched, wave-based migration. CI workflow files intentionally untouched.

- Remove yarn.lock, .yarnrc.yml, .yarn/releases
- package.json: packageManager -> npm@11.18.0, script fix for
  yarn-specific invocation (lint:fix)
- Convert resolutions -> overrides (5 packages, simple flat rename,
  no version changes)
- Add .npmrc (fleet-standard template)
- Regenerate package-lock.json via npm install (clean, no ERESOLVE,
  no legacy-peer-deps needed)
- Remove now-dead yarn references in .gitignore, cspell.config.json,
  eslint.config.mjs, docs/developer-guide.md, scripts/test.sh

Note: docs/developer-guide.md and scripts/test.sh already referenced
non-existent 'yarn watch' / 'yarn e2e:update' scripts pre-migration
(no such scripts in package.json - likely stale docs/scripts from
before a tooling change). Preserved as equally-broken npm
equivalents rather than silently fixing unrelated, pre-existing
issues out of scope for this PR.
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.

1 participant