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

feat: add scope support loading plugins #3227

Merged
merged 9 commits into from Jun 14, 2022
Merged

feat: add scope support loading plugins #3227

merged 9 commits into from Jun 14, 2022

Conversation

juanpicado
Copy link
Member

@juanpicado juanpicado commented Jun 13, 2022

Follow up of #1867
#3047

Close: #3047 #1867

Middleware

middlewares:
  audit:
    enabled: true
  '@xlts.dev/verdaccio-prometheus-middleware':
      metricsPath: /custom/path/metrics    

Auth

auth:
  '@scope/test':
    foo: 1
  htpasswd:
    file: ./htpasswd

etc etc ...

The error message would be like

 warn --- config file  - /home/xxx/.config/verdaccio/config.yaml
 error--- plugin not found. try npm install @scope/test
 fatal--- uncaught exception, please report this
Error: 
      @scope/test plugin not found. try "npm install @scope/test"

@juanpicado juanpicado marked this pull request as ready for review June 13, 2022 21:05
@juanpicado juanpicado added this to the 5.x milestone Jun 13, 2022
@juanpicado juanpicado linked an issue Jun 13, 2022 that may be closed by this pull request
src/lib/plugin-loader.ts Outdated Show resolved Hide resolved
src/lib/plugin-loader.ts Outdated Show resolved Hide resolved
juanpicado and others added 5 commits June 14, 2022 06:30
Co-authored-by: Michael Prentice <splaktar@gmail.com>
Co-authored-by: Michael Prentice <splaktar@gmail.com>
package.json Outdated Show resolved Hide resolved
@juanpicado juanpicado merged commit 5c50ec9 into 5.x Jun 14, 2022
@delete-merged-branch delete-merged-branch bot deleted the jota/scoped-plugins branch June 14, 2022 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: allow scopes in loading plugins
2 participants