Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support subpaths of supported dependencies (e.g. node:fs/promises) [sc-22943] #1010

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sorccu
Copy link
Collaborator

@sorccu sorccu commented Jan 19, 2025

This PR makes it possible (or rather, allowed) to import subpaths from a supported dependency, such as node:fs/promises even though we only list node:fs as a supported module. It also supports cases where a dependency uses exports in package.json to expose subpaths of the module, and legacy usage where you don't specify any exports but access subpaths anyway. One very basic example being checkly/constructs. Note that these subpaths are not currently allowed by the runner due to its very basic allow-list implementation.

I hereby confirm that I followed the code guidelines found at engineering guidelines

Affected Components

  • CLI
  • Create CLI
  • Test
  • Docs
  • Examples
  • Other

Notes for the Reviewer

Resolves #[issue-number]

New Dependency Submission

@sorccu sorccu force-pushed the simokinnunen/sc-22633/support-node-prefix-for-built-in-node-dependencies branch from f2b5c4d to 9bbfcad Compare January 20, 2025 06:19
Base automatically changed from simokinnunen/sc-22633/support-node-prefix-for-built-in-node-dependencies to main January 20, 2025 06:32
@sorccu sorccu force-pushed the simokinnunen/sc-22943/support-subpaths-of-supported-dependencies branch from 1a6865e to a3106e0 Compare January 20, 2025 06:38
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