Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Support for yarn projects #168

Open
lachrist opened this issue Dec 30, 2022 · 4 comments
Open

Support for yarn projects #168

lachrist opened this issue Dec 30, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@lachrist
Copy link
Contributor

Yarn is an important package manager. And it is the one that we use for appmap-js. We should support yarn projects.

@dividedmind
Copy link
Contributor

Also, pnpm.

@dustinbyrne
Copy link
Contributor

What about yarn or other package managers is unsupported? Do we have specific tie ins with npm or npx?

@dividedmind
Copy link
Contributor

@lachrist correct me if I'm wrong, but I believe the problem is that the agent parses the user-provided command line to figure out how to call and hook the project, and these heuristics only support npm at the moment; cf.

const executables = [
["node"],
["npm", "exec"],
["npm", "x"],
["npx"],
["npm.cmd", "exec"],
["npm.cmd", "x"],
["npx.cmd"],
[],
];

@lachrist
Copy link
Contributor Author

Indeed. I haven't thought about supporting anything other than npm so I'm not sure what else is needed to support yarn. I suspect it is not much.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants