elk/modules/stale-dep.ts

17 lines
317 B
TypeScript
Raw Normal View History

2023-01-13 21:57:31 +03:00
import { defineNuxtModule } from '@nuxt/kit'
import { check } from 'stale-dep'
export default defineNuxtModule({
meta: {
name: 'stale-dep',
configKey: 'staleDep',
2023-01-13 21:57:31 +03:00
},
defaults: {
2023-02-09 15:01:22 +03:00
enabled: process.env.NODE_ENV !== 'test',
},
setup(opts) {
if (opts.enabled)
return check('pnpm')
2023-01-13 21:57:31 +03:00
},
})