Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update typescript to v5.5 #8364

Merged
merged 36 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
5a6a07b
chore: update typescript to v5.5
zkochan Aug 1, 2024
a27cce9
fix: some errors
KSXGitHub Aug 6, 2024
58555c9
chore(deps): update @pnpm/logger
KSXGitHub Aug 7, 2024
5a3d439
chore(deps): use catalogs
KSXGitHub Aug 7, 2024
7c58401
refactor: remove a type no longer necessary
KSXGitHub Aug 7, 2024
08741ef
chore(deps): revert the catalog changes
KSXGitHub Aug 7, 2024
6b6939f
chore(git): merge from main
KSXGitHub Aug 7, 2024
bb4c39a
refactor: move types to their own files
KSXGitHub Aug 7, 2024
81042a0
refactor: change logger error type
KSXGitHub Aug 7, 2024
0e2c202
feat: add pkgsStack to LogBase
KSXGitHub Aug 7, 2024
d4f9c29
feat: add type param to StreamParser
KSXGitHub Aug 7, 2024
863801a
refactor: move error fields out for clarity
KSXGitHub Aug 7, 2024
eea6693
style: fix eslint
KSXGitHub Aug 7, 2024
955e196
feat: nullify non existence fields
KSXGitHub Aug 7, 2024
0d74619
feat: add hint
KSXGitHub Aug 7, 2024
b186445
feat: remove the nullifications
KSXGitHub Aug 7, 2024
c7654f3
feat: add `package` field
KSXGitHub Aug 7, 2024
19f3805
feat: extend `RequestRetryMessage.error`
KSXGitHub Aug 7, 2024
ddb15b1
fix: missing `id` field
KSXGitHub Aug 7, 2024
b2a73ed
fix: statsLogger
KSXGitHub Aug 7, 2024
156350a
fix: correct types
KSXGitHub Aug 7, 2024
7cecf34
fix: pkgsDiff
KSXGitHub Aug 8, 2024
3ec9111
refactor: use interfaces
KSXGitHub Aug 8, 2024
0635256
fix: reportSummary
KSXGitHub Aug 8, 2024
89dfa94
fix: revert erroneous change
KSXGitHub Aug 8, 2024
689ef68
fix: audit
KSXGitHub Aug 8, 2024
8c77590
fix: silentReporter
KSXGitHub Aug 9, 2024
8d76730
fix: reporter
KSXGitHub Aug 9, 2024
a633429
fix: eslint
KSXGitHub Aug 9, 2024
751e419
fix: main.ts
KSXGitHub Aug 9, 2024
b8b2fc2
fix: errorHandler
KSXGitHub Aug 9, 2024
f6d63b4
refactor: share code
KSXGitHub Aug 9, 2024
734c8e4
fix: test/reportingPeerDependencyIssues
KSXGitHub Aug 9, 2024
367af2b
fix: default-reporter/test/index.ts
KSXGitHub Aug 9, 2024
50718d9
fix: test/reportingErrors.ts
KSXGitHub Aug 9, 2024
2533771
fix: test/execPnpm
KSXGitHub Aug 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: share code
  • Loading branch information
KSXGitHub committed Aug 9, 2024
commit f6d63b4bfe57b8f022ea222907431e7dd96ea615
7 changes: 2 additions & 5 deletions pnpm/src/errorHandler.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { promisify } from 'util'
import { logger } from '@pnpm/logger'
import pidTree from 'pidtree'
import { REPORTER_INITIALIZED } from './main'
import { type ReporterType } from './reporter'
import { type Global, REPORTER_INITIALIZED } from './main'

declare const global: typeof globalThis & {
[REPORTER_INITIALIZED]?: ReporterType // eslint-disable-line @typescript-eslint/no-use-before-define
}
declare const global: Global

const getDescendentProcesses = promisify((pid: number, callback: (error: Error | undefined, result: number[]) => void) => {
pidTree(pid, { root: false }, callback)
Expand Down
3 changes: 2 additions & 1 deletion pnpm/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/* eslint-disable import/first */
declare const global: typeof globalThis & {
export type Global = typeof globalThis & {
pnpm__startedAt?: number
[REPORTER_INITIALIZED]?: ReporterType // eslint-disable-line @typescript-eslint/no-use-before-define
}
declare const global: Global
if (!global['pnpm__startedAt']) {
global['pnpm__startedAt'] = Date.now()
}
Expand Down
Loading