mirror of
https://github.com/elk-zone/elk
synced 2024-12-01 00:08:11 +09:00
17 lines
317 B
TypeScript
17 lines
317 B
TypeScript
import { defineNuxtModule } from '@nuxt/kit'
|
|
import { check } from 'stale-dep'
|
|
|
|
export default defineNuxtModule({
|
|
meta: {
|
|
name: 'stale-dep',
|
|
configKey: 'staleDep',
|
|
},
|
|
defaults: {
|
|
enabled: process.env.NODE_ENV !== 'test',
|
|
},
|
|
setup(opts) {
|
|
if (opts.enabled)
|
|
return check('pnpm')
|
|
},
|
|
})
|