Skip to content

Commit 9f93f12

Browse files
authored
chore: move from paths to customCondition (#9042)
1 parent 12cced3 commit 9f93f12

File tree

70 files changed

+239
-189
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+239
-189
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
"typescript56": "npm:[email protected]",
7373
"typescript57": "npm:[email protected]",
7474
"vite": "^6.2.4",
75-
"vite-tsconfig-paths": "^5.1.4",
7675
"vitest": "^3.1.1"
7776
},
7877
"pnpm": {

packages/angular-query-devtools-experimental/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"module": "build/index.mjs",
3737
"exports": {
3838
".": {
39+
"@tanstack/custom-condition": "./src/index.ts",
3940
"types": "./build/index.d.ts",
4041
"default": "./build/index.mjs"
4142
},

packages/angular-query-devtools-experimental/root.vite.config.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/angular-query-devtools-experimental/vite.config.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
import { defineConfig } from 'vitest/config'
2-
import tsconfigPaths from 'vite-tsconfig-paths'
32

4-
import { dynamicAliases } from './root.vite.config'
53
import packageJson from './package.json'
64

75
export default defineConfig({
8-
plugins: [tsconfigPaths({ ignoreConfigErrors: true })],
6+
// fix from https://github.com/vitest-dev/vitest/issues/6992#issuecomment-2509408660
97
resolve: {
10-
alias: dynamicAliases,
8+
conditions: ['@tanstack/custom-condition'],
9+
},
10+
environments: {
11+
ssr: {
12+
resolve: {
13+
conditions: ['@tanstack/custom-condition'],
14+
},
15+
},
1116
},
1217
test: {
1318
name: packageJson.name,

packages/angular-query-experimental/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"module": "build/index.mjs",
5252
"exports": {
5353
".": {
54+
"@tanstack/custom-condition": "./src/index.ts",
5455
"types": "./build/index.d.ts",
5556
"default": "./build/index.mjs"
5657
},

packages/angular-query-experimental/root.vite.config.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/angular-query-experimental/vite.config.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
import { defineConfig } from 'vitest/config'
2-
import tsconfigPaths from 'vite-tsconfig-paths'
32

4-
import { dynamicAliases } from './root.vite.config'
53
import packageJson from './package.json'
64

75
export default defineConfig({
8-
plugins: [tsconfigPaths({ ignoreConfigErrors: true })],
6+
// fix from https://github.com/vitest-dev/vitest/issues/6992#issuecomment-2509408660
97
resolve: {
10-
alias: dynamicAliases,
8+
conditions: ['@tanstack/custom-condition'],
9+
},
10+
environments: {
11+
ssr: {
12+
resolve: {
13+
conditions: ['@tanstack/custom-condition'],
14+
},
15+
},
1116
},
1217
test: {
1318
name: packageJson.name,

packages/angular-query-persist-client/root.vite.config.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/angular-query-persist-client/vite.config.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
import { defineConfig } from 'vitest/config'
2-
import tsconfigPaths from 'vite-tsconfig-paths'
32

4-
import { dynamicAliases } from './root.vite.config'
53
import packageJson from './package.json'
64

75
export default defineConfig({
8-
plugins: [tsconfigPaths({ ignoreConfigErrors: true })],
6+
// fix from https://github.com/vitest-dev/vitest/issues/6992#issuecomment-2509408660
97
resolve: {
10-
alias: dynamicAliases,
8+
conditions: ['@tanstack/custom-condition'],
9+
},
10+
environments: {
11+
ssr: {
12+
resolve: {
13+
conditions: ['@tanstack/custom-condition'],
14+
},
15+
},
1116
},
1217
test: {
1318
name: packageJson.name,

packages/eslint-plugin-query/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"react-native": "src/index.ts",
4141
"exports": {
4242
".": {
43+
"@tanstack/custom-condition": "./src/index.ts",
4344
"import": {
4445
"types": "./build/modern/index.d.ts",
4546
"default": "./build/modern/index.js"

0 commit comments

Comments
 (0)