Skip to content

Commit 0786601

Browse files
ci: sync changes from other projects (#978)
* ci: fix vitest/lint, fix package.json * ci: apply automated fixes * Remove ts-expect-error --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 86ad40c commit 0786601

File tree

23 files changed

+486
-684
lines changed

23 files changed

+486
-684
lines changed

.github/workflows/docs-sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: pnpm run build
3030

3131
- name: Generate Docs
32-
run: pnpm docs:generate
32+
run: pnpm generate-docs
3333

3434
- name: Check for changes
3535
id: check_changes

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4444
- name: Generate Docs
4545
if: steps.changesets.outputs.published == 'true'
46-
run: pnpm docs:generate
46+
run: pnpm generate-docs
4747
- name: Commit Generated Docs
4848
if: steps.changesets.outputs.published == 'true'
4949
run: |

.gitignore

Lines changed: 30 additions & 140 deletions
Original file line numberDiff line numberDiff line change
@@ -1,154 +1,44 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
lerna-debug.log*
8-
.pnpm-debug.log*
9-
10-
# Diagnostic reports (https://nodejs.org/api/report.html)
11-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
121

13-
# Runtime data
14-
pids
15-
*.pid
16-
*.seed
17-
*.pid.lock
2+
# See https://help.github.com/ignore-files/ for more about ignoring files.
183

19-
# Directory for instrumented libs generated by jscoverage/JSCover
20-
lib-cov
4+
# dependencies
5+
node_modules
6+
package-lock.json
7+
yarn.lock
218

22-
# Coverage directory used by tools like istanbul
9+
# builds
10+
build
2311
coverage
24-
*.lcov
25-
26-
# nyc test coverage
27-
.nyc_output
28-
29-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30-
.grunt
31-
32-
# Bower dependency directory (https://bower.io/)
33-
bower_components
34-
35-
# node-waf configuration
36-
.lock-wscript
37-
38-
# Compiled binary addons (https://nodejs.org/api/addons.html)
39-
build/Release
40-
41-
# Dependency directories
42-
node_modules/
43-
jspm_packages/
44-
45-
# Snowpack dependency directory (https://snowpack.dev/)
46-
web_modules/
47-
48-
# TypeScript cache
49-
*.tsbuildinfo
50-
51-
# Optional npm cache directory
52-
.npm
53-
54-
# Optional eslint cache
55-
.eslintcache
56-
57-
# Optional stylelint cache
58-
.stylelintcache
59-
60-
# Microbundle cache
61-
.rpt2_cache/
62-
.rts2_cache_cjs/
63-
.rts2_cache_es/
64-
.rts2_cache_umd/
65-
66-
# Optional REPL history
67-
.node_repl_history
68-
69-
# Output of 'npm pack'
70-
*.tgz
71-
72-
# Yarn Integrity file
73-
.yarn-integrity
12+
dist
7413

75-
# dotenv environment variable files
14+
# misc
15+
.DS_Store
7616
.env
17+
.env.local
7718
.env.development.local
7819
.env.test.local
7920
.env.production.local
80-
.env.local
81-
82-
# parcel-bundler cache (https://parceljs.org/)
83-
.cache
84-
.parcel-cache
85-
86-
# Next.js build output
8721
.next
88-
out
89-
90-
# Nuxt.js build / generate output
91-
.nuxt
92-
dist
93-
94-
# Gatsby files
95-
.cache/
96-
# Comment in the public line in if your project uses Gatsby and not Next.js
97-
# https://nextjs.org/blog/next-9-1#public-directory-support
98-
# public
9922

100-
# vuepress build output
101-
.vuepress/dist
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
.history
27+
size-plugin.json
28+
stats-hydration.json
29+
stats.json
30+
stats.html
31+
.vscode/settings.json
10232

103-
# vuepress v2.x temp and cache directory
104-
.temp
33+
*.log
10534
.cache
106-
107-
# Docusaurus cache and generated files
108-
.docusaurus
109-
110-
# Serverless directories
111-
.serverless/
112-
113-
# FuseBox cache
114-
.fusebox/
115-
116-
# DynamoDB Local files
117-
.dynamodb/
118-
119-
# TernJS port file
120-
.tern-port
121-
122-
# Stores VSCode versions used for testing VSCode extensions
123-
.vscode-test
124-
125-
# yarn v2
126-
.yarn/cache
127-
.yarn/unplugged
128-
.yarn/build-state.yml
129-
.yarn/install-state.gz
130-
.pnp.*
131-
.DS_Store
132-
133-
# Added by Task Master AI
134-
dev-debug.log
135-
# Environment variables
136-
# Editor directories and files
13735
.idea
138-
.vscode
139-
*.suo
140-
*.ntvs*
141-
*.njsproj
142-
*.sln
143-
*.sw?
144-
# OS specific
145-
# Task files
146-
tasks.json
147-
tasks/
148-
149-
## Tanstack Start
150-
.nitro
151-
.output
152-
.tanstack
153-
.claude
154-
package-lock.json
36+
.nx/cache
37+
.nx/workspace-data
38+
.pnpm-store
39+
.tsup
40+
.svelte-kit
41+
42+
vite.config.js.timestamp-*
43+
vite.config.ts.timestamp-*
44+
tsconfig.vitest-temp.json

.pnpmfile.cjs

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

examples/react/projects/src/db/out/meta/0000_snapshot.json

Lines changed: 13 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,8 @@
6464
"name": "projects_owner_id_users_id_fk",
6565
"tableFrom": "projects",
6666
"tableTo": "users",
67-
"columnsFrom": [
68-
"owner_id"
69-
],
70-
"columnsTo": [
71-
"id"
72-
],
67+
"columnsFrom": ["owner_id"],
68+
"columnsTo": ["id"],
7369
"onDelete": "cascade",
7470
"onUpdate": "no action"
7571
}
@@ -147,25 +143,17 @@
147143
"name": "todos_user_id_users_id_fk",
148144
"tableFrom": "todos",
149145
"tableTo": "users",
150-
"columnsFrom": [
151-
"user_id"
152-
],
153-
"columnsTo": [
154-
"id"
155-
],
146+
"columnsFrom": ["user_id"],
147+
"columnsTo": ["id"],
156148
"onDelete": "cascade",
157149
"onUpdate": "no action"
158150
},
159151
"todos_project_id_projects_id_fk": {
160152
"name": "todos_project_id_projects_id_fk",
161153
"tableFrom": "todos",
162154
"tableTo": "projects",
163-
"columnsFrom": [
164-
"project_id"
165-
],
166-
"columnsTo": [
167-
"id"
168-
],
155+
"columnsFrom": ["project_id"],
156+
"columnsTo": ["id"],
169157
"onDelete": "cascade",
170158
"onUpdate": "no action"
171159
}
@@ -265,12 +253,8 @@
265253
"name": "accounts_user_id_users_id_fk",
266254
"tableFrom": "accounts",
267255
"tableTo": "users",
268-
"columnsFrom": [
269-
"user_id"
270-
],
271-
"columnsTo": [
272-
"id"
273-
],
256+
"columnsFrom": ["user_id"],
257+
"columnsTo": ["id"],
274258
"onDelete": "cascade",
275259
"onUpdate": "no action"
276260
}
@@ -340,12 +324,8 @@
340324
"name": "sessions_user_id_users_id_fk",
341325
"tableFrom": "sessions",
342326
"tableTo": "users",
343-
"columnsFrom": [
344-
"user_id"
345-
],
346-
"columnsTo": [
347-
"id"
348-
],
327+
"columnsFrom": ["user_id"],
328+
"columnsTo": ["id"],
349329
"onDelete": "cascade",
350330
"onUpdate": "no action"
351331
}
@@ -355,9 +335,7 @@
355335
"sessions_token_unique": {
356336
"name": "sessions_token_unique",
357337
"nullsNotDistinct": false,
358-
"columns": [
359-
"token"
360-
]
338+
"columns": ["token"]
361339
}
362340
},
363341
"policies": {},
@@ -418,9 +396,7 @@
418396
"users_email_unique": {
419397
"name": "users_email_unique",
420398
"nullsNotDistinct": false,
421-
"columns": [
422-
"email"
423-
]
399+
"columns": ["email"]
424400
}
425401
},
426402
"policies": {},
@@ -488,4 +464,4 @@
488464
"schemas": {},
489465
"tables": {}
490466
}
491-
}
467+
}

examples/react/projects/src/db/out/meta/_journal.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
"breakpoints": true
1111
}
1212
]
13-
}
13+
}

package.json

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"repository": {
55
"type": "git",
6-
"url": "https://github.com/tanstack/db.git"
6+
"url": "git+https://github.com/TanStack/db.git"
77
},
88
"packageManager": "[email protected]",
99
"type": "module",
@@ -50,6 +50,7 @@
5050
"sherif": "^1.9.0",
5151
"shx": "^0.4.0",
5252
"tinyglobby": "^0.2.15",
53+
"tsx": "^4.21.0",
5354
"typescript": "^5.9.2",
5455
"vite": "^7.2.6",
5556
"vitest": "^3.2.4",
@@ -59,30 +60,5 @@
5960
"*.{ts,tsx}": [
6061
"eslint --fix"
6162
]
62-
},
63-
"workspaces": [
64-
"packages/*",
65-
"examples/*",
66-
"examples/react/*"
67-
],
68-
"pnpm": {
69-
"overrides": {
70-
"@tanstack/angular-db": "workspace:*",
71-
"@tanstack/db": "workspace:*",
72-
"@tanstack/db-ivm": "workspace:*",
73-
"@tanstack/electric-db-collection": "workspace:*",
74-
"@tanstack/offline-transactions": "workspace:*",
75-
"@tanstack/powersync-db-collection": "workspace:*",
76-
"@tanstack/query-db-collection": "workspace:*",
77-
"@tanstack/react-db": "workspace:*",
78-
"@tanstack/rxdb-db-collection": "workspace:*",
79-
"@tanstack/solid-db": "workspace:*",
80-
"@tanstack/svelte-db": "workspace:*",
81-
"@tanstack/trailbase-db-collection": "workspace:*",
82-
"@tanstack/vue-db": "workspace:*"
83-
}
84-
},
85-
"dependencies": {
86-
"tsx": "^4.21.0"
8763
}
8864
}

0 commit comments

Comments
 (0)