frontend-maven-plugin icon indicating copy to clipboard operation
frontend-maven-plugin copied to clipboard

Bug: pnpm not found if running a goal which has a reference to other goals

Open Haarolean opened this issue 1 year ago • 0 comments

Hi,

If a goal within package.json contains a reference to another (p)npm goal (like "test2": "pnpm build && pnpm test") the build fails with sh: 1: pnpm: not found:

[INFO] [INFO] > [email protected] test2
[INFO] [INFO] > pnpm build && pnpm test
[INFO] [INFO] 
[INFO] [INFO] /tmp/test2-12410452.sh: 1: pnpm: not found

Here's a test repo demonstrating the issue: https://github.com/Haarolean/frontend-maven-plugin And here's a workflow run: https://github.com/Haarolean/frontend-maven-plugin/actions/runs/8206166129

Haarolean avatar Mar 08 '24 16:03 Haarolean