I think we should consider making the outDir in new TS projects be ".", for two reasons:
Imports to standalone elements are simpler: just import 'my-package/my-element.js' instead of import 'my-package/lib/my-element.js'
When new code is added to the src/ folder, it be be built to outside of lib/. For instance, Storybook 7 adds a src/stories/ folder, which right now is output to /lib/stories, but would probably be better as just stories/ so that it's not published to npm by default, has a shorter URL, etc.
Should this be an RFC?
Which package is this a feature request for?
Other/unknown (please mention in description)
Description
I think we should consider making the outDir in new TS projects be
"."
, for two reasons:import 'my-package/my-element.js'
instead ofimport 'my-package/lib/my-element.js'
src/
folder, it be be built to outside oflib/
. For instance, Storybook 7 adds asrc/stories/
folder, which right now is output to/lib/stories
, but would probably be better as juststories/
so that it's not published to npm by default, has a shorter URL, etc.Alternatives and Workarounds
Manually changing the outDir