mirror of
https://github.com/elk-zone/elk.git
synced 2024-12-04 15:55:56 +03:00
16 lines
317 B
TypeScript
16 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')
|
|
},
|
|
})
|