-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
Describe the Bug
I have "prettier-plugin-astro" installed only globally (via "npm install -g prettier-plugin-astro") instead of within the local package.
same as #258 (closed but never solved :/)
I want the plugin to be found and used in linux if globally installed.
As it is needed for the CI plugin https://codeberg.org/woodpecker-plugins/prettier/issues/39#issuecomment-9719612
Steps to Reproduce
- clone https://codeberg.org/koibtw/ebil.club
docker run --rm -it -v $(pwd):/work --workdir /work -e PLUGIN_CHECK=true -e PLUGIN_PLUGINS=prettier-plugin-sh,prettier-plugin-astro --entrypoint /bin/sh codeberg.org/woodpecker-plugins/prettier- exec
/entrypoint.shto get the intended usage of the plugin (this willpnpm install --global prettier-plugin-astroand run prettier in check mode [error] Cannot find package 'prettier-plugin-astro' imported from /work/noop.js
as the plugin e.g. environment should not alter the work dir we can not locally install the plugin witch would work:

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels