Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"license": "MIT",
"author": "Microsoft and contributors",
"scripts": {
"preinstall": "node ../scripts/only-pnpm.cjs"
"preinstall": "node ../../../../../scripts/only-pnpm.cjs"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This package is private, so I don't think it gets installed, but maybe I'm missing something about how its used.

}
}

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/only-pnpm.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const message = `
╚══════════════════════════════════════════════════════════════════╝
`;

const used_pnpm = process.env.npm_config_user_agent.startsWith(`pnpm`);
const used_pnpm = (process.env.npm_execpath ?? "").includes(`pnpm`);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyone know why we have duplicate copies of this script? I think having them all point at the same one would be fine (other than CI being broken for some of server at the moment which would block this PR if I did that here).


if (!used_pnpm) {
console.error(message);
Expand Down
Loading