Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fiks linkerscriptet for pnpm #3315

Merged
merged 1 commit into from
Dec 14, 2022
Merged

chore: fiks linkerscriptet for pnpm #3315

merged 1 commit into from
Dec 14, 2022

Conversation

wkillerud
Copy link
Contributor

ISSUES CLOSED: #3309

🎯 Sjekkliste

@wkillerud wkillerud added the 👷‍♂️ CI & infra Automatisering, bygging, publisering og infrastruktur label Dec 8, 2022
@wkillerud wkillerud self-assigned this Dec 8, 2022
description: "Hva er filstien til prosjektet hvor du vil teste?",
message: "Kan være absolutt (starte med /) eller relativ (starte med ../).",
required: true,
let projectPath = process.argv[2];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Åpner for pnpm linker ../path/to/project uten et prompt.

@fremtind-bot
Copy link
Collaborator

fremtind-bot commented Dec 8, 2022

Forhåndsvisning: https://jokul.fremtind.no/preview/fix/pnpm-linker/
🔍 Commit: c3c9d6c

Forhåndsvisningen blir tilgjengelig innen et par minutter. Den fjernes automatisk når pull requesten lukkes.

@@ -81,7 +94,11 @@
continue;
}

execSync(`${tool} link`, { cwd: path.join(__dirname, "..", "packages", entry.name), windowsHide: true });
if (isPnpm) {
execSync(`pnpm link ${packagePath}`, { cwd: resolvedPath, windowsHide: true });

Check warning

Code scanning / CodeQL

Shell command built from environment values

This shell command depends on an uncontrolled [absolute path](1).
fremtind-bot added a commit that referenced this pull request Dec 8, 2022
@wkillerud wkillerud merged commit 97fa916 into main Dec 14, 2022
@wkillerud wkillerud deleted the fix/pnpm-linker branch December 14, 2022 08:10
github-actions bot pushed a commit that referenced this pull request Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👷‍♂️ CI & infra Automatisering, bygging, publisering og infrastruktur
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feil: Linker-scriptet fungerer ikke for pnpm
3 participants