Skip to content

Commit c1b4ffc

Browse files
committed
fix: can't find lexicon types when running pnpm install
I think nuxt prepare will try to compile standard-site-sync and since the lexicon types don't exist yet it will fail. We should generate the types first, and then run prepare.
1 parent 012472e commit c1b4ffc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"generate": "nuxt generate",
2222
"npmx-connector": "pnpm --filter npmx-connector dev",
2323
"preview": "nuxt preview",
24-
"postinstall": "nuxt prepare && simple-git-hooks && pnpm generate:lexicons",
24+
"postinstall": "pnpm generate:lexicons && nuxt prepare && simple-git-hooks",
2525
"generate:lexicons": "lex build --lexicons lexicons --out shared/types/lexicons --clear",
2626
"test": "vite test",
2727
"test:browser": "playwright test",

0 commit comments

Comments
 (0)