Skip to content

fix: correct relative import paths for npm-installed opencode plugin#359

Open
nanaubusiness wants to merge 1 commit into
DietrichGebert:mainfrom
nanaubusiness:fix/opencode-plugin-npm-path
Open

fix: correct relative import paths for npm-installed opencode plugin#359
nanaubusiness wants to merge 1 commit into
DietrichGebert:mainfrom
nanaubusiness:fix/opencode-plugin-npm-path

Conversation

@nanaubusiness

Copy link
Copy Markdown

In .opencode/plugins/ponytail.mjs, the require paths used ../../hooks/ which resolves outside the package root when installed via npm. Changed to ../hooks/ which works in both checkout and npm-install contexts.

From .opencode/plugins/ponytail.mjs, ../../hooks/ exits the package
root when installed via npm. ../hooks/ resolves correctly in both
checkout and npm-install contexts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant