Skip to content

fix(npm-packages): handle scoped npm packages with format @package or…#114

Merged
koralowiec merged 5 commits intodevcontainers-extra:mainfrom
TheOptimist:main
Mar 31, 2025
Merged

fix(npm-packages): handle scoped npm packages with format @package or…#114
koralowiec merged 5 commits intodevcontainers-extra:mainfrom
TheOptimist:main

Conversation

@TheOptimist
Copy link
Copy Markdown
Contributor

Following on from #104 and building on the PR #110 (that seems stalled), this change supports the following package specification:

  • package
  • package@version
  • @package
  • @package@version

@koralowiec koralowiec self-requested a review March 31, 2025 15:46
@TheOptimist
Copy link
Copy Markdown
Contributor Author

Apologies for the extra commits (dumb mistakes)...I've worked out how to enable the Actions on my own repository, and the tests are passing with these changes - https://github.com/TheOptimist/devcontainers-extra-features/pull/2

Comment thread src/npm-packages/devcontainer-feature.json
@koralowiec
Copy link
Copy Markdown
Member

FYI: The tests for a specific feature can be run locally with:

just test <feature-name>

https://github.com/devcontainers-extra/features/blob/main/CONTRIBUTING.md#using-just-commands

@koralowiec
Copy link
Copy Markdown
Member

I think that @moonrepo/cli may not be the best package to test with. Apparently, --version flag doesn't return the version 🤔

image

Copy link
Copy Markdown
Member

@koralowiec koralowiec left a comment

Choose a reason for hiding this comment

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

I added the change requests for using @angular/cli instead of @moonrepo/cli in the test scenario

Comment thread test/npm-packages/scenarios.json Outdated
Comment thread test/npm-packages/test_debian_versions.sh Outdated
TheOptimist and others added 2 commits March 31, 2025 13:31
Co-authored-by: Arek Kalandyk <36413794+koralowiec@users.noreply.github.com>
Signed-off-by: George Cover <5285122+TheOptimist@users.noreply.github.com>
Co-authored-by: Arek Kalandyk <36413794+koralowiec@users.noreply.github.com>
Signed-off-by: George Cover <5285122+TheOptimist@users.noreply.github.com>
Copy link
Copy Markdown
Member

@koralowiec koralowiec left a comment

Choose a reason for hiding this comment

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

Thank you for your time in fixing this feature! Merging!

@koralowiec koralowiec merged commit 99853e0 into devcontainers-extra:main Mar 31, 2025
5 checks passed
@koralowiec
Copy link
Copy Markdown
Member

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.

2 participants