mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-01-24 14:24:47 +08:00
fix(frontend): run backend data on prepare hook so its available at the lint step on CI
This commit is contained in:
parent
b284ee5fea
commit
9e09883ce8
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user