-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
In my project, i use @microsoft/api-extractor to rollup all d.ts into a single d.ts per package(like what vue 3.0 does).
However, when i migrate yarn to pnpm, and build my project once again, the error(snapshot above) occurs.
It it obvious that api-extractor (code here) tries to read meta info from esm/package.json (or cjs/package.json), while no name
field found.
It is neccessary not only provide type
field but merge with the root package.json in postcompile.sh?
To Reproduce
- clone vue next repo
- access an arbitrary package under
/packages/
, add socket.io-client to dependencies, thenexports * from 'socket.io-client'
in index.ts - build the package, error will log in terminal.
im not sure it is actually a bug of socket.io-client, or the build tools / package manager tools i used, or even it is not a bug and has walkaround?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working