Skip to content

Commit

Permalink
chore: change from tsup to manual rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchcorn committed Dec 28, 2023
1 parent 6a9147a commit 994c85c
Show file tree
Hide file tree
Showing 30 changed files with 946 additions and 249 deletions.
39 changes: 0 additions & 39 deletions getTsupConfig.js

This file was deleted.

23 changes: 15 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"test:lib:dev": "pnpm --filter \"./packages/**\" run test:lib:dev",
"test:build": "nx affected --target=test:build",
"test:types": "nx affected --target=test:types",
"build": "nx run-many --exclude=examples/** --target=build",
"buildNx": "nx run-many --target=build --projects=@tanstack/*",
"build": "rollup --config rollup.config.js",
"watch": "pnpm run build && nx watch --all -- pnpm run build",
"dev": "pnpm run watch",
"prettier": "prettier \"{packages,examples,scripts}/**/*.{md,js,jsx,cjs,ts,tsx,json,vue}\"",
Expand All @@ -35,10 +36,6 @@
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.5",
"@commitlint/parse": "^17.6.5",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-replace": "^5.0.2",
"@solidjs/testing-library": "^0.8.4",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
Expand Down Expand Up @@ -94,10 +91,21 @@
"solid-js": "^1.6.13",
"stream-to-array": "^2.3.0",
"ts-node": "^10.9.1",
"tsup": "7.2.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"rollup": "^4.6.1",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-size": "^0.2.2",
"rollup-plugin-svelte": "^7.1.6",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-visualizer": "^5.9.3",
"type-fest": "^3.11.0",
"typescript": "^5.2.2",
"vitest": "^0.34.3",
"@types/fs-extra": "^11.0.4",
"fs-extra": "^11.2.0",
"vue": "^3.3.4"
},
"bundlewatch": {
Expand All @@ -109,8 +117,7 @@
},
"pnpm": {
"patchedDependencies": {
"@types/testing-library__jest-dom@5.14.5": "patches/@types__testing-library__jest-dom@5.14.5.patch",
"tsup@7.2.0": "patches/tsup@7.2.0.patch"
"@types/testing-library__jest-dom@5.14.5": "patches/@types__testing-library__jest-dom@5.14.5.patch"
},
"overrides": {
"@tanstack/form-core": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/form-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"test:lib": "vitest run --coverage",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"build": "tsup"
"build": "rollup --config rollup.config.js --bundleConfigAsCjs"
},
"dependencies": {
"@tanstack/store": "0.1.3"
Expand Down
11 changes: 11 additions & 0 deletions packages/form-core/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require('ts-node').register({
compilerOptions: {
esModuleInterop: true,
},
})

process.chdir('../..')

module.exports = require('../../rollup.config.ts').createRollupConfig(
'@tanstack/form-core',
)
9 changes: 0 additions & 9 deletions packages/form-core/tsup.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/react-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test:lib": "vitest run --coverage",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"build": "tsup"
"build": "rollup --config rollup.config.js --bundleConfigAsCjs"
},
"files": [
"build",
Expand Down
11 changes: 11 additions & 0 deletions packages/react-form/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require('ts-node').register({
compilerOptions: {
esModuleInterop: true,
},
})

process.chdir('../..')

module.exports = require('../../rollup.config.ts').createRollupConfig(
'@tanstack/react-form',
)
9 changes: 0 additions & 9 deletions packages/react-form/tsup.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/solid-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test:lib": "vitest run --coverage",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"build": "tsup"
"build": "rollup --config rollup.config.js --bundleConfigAsCjs"
},
"files": [
"build",
Expand Down
11 changes: 11 additions & 0 deletions packages/solid-form/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require('ts-node').register({
compilerOptions: {
esModuleInterop: true,
},
})

process.chdir('../..')

module.exports = require('../../rollup.config.ts').createRollupConfig(
'@tanstack/solid-form',
)
24 changes: 0 additions & 24 deletions packages/solid-form/tsup.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/valibot-form-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"test:lib": "vitest run --coverage",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"build": "tsup"
"build": "rollup --config rollup.config.js --bundleConfigAsCjs"
},
"dependencies": {
"@tanstack/form-core": "workspace:*"
Expand Down
11 changes: 11 additions & 0 deletions packages/valibot-form-adapter/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require('ts-node').register({
compilerOptions: {
esModuleInterop: true,
},
})

process.chdir('../..')

module.exports = require('../../rollup.config.ts').createRollupConfig(
'@tanstack/valibot-form-adapter',
)
9 changes: 0 additions & 9 deletions packages/valibot-form-adapter/tsup.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/vue-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"build": "tsup"
"build": "rollup --config rollup.config.js --bundleConfigAsCjs"
},
"nx": {
"targets": {
Expand Down
11 changes: 11 additions & 0 deletions packages/vue-form/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require('ts-node').register({
compilerOptions: {
esModuleInterop: true,
},
})

process.chdir('../..')

module.exports = require('../../rollup.config.ts').createRollupConfig(
'@tanstack/vue-form',
)
9 changes: 0 additions & 9 deletions packages/vue-form/tsup.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/yup-form-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"test:lib": "vitest run --coverage",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"build": "tsup"
"build": "rollup --config rollup.config.js --bundleConfigAsCjs"
},
"dependencies": {
"@tanstack/form-core": "workspace:*"
Expand Down
11 changes: 11 additions & 0 deletions packages/yup-form-adapter/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require('ts-node').register({
compilerOptions: {
esModuleInterop: true,
},
})

process.chdir('../..')

module.exports = require('../../rollup.config.ts').createRollupConfig(
'@tanstack/yup-form-adapter',
)
9 changes: 0 additions & 9 deletions packages/yup-form-adapter/tsup.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/zod-form-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"test:lib": "vitest run --coverage",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"build": "tsup"
"build": "rollup --config rollup.config.js --bundleConfigAsCjs"
},
"dependencies": {
"@tanstack/form-core": "workspace:*"
Expand Down
11 changes: 11 additions & 0 deletions packages/zod-form-adapter/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require('ts-node').register({
compilerOptions: {
esModuleInterop: true,
},
})

process.chdir('../..')

module.exports = require('../../rollup.config.ts').createRollupConfig(
'@tanstack/zod-form-adapter',
)
9 changes: 0 additions & 9 deletions packages/zod-form-adapter/tsup.config.js

This file was deleted.

14 changes: 0 additions & 14 deletions patches/tsup@7.2.0.patch

This file was deleted.

Loading

0 comments on commit 994c85c

Please sign in to comment.