Skip to content

Commit b3e3de8

Browse files
committed
feat(build): composite monorepo setup
1 parent 94631cb commit b3e3de8

File tree

22 files changed

+110
-14
lines changed

22 files changed

+110
-14
lines changed

packages/angular-form/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"module": "dist/fesm2022/tanstack-angular-form.mjs",
3030
"exports": {
3131
".": {
32+
"@tanstack/custom-condition": "./src/index.ts",
3233
"types": "./dist/index.d.ts",
3334
"default": "./dist/fesm2022/tanstack-angular-form.mjs"
3435
},
@@ -58,7 +59,6 @@
5859
"@testing-library/angular": "^17.4.0",
5960
"ng-packagr": "^20.3.0",
6061
"typescript": "5.8.2",
61-
"vite-tsconfig-paths": "^5.1.4",
6262
"zone.js": "0.15.1"
6363
},
6464
"peerDependencies": {

packages/angular-form/vite.config.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
import { defineConfig } from 'vitest/config'
22
import angular from '@analogjs/vite-plugin-angular'
3-
import tsconfigPaths from 'vite-tsconfig-paths'
43
import packageJson from './package.json'
54

65
const tsconfigPath = 'tsconfig.spec.json'
76

87
export default defineConfig(({ mode }) => ({
9-
plugins: [
10-
tsconfigPaths({ projects: [tsconfigPath] }),
11-
angular({ tsconfig: tsconfigPath }),
12-
],
8+
plugins: [angular({ tsconfig: tsconfigPath })],
9+
// fix from https://github.com/vitest-dev/vitest/issues/6992#issuecomment-2509408660
10+
resolve: {
11+
conditions: ['@tanstack/custom-condition'],
12+
},
13+
environments: {
14+
ssr: {
15+
resolve: {
16+
conditions: ['@tanstack/custom-condition'],
17+
},
18+
},
19+
},
1320
test: {
1421
name: packageJson.name,
1522
dir: './tests',

packages/form-core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"module": "dist/esm/index.js",
3535
"exports": {
3636
".": {
37+
"@tanstack/custom-condition": "./src/index.ts",
3738
"import": {
3839
"types": "./dist/esm/index.d.ts",
3940
"default": "./dist/esm/index.js"

packages/form-core/vite.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ const config = defineConfig({
1111
coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
1212
typecheck: { enabled: true },
1313
},
14+
// fix from https://github.com/vitest-dev/vitest/issues/6992#issuecomment-2509408660
15+
resolve: {
16+
conditions: ['@tanstack/custom-condition'],
17+
},
18+
environments: {
19+
ssr: {
20+
resolve: {
21+
conditions: ['@tanstack/custom-condition'],
22+
},
23+
},
24+
},
1425
})
1526

1627
export default mergeConfig(

packages/form-devtools/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"module": "dist/esm/index.js",
3434
"exports": {
3535
".": {
36+
"@tanstack/custom-condition": "./src/index.ts",
3637
"import": {
3738
"types": "./dist/esm/index.d.ts",
3839
"default": "./dist/esm/index.js"

packages/form-devtools/vite.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ const config = defineConfig({
1414
coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
1515
typecheck: { enabled: true },
1616
},
17+
// fix from https://github.com/vitest-dev/vitest/issues/6992#issuecomment-2509408660
18+
resolve: {
19+
conditions: ['@tanstack/custom-condition'],
20+
},
21+
environments: {
22+
ssr: {
23+
resolve: {
24+
conditions: ['@tanstack/custom-condition'],
25+
},
26+
},
27+
},
1728
})
1829

1930
export default mergeConfig(

packages/lit-form/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"module": "dist/index.js",
3535
"exports": {
3636
".": {
37+
"@tanstack/custom-condition": "./src/index.ts",
3738
"import": {
3839
"types": "./dist/index.d.ts",
3940
"default": "./dist/index.js"

packages/lit-form/tsconfig.build.tsbuildinfo

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

packages/lit-form/vite.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,15 @@ export default defineConfig({
1111
coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
1212
typecheck: { enabled: true },
1313
},
14+
// fix from https://github.com/vitest-dev/vitest/issues/6992#issuecomment-2509408660
15+
resolve: {
16+
conditions: ['@tanstack/custom-condition'],
17+
},
18+
environments: {
19+
ssr: {
20+
resolve: {
21+
conditions: ['@tanstack/custom-condition'],
22+
},
23+
},
24+
},
1425
})

packages/react-form-devtools/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"module": "dist/esm/index.js",
3434
"exports": {
3535
".": {
36+
"@tanstack/custom-condition": "./src/index.ts",
3637
"import": {
3738
"types": "./dist/esm/index.d.ts",
3839
"default": "./dist/esm/index.js"

0 commit comments

Comments
 (0)