Skip to content

feat: replace tilde with homedir#9337

Merged
zkochan merged 1 commit intomainfrom
tilde-named-directory-is-created-in-the-working-directory-9217
Mar 29, 2025
Merged

feat: replace tilde with homedir#9337
zkochan merged 1 commit intomainfrom
tilde-named-directory-is-created-in-the-working-directory-9217

Conversation

@KSXGitHub
Copy link
Contributor

Resolves #9217

@KSXGitHub KSXGitHub requested a review from zkochan as a code owner March 27, 2025 06:53
@zkochan zkochan requested a review from Copilot March 29, 2025 22:33
Copy link
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 implements a feature to replace a leading tilde in path strings with the provided home directory, addressing issue #9217. Key changes include new functions for path transformation, updated tests to verify the behavior, and a configuration change to include a new key ("globalBinDir").

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
config/config/test/transformPath.test.ts Added tests for transformPath and transformPathKeys
config/config/src/transformPath.ts Introduced transformPath and transformPathKeys
config/config/src/index.ts Applied transformPathKeys in getConfig
config/config/src/Config.ts Added globalBinDir to the configuration interface
.changeset/nasty-paws-cut.md Documented changes for the release
Comments suppressed due to low confidence (1)

config/config/test/transformPath.test.ts:20

  • Consider expanding the transformPathKeys test to include all keys defined in PATH_KEYS (e.g., globalBinDir, globalDir, pnpmHomeDir) to ensure consistent path transformation across all properties.
test('transformPathKeys', () => {

@zkochan zkochan merged commit e57f1df into main Mar 29, 2025
16 checks passed
@zkochan zkochan deleted the tilde-named-directory-is-created-in-the-working-directory-9217 branch March 29, 2025 22:34
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.

a ~ directory is created in the working directory

3 participants