You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(monocdk): support barrel imports (#6996)
This change enables an alternative syntax for importing submodules from monocdk:
import * as s3 from 'monocdk-experiment/aws-s3';
In addition to the currently supported syntax:
import { aws_s3 as s3 } from 'monocdk-experiment';
The new syntax will make it easy to migrate from existing CDK codebase and also makes it easier to namespace submodule imports by consumers.
To that end, we hoisted the submodules from `src` to be direct subdirectories of the package (otherwise, the barrel import would have been `monocdk-experiment/src/aws-s3`).
Credits: @CaerusKaru
0 commit comments