"lint:fix": "pnpm run lint --write",
"test": "pnpm run test:types && pnpm run test:jest && pnpm run -r test && pnpm run build && pnpm run build:dts && pnpm test:dts",
"test:jest": "jest --coverage",
- "test:types": "tsc --build ./tsconfig.json",
+ "test:types": "tsc --build ./tsconfig.json && pnpm run -C packages/nuxt test:types",
"test:dts": "pnpm run -r test:dts",
"docs:api": "pnpm run -r docs:api --filter ./packages/docs"
},
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
+ "test:types": "nuxi typecheck",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --commit-path . -l @pinia/nuxt -r 1"
},
"dependencies": {
--- /dev/null
+declare namespace NodeJS {
+ export interface Process {
+ server: boolean
+ }
+}
{
- "extends": "./playground/.nuxt/tsconfig.json"
+ "extends": "./playground/.nuxt/tsconfig.json",
+ "include": [
+ "./shims.d.ts",
+ ]
}
"packages/*/src/**/*.ts",
"packages/*/__tests__/**/*.ts"
],
- "exclude": ["packages/test-vue-2", "packages/pinia/__tests__/test-utils.ts", "packages/pinia/test-dts"],
+ "exclude": ["packages/test-vue-2", "packages/pinia/__tests__/test-utils.ts", "packages/pinia/test-dts", "packages/nuxt"],
"compilerOptions": {
"baseUrl": ".",
"rootDir": ".",