Skip to content

Commit 8f4aa64

Browse files
fix: Correctly exit publish script (TanStack#6647)
* fix: Correctly exit publish script * Remove ts-expect-error
1 parent ca6102b commit 8f4aa64

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"namespace": "@tanstack",
3939
"devDependencies": {
4040
"@solidjs/testing-library": "^0.8.5",
41-
"@tanstack/config": "^0.1.6",
41+
"@tanstack/config": "^0.1.7",
4242
"@testing-library/jest-dom": "^6.1.5",
4343
"@testing-library/react": "^14.1.2",
4444
"@types/eslint": "^8.56.0",

packages/vue-query/src/__mocks__/useBaseQuery.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { vi } from 'vitest'
22
import type { Mock } from 'vitest'
33

44
const { useBaseQuery: originImpl, unrefQueryArgs: originalParse } =
5-
// @ts-expect-error - vitest uses esmodules; tsconfig is not set to use them
65
(await vi.importActual('../useBaseQuery')) as any
76

87
export const useBaseQuery: Mock<Array<any>, any> = vi.fn(originImpl)

pnpm-lock.yaml

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

scripts/publish.js

Lines changed: 1 addition & 4 deletions
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
})

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"esModuleInterop": true,
1313
"forceConsistentCasingInFileNames": true,
1414
"isolatedModules": true,
15-
"lib": ["DOM", "DOM.Iterable", "ES2020"],
16-
"module": "ES2020",
15+
"lib": ["DOM", "DOM.Iterable", "ES2022"],
16+
"module": "ES2022",
1717
"moduleResolution": "Bundler",
1818
"noEmit": true,
1919
"noImplicitAny": true,

0 commit comments

Comments
 (0)