Skip to content

Commit

Permalink
fix: Correctly exit publish script (#555)
Browse files Browse the repository at this point in the history
* fix: Correctly exit publish script

* Remove unnecessary try/catch
  • Loading branch information
lachlancollins authored Jan 5, 2024
1 parent d0bc3ac commit 2003e4d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"namespace": "@tanstack",
"devDependencies": {
"@solidjs/testing-library": "^0.8.5",
"@tanstack/config": "^0.1.6",
"@tanstack/config": "^0.1.7",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "^14.4.3",
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
import { publish } from '@tanstack/config/publish'
import { branchConfigs, packages, rootDir } from './config.js'

publish({
await publish({
branchConfigs,
packages,
rootDir,
branch: process.env.BRANCH,
tag: process.env.TAG,
ghToken: process.env.GH_TOKEN,
}).catch((err) => {
console.info(err)
process.exit(1)
})
25 changes: 14 additions & 11 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"lib": ["ES2022"],
"target": "ES2020",
"module": "ES2020",
"allowJs": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"noUncheckedIndexedAccess": true,
"strictNullChecks": true,
"allowUnreachableCode": true,
"baseUrl": ".",
"checkJs": true,
"declaration": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"lib": ["DOM", "DOM.Iterable", "ES2022"],
"module": "ES2022",
"noEmit": true,
"noImplicitReturns": true,
"esModuleInterop": true,
"noUncheckedIndexedAccess": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"baseUrl": ".",
"allowUnreachableCode": true,
"allowJs": true,
"checkJs": true
"strict": true,
"strictNullChecks": true,
"target": "ES2020"
},
"include": [".eslintrc.cjs", "prettier.config.js"]
}

0 comments on commit 2003e4d

Please sign in to comment.