Skip to content

Commit

Permalink
add alias for @urql/core
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Nov 22, 2022
1 parent 571f13e commit 1f7274e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/next-urql/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"include": ["src"],
"compilerOptions": {
"baseUrl": "./",
"types": ["node", "vitest/globals", "react"],
"types": ["node", "vitest/globals", "react", "vitest"],
"jsx": "react",
"paths": {
"urql": ["../../node_modules/urql/src"],
Expand Down
2 changes: 1 addition & 1 deletion packages/preact-urql/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"include": ["src"],
"compilerOptions": {
"baseUrl": "./",
"types": ["node", "vitest/globals", "react"],
"types": ["node", "vitest/globals", "react", "vitest"],
"jsx": "react",
"paths": {
"urql": ["../../node_modules/urql/src"],
Expand Down
2 changes: 1 addition & 1 deletion packages/react-urql/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"include": ["src"],
"compilerOptions": {
"baseUrl": "./",
"types": ["node", "vitest/globals", "react"],
"types": ["node", "vitest/globals", "react", "vitest"],
"jsx": "react",
"paths": {
"urql": ["../../node_modules/urql/src"],
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-urql/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"include": ["src"],
"compilerOptions": {
"baseUrl": "./",
"types": ["node", "vue", "vitest/globals"],
"types": ["node", "vue", "vitest/globals", "vitest"],
"paths": {
"urql": ["../../node_modules/urql/src"],
"*-urql": ["../../node_modules/*-urql/src"],
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"baseUrl": "./",
"types": ["node", "vitest/globals"],
"types": ["node", "vitest/globals", "vitest"],
"paths": {
"urql": ["packages/react-urql/src"],
"*-urql": ["packages/*-urql/src"],
Expand Down
3 changes: 3 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export default defineConfig({
globals: true,
setupFiles: ['./scripts/vitest/setup.js'],
clearMocks: true,
alias: {
'@urql/*': 'node_modules/@urql/$1/src',
},
exclude: [
'**/node_modules/**',
'**/dist/**',
Expand Down

0 comments on commit 1f7274e

Please sign in to comment.