-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
ci: prepare for trusted publishing #6032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,6 @@ | |
| "test:pr": "nx affected --targets=test:eslint,test:unit,test:e2e,test:types,test:build,build", | ||
| "test:ci": "nx run-many --targets=test:eslint,test:unit,test:e2e,test:types,test:build,build", | ||
| "test:eslint": "nx affected --target=test:eslint --exclude=examples/**,e2e/**", | ||
| "test:format": "pnpm run prettier --check", | ||
| "test:unit": "nx affected --target=test:unit --exclude=examples/**,e2e/**", | ||
| "test:unit:dev": "pnpm run test:unit && nx watch --all -- pnpm run test:unit", | ||
| "test:build": "nx affected --target=test:build --exclude=examples/**", | ||
|
|
@@ -25,12 +24,11 @@ | |
| "build:all": "nx run-many --target=build --exclude=examples/** --exclude=e2e/**", | ||
| "watch": "pnpm run build:all && nx watch --all -- pnpm run build:all", | ||
| "dev": "pnpm run watch", | ||
| "prettier": "prettier --experimental-cli --ignore-unknown '**/*'", | ||
| "prettier:write": "pnpm run prettier --write", | ||
| "format": "prettier --experimental-cli --ignore-unknown '**/*' --write", | ||
| "cipublish": "node scripts/publish.js", | ||
| "gpt-generate": "node gpt/generate.js", | ||
| "set-ts-version": "node scripts/set-ts-version.js", | ||
| "labeler-generate": "node scripts/generate-labeler-config.mjs", | ||
| "labeler-generate": "node scripts/generate-labeler-config.ts", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: cat -n package.json | head -50Repository: TanStack/router Length of output: 2694 🏁 Script executed: rg "tsx|ts-node" package.jsonRepository: TanStack/router Length of output: 41 🏁 Script executed: cat -n scripts/generate-labeler-config.ts | head -20Repository: TanStack/router Length of output: 881 🏁 Script executed: rg "type.*module" package.jsonRepository: TanStack/router Length of output: 78 🏁 Script executed: cat package.json | grep -A 100 '"devDependencies"' | grep -E '"(tsx|ts-node|ts-loader|tsx-loader)"'Repository: TanStack/router Length of output: 41 🏁 Script executed: rg "tsx|ts-node|@ts" package.jsonRepository: TanStack/router Length of output: 41 🏁 Script executed: cat package.json | grep -A 200 '"devDependencies"' | head -120Repository: TanStack/router Length of output: 3411 🏁 Script executed: rg "labeler-generate|verify-links" --type json --type yaml --type mdRepository: TanStack/router Length of output: 199 🏁 Script executed: git log --oneline scripts/generate-labeler-config.ts | head -5Repository: TanStack/router Length of output: 103 🏁 Script executed: ls -la scripts/Repository: TanStack/router Length of output: 589
With
🤖 Prompt for AI Agents |
||
| "cleanup-empty-packages": "node scripts/cleanup-empty-packages.mjs", | ||
| "test:docs": "node scripts/verify-links.ts" | ||
| }, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
prettier npm script glob pattern Windows shell '**/*' vs .💡 Result:
Short answer: use prettier --write . (recommended) or quote your glob in package.json so Prettier (not the shell) sees it. On Unix shells */ is expanded by the shell; on Windows (cmd.exe) the shell does not expand globs, so behaviour differs unless you let Prettier handle the pattern. See Prettier docs: quote globs for cross‑platform use and/or use . to format the current directory. [1][2][3]
Examples:
Sources:
🌐 Web query:
npm scripts shell expansion glob patterns Windows cross-platform💡 Result:
Short answer
What to do (concise recipes)
Notes / pitfalls
Sources
Consider a more portable target for the
formatscriptThe Prettier v3
--experimental-cliusage is fine, but shell glob expansion behaves differently across platforms: POSIX shells expand**/*before Prettier sees it, while Windows cmd.exe does not. Using.(current directory) is simpler and explicitly recommended by Prettier for cross-platform compatibility:📝 Committable suggestion
🤖 Prompt for AI Agents