Skip to content

Commit

Permalink
chore: fix ts upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvanhulle committed Oct 3, 2023
1 parent a4df0f4 commit 63b392d
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 114 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"vue": "^3.3.4"
},
"devDependencies": {
"@types/node": "^20.8.1"
"@types/node": "^20.8.2"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
"@kubb/eslint-config": "workspace:*",
"@kubb/ts-config": "workspace:*",
"@swc/core": "1.3.82",
"@types/node": "^20.8.1",
"@types/node": "^20.8.2",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/ui": "^0.34.6",
"bun-types": "^1.0.3",
"bun-types": "^1.0.4",
"prettier": "^3.0.3",
"prettier-eslint": "^15.0.1",
"prettier-plugin-curly": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@kubb/swagger": "workspace:*",
"@kubb/ts-config": "workspace:*",
"@kubb/tsup-config": "workspace:*",
"@types/node": "^20.8.1",
"@types/node": "^20.8.2",
"source-map-support": "^0.5.21",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/src/generate.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { build, ParallelPluginError, PluginError, SummaryError, timeout, LogLevel } from '@kubb/core'

import type { ExecaReturnValue } from 'execa'
import type { Writable } from 'node:stream'

import { execa } from 'execa'
import pc from 'picocolors'
Expand Down Expand Up @@ -47,7 +48,7 @@ async function executeHooks({ hooks, logLevel }: ExecutingHooksProps): Promise<v

spinner.start(`Executing hook ${logLevel !== 'silent' ? pc.dim(command) : ''}`)

const subProcess = await execa(cmd, _args, { detached: true, signal: abortController.signal }).pipeStdout!(oraWritable)
const subProcess = await execa(cmd, _args, { detached: true, signal: abortController.signal }).pipeStdout!(oraWritable as Writable)
spinner.suffixText = ''

if (logLevel === LogLevel.silent) {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/OraWritable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class OraWritable extends Writable {
this.command = command
this.spinner = spinner
}
_write(chunk: any, _encoding: NodeJS.BufferEncoding, callback: (error?: Error | null) => void): void {
_write(chunk: any, _encoding: BufferEncoding, callback: (error?: Error | null) => void): void {
this.spinner.suffixText = `\n\n${pc.bold(pc.blue(this.command))}: ${chunk?.toString()}`

callback()
Expand Down
2 changes: 1 addition & 1 deletion packages/config/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"eslint-plugin-import": "~2.28.1",
"eslint-plugin-react": "~7.33.2",
"eslint-plugin-unused-imports": "~3.0.0",
"eslint-plugin-vitest": "~0.3.1",
"eslint-plugin-vitest": "~0.3.2",
"eslint-plugin-vitest-globals": "~1.4.0",
"globals": "^13.22.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/config/tsup-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"devDependencies": {
"@kubb/ts-config": "workspace:*",
"@types/node": "^20.8.1",
"@types/node": "^20.8.2",
"tsup": "^7.2.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/kubb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"devDependencies": {
"@kubb/ts-config": "workspace:*",
"@kubb/tsup-config": "workspace:*",
"@types/node": "^20.8.1",
"@types/node": "^20.8.2",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
},
Expand Down
Loading

1 comment on commit 63b392d

@vercel
Copy link

@vercel vercel bot commented on 63b392d Oct 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kubb – ./

kubb-git-main-kubb.vercel.app
www.kubb.dev
kubb-kubb.vercel.app
kubb.dev

Please sign in to comment.