feat: allow using elk as a nuxt layer (#1665)

This commit is contained in:
Daniel Roe 2023-02-08 01:51:16 -08:00 committed by GitHub
parent a3310b6ea2
commit c25715b26d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 403 additions and 1111 deletions

View file

@ -4,8 +4,13 @@ import { check } from 'stale-dep'
export default defineNuxtModule({
meta: {
name: 'stale-dep',
configKey: 'staleDep',
},
setup() {
return check('pnpm')
defaults: {
enabled: true,
},
setup(opts) {
if (opts.enabled)
return check('pnpm')
},
})