@pinia/root / @pinia/nuxt / ModuleOptions
ModuleOptions
Properties
storesDirs?
ts
optional storesDirs: string[];
Automatically add stores dirs to the auto imports. This is the same as directly adding the dirs to the imports.dirs
option. If you want to also import nested stores, you can use the glob pattern ./stores/**
Default
['stores']