knightedcodemonkey / duel

TypeScript dual packages.
MIT License
20 stars 4 forks source link

Support `--exports` option to generate package.json `exports`. #43

Open knightedcodemonkey opened 3 months ago

knightedcodemonkey commented 3 months ago

Add an --exports option that will generate package.json exports based on the build output. It should not support any additional configuration but instead assume basic defaults (if it requires a configuration file, then I see little point in automating this).

The option should accept these values:

The option should use these defaults: