Skip to content

Commit 4790982

Browse files
authored
fix: migrate to use CI/CD system that router uses (#455)
1 parent 2842420 commit 4790982

File tree

18 files changed

+789
-552
lines changed

18 files changed

+789
-552
lines changed

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"private": true,
44
"repository": "https://github.com/tanstack/form.git",
55
"packageManager": "pnpm@8.5.1",
6-
"type": "module",
76
"scripts": {
87
"clean": "pnpm --filter \"./packages/**\" run clean",
98
"preinstall": "node -e \"if(process.env.CI == 'true') {console.log('Skipping preinstall...'); process.exit(1)}\" || npx -y only-allow pnpm",
@@ -22,7 +21,8 @@
2221
"dev": "pnpm run watch",
2322
"prettier": "prettier \"{packages,examples,scripts}/**/*.{md,js,jsx,cjs,ts,tsx,json,vue}\"",
2423
"prettier:write": "pnpm run prettier --write",
25-
"cipublish": "node scripts/publish.js"
24+
"cipublish": "ts-node scripts/publish.ts",
25+
"cipublishforce": "CI=true pnpm cipublish"
2626
},
2727
"nx": {
2828
"includedScripts": [
@@ -45,12 +45,15 @@
4545
"@testing-library/react-hooks": "^8.0.1",
4646
"@testing-library/user-event": "^14.4.3",
4747
"@testing-library/vue": "^7.0.0",
48+
"@types/current-git-branch": "^1.1.4",
4849
"@types/jest": "^26.0.4",
50+
"@types/jsonfile": "^6.1.1",
4951
"@types/luxon": "^2.3.1",
5052
"@types/node": "^17.0.25",
5153
"@types/react": "^18.0.14",
5254
"@types/react-dom": "^18.0.5",
5355
"@types/semver": "^7.3.13",
56+
"@types/stream-to-array": "^2.3.1",
5457
"@types/testing-library__jest-dom": "^5.14.5",
5558
"@typescript-eslint/eslint-plugin": "^6.4.1",
5659
"@typescript-eslint/parser": "^6.4.1",
@@ -75,6 +78,7 @@
7578
"eslint-plugin-import": "^2.28.1",
7679
"eslint-plugin-react": "^7.33.2",
7780
"eslint-plugin-react-hooks": "^4.6.0",
81+
"fs-extra": "^11.1.1",
7882
"git-log-parser": "^1.2.0",
7983
"jsdom": "^22.0.0",
8084
"jsonfile": "^6.1.0",
@@ -89,9 +93,9 @@
8993
"react-dom-17": "npm:react-dom@^17.0.2",
9094
"rimraf": "^5.0.1",
9195
"semver": "^7.3.8",
92-
"fs-extra": "^11.1.1",
9396
"solid-js": "^1.6.13",
9497
"stream-to-array": "^2.3.0",
98+
"ts-node": "^10.9.1",
9599
"tsup": "^7.2.0",
96100
"type-fest": "^3.11.0",
97101
"typescript": "^5.2.2",

packages/form-core/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"composite": true,
3+
"extends": "../../tsconfig.base.json",
34
"compilerOptions": {
45
"outDir": "./build/lib",
56
"types": ["vitest/globals"]

packages/form-core/tsup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-check
22

33
import { defineConfig } from 'tsup'
4-
import { legacyConfig, modernConfig } from '../../scripts/getTsupConfig.js'
4+
import { legacyConfig, modernConfig } from '../../getTsupConfig.js'
55

66
export default defineConfig([
77
modernConfig({ entry: ['src/*.ts'] }),

packages/react-form/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"composite": true,
3+
"extends": "../../tsconfig.base.json",
34
"compilerOptions": {
45
"jsx": "react",
56
"outDir": "./build/lib",

packages/react-form/tsup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-check
22

33
import { defineConfig } from 'tsup'
4-
import { legacyConfig, modernConfig } from '../../scripts/getTsupConfig.js'
4+
import { legacyConfig, modernConfig } from '../../getTsupConfig.js'
55

66
export default defineConfig([
77
modernConfig({ entry: ['src/*.ts', 'src/*.tsx'] }),

packages/vue-form/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"composite": true,
3+
"extends": "../../tsconfig.base.json",
34
"compilerOptions": {
45
"types": ["vitest/globals", "vue/jsx"],
56
"outDir": "./build/lib",

packages/vue-form/tsup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-check
22

33
import { defineConfig } from 'tsup'
4-
import { legacyConfig, modernConfig } from '../../scripts/getTsupConfig.js'
4+
import { legacyConfig, modernConfig } from '../../getTsupConfig.js'
55

66
export default defineConfig([
77
modernConfig({ entry: ['src/*.ts', 'src/*.tsx'] }),

0 commit comments

Comments
 (0)