Skip to content

Conversation

gnapse
Copy link
Contributor

@gnapse gnapse commented Oct 7, 2025

Summary

  • Fixes .nvmrc to only contain the Node.js version (v22)
  • Moves npm registry configuration to .npmrc where it belongs
  • Adds .claude/ to .gitignore

Problem

The current .nvmrc file contains npm registry configuration, which causes errors with version managers like mise:

mise ERROR error parsing config file: ~/code/doist/todoist-api-typescript/.nvmrc
mise ERROR invalid tool version request: @doist:registry=https://npm.pkg.github.com/

This happens because .nvmrc should only contain a Node.js version string, not npm configuration.

Background

The .nvmrc file has historically contained npm registry configuration, which is incorrect. This was originally added in #158 and has required workarounds.

The publish workflow has been working around this issue by stripping out registry lines with sed -i "/@doist/d" ./.nvmrc (see publish.yml:17).

Changes

  • .nvmrc: Removed @doist:registry=https://npm.pkg.github.com/ line
  • .npmrc: Created new file with the registry configuration (proper location)
  • .gitignore: Added .claude/ to ignore Claude Code settings

Related

🤖 Generated with Claude Code

@gnapse gnapse force-pushed the fix-nvmrc-npmrc-config branch 2 times, most recently from c4cc716 to 96b4997 Compare October 7, 2025 13:57
@gnapse gnapse force-pushed the fix-nvmrc-npmrc-config branch from 96b4997 to c44c63e Compare October 7, 2025 13:58
@gnapse gnapse merged commit 53d5f16 into main Oct 7, 2025
1 check passed
@gnapse gnapse deleted the fix-nvmrc-npmrc-config branch October 7, 2025 14:02
@pawelgrimm
Copy link
Contributor

Whoops 😅 Thanks for the fix, @gnapse!

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.

3 participants