Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankcorn committed Feb 12, 2024
1 parent 0c79c00 commit 3681b39
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
run:
npm ci &&
npm run build &&
npm run check &&
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

* fix ts error in build

## [0.3.3] - 2024-02-12

* support trpc v11
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"vitest": "^0.34.6"
},
"scripts": {
"check": "tsc --noEmit",
"build": "tsup",
"test": "vitest",
"release": "release-it"
Expand Down
4 changes: 2 additions & 2 deletions src/trpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export function tracing(options?: TracingOptions) {
const result = await opts.next();

// opts.rawInput is for v10, `opts.getRawInput` is for v11
const rawInput =
"rawInput" in opts ? opts.rawInput : await opts.getRawInput();
// @ts-expect-error
const rawInput = "rawInput" in opts ? opts.rawInput : await opts.getRawInput();
if (options.collectInput && typeof rawInput === "object") {
span.setAttributes(flatten({ input: rawInput }))
}
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"module": "nodenext",
"allowImportingTsExtensions": true,
"emitDeclarationOnly": true,
"declaration": true,
"moduleResolution": "nodenext",
"noImplicitAny": true,
Expand Down

0 comments on commit 3681b39

Please sign in to comment.