Skip to content

Commit 0c229f4

Browse files
tylersayshiTkDodo
andauthored
Revert "chore(paths): use customConditions to define internal imports… (#8973)
* Revert "chore(paths): use customConditions to define internal imports (#8935)" This reverts commit 8e0c6b7. * fix export * refactor: make test:lib depend on compile again --------- Co-authored-by: Dominik Dorfmeister <[email protected]>
1 parent 7d3a1a3 commit 0c229f4

File tree

68 files changed

+248
-85
lines changed

Some content is hidden

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

68 files changed

+248
-85
lines changed

nx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
},
4646
"test:lib": {
4747
"cache": true,
48-
"dependsOn": ["^build"],
48+
"dependsOn": ["^compile"],
4949
"inputs": ["default", "^production"],
5050
"outputs": ["{projectRoot}/coverage"]
5151
},

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"premove": "^4.0.0",
5959
"prettier": "^3.4.2",
6060
"prettier-plugin-svelte": "^3.3.2",
61-
"publint": "^0.3.10",
61+
"publint": "^0.2.12",
6262
"react": "^19.0.0",
6363
"react-dom": "^19.0.0",
6464
"sherif": "^1.0.0",
@@ -73,6 +73,7 @@
7373
"typescript56": "npm:[email protected]",
7474
"typescript57": "npm:[email protected]",
7575
"vite": "^6.2.4",
76+
"vite-tsconfig-paths": "^5.1.4",
7677
"vitest": "^3.1.1"
7778
},
7879
"pnpm": {

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"module": "build/index.mjs",
3737
"exports": {
3838
".": {
39-
"@tanstack/custom-condition": "./src/index.ts",
4039
"types": "./build/index.d.ts",
4140
"default": "./build/index.mjs"
4241
},
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../scripts/getViteAliases.js

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

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

4+
import { dynamicAliases } from './root.vite.config'
35
import packageJson from './package.json'
46

57
export default defineConfig({
8+
plugins: [tsconfigPaths({ ignoreConfigErrors: true })],
69
resolve: {
7-
conditions: ['@tanstack/custom-condition'],
10+
alias: dynamicAliases,
811
},
912
test: {
1013
name: packageJson.name,

packages/angular-query-experimental/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"module": "build/index.mjs",
5252
"exports": {
5353
".": {
54-
"@tanstack/custom-condition": "./src/index.ts",
5554
"types": "./build/index.d.ts",
5655
"default": "./build/index.mjs"
5756
},
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../scripts/getViteAliases.js

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

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

4+
import { dynamicAliases } from './root.vite.config'
35
import packageJson from './package.json'
46

57
export default defineConfig({
8+
plugins: [tsconfigPaths({ ignoreConfigErrors: true })],
69
resolve: {
7-
conditions: ['@tanstack/custom-condition'],
10+
alias: dynamicAliases,
811
},
912
test: {
1013
name: packageJson.name,

packages/eslint-plugin-query/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"exports": {
4242
".": {
4343
"import": {
44-
"@tanstack/custom-condition": "./src/index.ts",
4544
"types": "./build/modern/index.d.ts",
4645
"default": "./build/modern/index.js"
4746
},
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../scripts/getViteAliases.js

0 commit comments

Comments
 (0)