Skip to content

Commit 57336fc

Browse files
authoredJan 5, 2024
fix: Correctly exit publish script (#5262)
* fix: Correctly exit publish script * Bump @tanstack/config * Remove try/catch
1 parent fefe74f commit 57336fc

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"@rollup/plugin-node-resolve": "^15.2.3",
4040
"@rollup/plugin-replace": "^5.0.5",
4141
"@rollup/plugin-terser": "^0.4.4",
42-
"@tanstack/config": "^0.1.6",
42+
"@tanstack/config": "^0.1.7",
4343
"@testing-library/jest-dom": "^6.2.0",
4444
"@testing-library/react": "^14.1.2",
4545
"@testing-library/react-hooks": "^8.0.1",

‎pnpm-lock.yaml

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎scripts/publish.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
import { publish } from '@tanstack/config/publish'
44
import { branchConfigs, packages, rootDir } from './config.js'
55

6-
publish({
6+
await publish({
77
branchConfigs,
88
packages,
99
rootDir,
1010
branch: process.env.BRANCH,
1111
tag: process.env.TAG,
1212
ghToken: process.env.GH_TOKEN,
13-
}).catch(err => {
14-
console.info(err)
15-
process.exit(1)
1613
})

‎scripts/tsconfig.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"module": "ES2022",
5+
"moduleResolution": "Bundler",
6+
"noEmit": true
7+
},
8+
"include": ["**/*"]
9+
}

‎tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
"allowJs": true,
1717
"checkJs": true
1818
},
19-
"include": ["prettier.config.cjs", "scripts"]
19+
"include": ["prettier.config.cjs"]
2020
}

0 commit comments

Comments
 (0)
Please sign in to comment.