Skip to content

Commit a3f49cf

Browse files
ci: replace fast-glob with tinyglobby (#9501)
* ci: replace fast-glob with tinyglobby * Add back cipublish
1 parent 52fdff2 commit a3f49cf

File tree

5 files changed

+24
-15
lines changed

5 files changed

+24
-15
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24.2.0
1+
24.4.1

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "git",
66
"url": "https://github.com/TanStack/query.git"
77
},
8-
"packageManager": "pnpm@10.7.0",
8+
"packageManager": "pnpm@10.13.1",
99
"type": "module",
1010
"scripts": {
1111
"clean": "pnpm --filter \"./packages/**\" run clean",
@@ -28,8 +28,8 @@
2828
"prettier": "prettier --experimental-cli --ignore-unknown '**/*'",
2929
"prettier:write": "pnpm run prettier --write",
3030
"docs:generate": "node scripts/generateDocs.ts",
31-
"cipublish": "node scripts/publish.ts",
32-
"verify-links": "node scripts/verify-links.ts"
31+
"verify-links": "node scripts/verify-links.ts",
32+
"cipublish": "node scripts/publish.ts"
3333
},
3434
"nx": {
3535
"includedScripts": [
@@ -52,7 +52,6 @@
5252
"esbuild-plugin-file-path-extensions": "^2.1.4",
5353
"eslint": "^9.15.0",
5454
"eslint-plugin-react-hooks": "^6.0.0-rc.1",
55-
"fast-glob": "^3.3.3",
5655
"jsdom": "^25.0.1",
5756
"knip": "^5.50.2",
5857
"markdown-link-extractor": "^4.0.2",
@@ -64,6 +63,7 @@
6463
"react": "^19.0.0",
6564
"react-dom": "^19.0.0",
6665
"sherif": "^1.6.1",
66+
"tinyglobby": "^0.2.14",
6767
"tsup": "^8.4.0",
6868
"typescript": "5.8.3",
6969
"typescript50": "npm:[email protected]",

pnpm-lock.yaml

Lines changed: 15 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/generateDocs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { resolve } from 'node:path'
22
import { fileURLToPath } from 'node:url'
33
import { readFileSync, writeFileSync } from 'node:fs'
44
import { generateReferenceDocs } from '@tanstack/config/typedoc'
5-
import fg from 'fast-glob'
5+
import { glob } from 'tinyglobby'
66

77
const __dirname = fileURLToPath(new URL('.', import.meta.url))
88

@@ -39,7 +39,7 @@ await generateReferenceDocs({
3939
const markdownFilesPattern = 'docs/framework/{angular,svelte}/reference/**/*.md'
4040

4141
// Find all markdown files matching the pattern
42-
const markdownFiles = await fg(markdownFilesPattern)
42+
const markdownFiles = await glob(markdownFilesPattern)
4343

4444
console.log(`Found ${markdownFiles.length} markdown files to process\n`)
4545

scripts/verify-links.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { existsSync, readFileSync, statSync } from 'node:fs'
22
import path, { resolve } from 'node:path'
3-
import fg from 'fast-glob'
3+
import { glob } from 'tinyglobby'
44
// @ts-ignore Could not find a declaration file for module 'markdown-link-extractor'.
55
import markdownLinkExtractor from 'markdown-link-extractor'
66

@@ -86,7 +86,7 @@ function fileExistsForLink(
8686

8787
async function findMarkdownLinks() {
8888
// Find all markdown files in docs directory
89-
const markdownFiles = await fg('docs/**/*.md', {
89+
const markdownFiles = await glob('docs/**/*.md', {
9090
ignore: ['**/node_modules/**'],
9191
})
9292

0 commit comments

Comments
 (0)