fix(frontend): run backend data on prepare hook so its available at the lint step on CI

This commit is contained in:
MiniDigger | Martin 2022-12-24 11:24:17 +01:00
parent b284ee5fea
commit 9e09883ce8

View File

@ -18,7 +18,7 @@ export default defineNuxtModule({
ttl: 30 * 60 * 1000, // 30 min
},
setup(moduleOptions, nuxt) {
nuxt.hook("build:before", async () => {
nuxt.hook("prepare:types", async () => {
let state = {} as BackendData;
try {
const data = await fs.readFile(moduleOptions.path, "utf8");