Skip to content

Commit

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

* Bump @tanstack/config

* Remove try/catch
  • Loading branch information
lachlancollins authored Jan 5, 2024
1 parent fefe74f commit 57336fc
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-terser": "^0.4.4",
"@tanstack/config": "^0.1.6",
"@tanstack/config": "^0.1.7",
"@testing-library/jest-dom": "^6.2.0",
"@testing-library/react": "^14.1.2",
"@testing-library/react-hooks": "^8.0.1",
Expand Down
10 changes: 5 additions & 5 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)
})
9 changes: 9 additions & 0 deletions scripts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"module": "ES2022",
"moduleResolution": "Bundler",
"noEmit": true
},
"include": ["**/*"]
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"allowJs": true,
"checkJs": true
},
"include": ["prettier.config.cjs", "scripts"]
"include": ["prettier.config.cjs"]
}

0 comments on commit 57336fc

Please sign in to comment.