Skip to content

Commit 994c85c

Browse files
committed
chore: change from tsup to manual rollup
1 parent 6a9147a commit 994c85c

30 files changed

+946
-249
lines changed

getTsupConfig.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

package.json

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"test:lib:dev": "pnpm --filter \"./packages/**\" run test:lib:dev",
1616
"test:build": "nx affected --target=test:build",
1717
"test:types": "nx affected --target=test:types",
18-
"build": "nx run-many --exclude=examples/** --target=build",
18+
"buildNx": "nx run-many --target=build --projects=@tanstack/*",
19+
"build": "rollup --config rollup.config.js",
1920
"watch": "pnpm run build && nx watch --all -- pnpm run build",
2021
"dev": "pnpm run watch",
2122
"prettier": "prettier \"{packages,examples,scripts}/**/*.{md,js,jsx,cjs,ts,tsx,json,vue}\"",
@@ -35,10 +36,6 @@
3536
"@babel/preset-react": "^7.18.6",
3637
"@babel/preset-typescript": "^7.21.5",
3738
"@commitlint/parse": "^17.6.5",
38-
"@rollup/plugin-babel": "^6.0.3",
39-
"@rollup/plugin-commonjs": "^25.0.0",
40-
"@rollup/plugin-node-resolve": "^15.0.2",
41-
"@rollup/plugin-replace": "^5.0.2",
4239
"@solidjs/testing-library": "^0.8.4",
4340
"@testing-library/jest-dom": "^5.16.5",
4441
"@testing-library/react": "^14.0.0",
@@ -94,10 +91,21 @@
9491
"solid-js": "^1.6.13",
9592
"stream-to-array": "^2.3.0",
9693
"ts-node": "^10.9.1",
97-
"tsup": "7.2.0",
94+
"@rollup/plugin-babel": "^6.0.4",
95+
"@rollup/plugin-commonjs": "^25.0.7",
96+
"@rollup/plugin-node-resolve": "^15.2.3",
97+
"@rollup/plugin-replace": "^5.0.5",
98+
"rollup": "^4.6.1",
99+
"rollup-plugin-dts": "^6.1.0",
100+
"rollup-plugin-size": "^0.2.2",
101+
"rollup-plugin-svelte": "^7.1.6",
102+
"rollup-plugin-terser": "^7.0.2",
103+
"rollup-plugin-visualizer": "^5.9.3",
98104
"type-fest": "^3.11.0",
99105
"typescript": "^5.2.2",
100106
"vitest": "^0.34.3",
107+
"@types/fs-extra": "^11.0.4",
108+
"fs-extra": "^11.2.0",
101109
"vue": "^3.3.4"
102110
},
103111
"bundlewatch": {
@@ -109,8 +117,7 @@
109117
},
110118
"pnpm": {
111119
"patchedDependencies": {
112-
"@types/[email protected]": "patches/@[email protected]",
113-
120+
114121
},
115122
"overrides": {
116123
"@tanstack/form-core": "workspace:*",

packages/form-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"test:lib": "vitest run --coverage",
4949
"test:lib:dev": "pnpm run test:lib --watch",
5050
"test:build": "publint --strict",
51-
"build": "tsup"
51+
"build": "rollup --config rollup.config.js --bundleConfigAsCjs"
5252
},
5353
"dependencies": {
5454
"@tanstack/store": "0.1.3"

packages/form-core/rollup.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require('ts-node').register({
2+
compilerOptions: {
3+
esModuleInterop: true,
4+
},
5+
})
6+
7+
process.chdir('../..')
8+
9+
module.exports = require('../../rollup.config.ts').createRollupConfig(
10+
'@tanstack/form-core',
11+
)

packages/form-core/tsup.config.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/react-form/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"test:lib": "vitest run --coverage",
1919
"test:lib:dev": "pnpm run test:lib --watch",
2020
"test:build": "publint --strict",
21-
"build": "tsup"
21+
"build": "rollup --config rollup.config.js --bundleConfigAsCjs"
2222
},
2323
"files": [
2424
"build",

packages/react-form/rollup.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require('ts-node').register({
2+
compilerOptions: {
3+
esModuleInterop: true,
4+
},
5+
})
6+
7+
process.chdir('../..')
8+
9+
module.exports = require('../../rollup.config.ts').createRollupConfig(
10+
'@tanstack/react-form',
11+
)

packages/react-form/tsup.config.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/solid-form/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"test:lib": "vitest run --coverage",
1919
"test:lib:dev": "pnpm run test:lib --watch",
2020
"test:build": "publint --strict",
21-
"build": "tsup"
21+
"build": "rollup --config rollup.config.js --bundleConfigAsCjs"
2222
},
2323
"files": [
2424
"build",

packages/solid-form/rollup.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require('ts-node').register({
2+
compilerOptions: {
3+
esModuleInterop: true,
4+
},
5+
})
6+
7+
process.chdir('../..')
8+
9+
module.exports = require('../../rollup.config.ts').createRollupConfig(
10+
'@tanstack/solid-form',
11+
)

packages/solid-form/tsup.config.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

packages/valibot-form-adapter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"test:lib": "vitest run --coverage",
4949
"test:lib:dev": "pnpm run test:lib --watch",
5050
"test:build": "publint --strict",
51-
"build": "tsup"
51+
"build": "rollup --config rollup.config.js --bundleConfigAsCjs"
5252
},
5353
"dependencies": {
5454
"@tanstack/form-core": "workspace:*"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require('ts-node').register({
2+
compilerOptions: {
3+
esModuleInterop: true,
4+
},
5+
})
6+
7+
process.chdir('../..')
8+
9+
module.exports = require('../../rollup.config.ts').createRollupConfig(
10+
'@tanstack/valibot-form-adapter',
11+
)

packages/valibot-form-adapter/tsup.config.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/vue-form/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"test:lib": "vitest",
3737
"test:lib:dev": "pnpm run test:lib --watch",
3838
"test:build": "publint --strict",
39-
"build": "tsup"
39+
"build": "rollup --config rollup.config.js --bundleConfigAsCjs"
4040
},
4141
"nx": {
4242
"targets": {

packages/vue-form/rollup.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require('ts-node').register({
2+
compilerOptions: {
3+
esModuleInterop: true,
4+
},
5+
})
6+
7+
process.chdir('../..')
8+
9+
module.exports = require('../../rollup.config.ts').createRollupConfig(
10+
'@tanstack/vue-form',
11+
)

packages/vue-form/tsup.config.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/yup-form-adapter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"test:lib": "vitest run --coverage",
4949
"test:lib:dev": "pnpm run test:lib --watch",
5050
"test:build": "publint --strict",
51-
"build": "tsup"
51+
"build": "rollup --config rollup.config.js --bundleConfigAsCjs"
5252
},
5353
"dependencies": {
5454
"@tanstack/form-core": "workspace:*"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require('ts-node').register({
2+
compilerOptions: {
3+
esModuleInterop: true,
4+
},
5+
})
6+
7+
process.chdir('../..')
8+
9+
module.exports = require('../../rollup.config.ts').createRollupConfig(
10+
'@tanstack/yup-form-adapter',
11+
)

packages/yup-form-adapter/tsup.config.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/zod-form-adapter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"test:lib": "vitest run --coverage",
4949
"test:lib:dev": "pnpm run test:lib --watch",
5050
"test:build": "publint --strict",
51-
"build": "tsup"
51+
"build": "rollup --config rollup.config.js --bundleConfigAsCjs"
5252
},
5353
"dependencies": {
5454
"@tanstack/form-core": "workspace:*"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require('ts-node').register({
2+
compilerOptions: {
3+
esModuleInterop: true,
4+
},
5+
})
6+
7+
process.chdir('../..')
8+
9+
module.exports = require('../../rollup.config.ts').createRollupConfig(
10+
'@tanstack/zod-form-adapter',
11+
)

packages/zod-form-adapter/tsup.config.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

patches/[email protected]

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)