checkly-cli
checkly-cli copied to clipboard
feat: support subpaths of supported dependencies (e.g. `node:fs/promises`) [sc-22943]
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
- [x] CLI
- [ ] Create CLI
- [ ] Test
- [ ] Docs
- [ ] Examples
- [ ] Other
Notes for the Reviewer
Resolves #[issue-number]