Skip to content

fix(cli): rename templates/config/.npmrc to _npmrc#200

Merged
fengmk2 merged 1 commit intomainfrom
09-25-fix_cli_rename_templates_config_.npmrc_to__.npmrc
Sep 25, 2025
Merged

fix(cli): rename templates/config/.npmrc to _npmrc#200
fengmk2 merged 1 commit intomainfrom
09-25-fix_cli_rename_templates_config_.npmrc_to__.npmrc

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Sep 25, 2025

ENOENT: no such file or directory, stat '~/node_modules/@voidzero-dev/global/templates/config/.npmrc'

Copy link
Copy Markdown
Member Author

fengmk2 commented Sep 25, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@fengmk2 fengmk2 self-assigned this Sep 25, 2025
@fengmk2 fengmk2 marked this pull request as ready for review September 25, 2025 03:34
Copilot AI review requested due to automatic review settings September 25, 2025 03:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a file resolution issue by renaming template configuration files from hidden dotfiles to underscore-prefixed filenames to avoid npm packaging issues. The change addresses an ENOENT error where the CLI couldn't find the .npmrc template file.

  • Renames .yarnrc.yml and .npmrc template files to use underscore prefix (_.yarnrc.yml, _.npmrc)
  • Updates code references to point to the new underscore-prefixed template files
  • Refactors conditional logic for monorepo vs single-repo package handling

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

File Description
packages/global/templates/config/_.yarnrc.yml Adds new underscore-prefixed Yarn configuration template
packages/global/templates/config/.yarnrc.yml Removes old hidden dotfile Yarn configuration template
packages/global/src/new.ts Updates file paths and refactors monorepo/single-repo logic
packages/global/snap-tests/new-monorepo/snap.txt Updates test snapshot to reflect package.json changes

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread packages/global/src/new.ts
> ENOENT: no such file or directory, stat '~/node_modules/@voidzero-dev/global/templates/config/.npmrc'
@fengmk2 fengmk2 changed the title fix(cli): rename templates/config/.npmrc to _.npmrc fix(cli): rename templates/config/.npmrc to _npmrc Sep 25, 2025
@fengmk2 fengmk2 force-pushed the 09-25-fix_cli_rename_templates_config_.npmrc_to__.npmrc branch from df5ce39 to ed44371 Compare September 25, 2025 03:37
@fengmk2 fengmk2 merged commit 7fc6f5f into main Sep 25, 2025
9 checks passed
Copy link
Copy Markdown
Member Author

fengmk2 commented Sep 25, 2025

Merge activity

@fengmk2 fengmk2 deleted the 09-25-fix_cli_rename_templates_config_.npmrc_to__.npmrc branch September 25, 2025 05:05
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