This commit brings the project to support node 22 which became LTS and fixes broken builds with typescript 5.7+ until vue-tsc is updated and replaces npm with pnpm. - Update tsconfig for node 22 - Pin typescript to 5.6.x to not break vue-tsc - Replace npm with pnpm (corepack recommended) - Update Makefile and main workflow for pnpm - Migrate to eslint 9 flat config - Fix broken imports - Exclude non-TS vue files for vue-tsc
13 lines
303 B
TypeScript
13 lines
303 B
TypeScript
import { createPinia as _createPinia } from "pinia";
|
|
import { markRaw } from "vue";
|
|
import type { Router } from "vue-router";
|
|
|
|
export default function createPinia(router: Router) {
|
|
const pinia = _createPinia();
|
|
pinia.use(({ store }) => {
|
|
store.router = markRaw(router);
|
|
});
|
|
|
|
return pinia;
|
|
}
|