-
Notifications
You must be signed in to change notification settings - Fork 360
Closed
Description
IS: If you use the cli cwd option to build a nested package xyz, the types are emitted into ./dist/.
SHOULD: Types should be emitted into the dist folder xyz/dist of the nested package.
DEMO:
- Clone https://github.com/katywings/microbundle-test/tree/65ba5c4aa436a9807969dbff9dcab30a9226cfc2
npm install && ./scripts/build-devtools.js- The types will be emitted into
dist/devtools/lib/main.d.tsinstead ofdevtools/dist/main.d.ts
REMARKS:
- If the devtools/lib/main.ts doesnt import something from an external, the ts emit path is different but still wrong:
dist/main.d.ts - Not directly related to the cwd thing, but I noticed that the
--externalcli option "freaks out" if the external has a dash character:microbundleprints:No name was provided for external module 'microbundle-test' in output.globals – guessing 'microbundleTest'. Doing the exact same bundle but naming the global "microbundletest" doesnt print this warning. (P.S. if you try this you also have to change the tsconfig.json path alias from microbundle-test to microbundletest)
developit and chiefGuidevelopit
Metadata
Metadata
Assignees
Labels
No labels