We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b72237 commit 8ce7673Copy full SHA for 8ce7673
src/_helpers.ts
@@ -21,12 +21,6 @@ import { readFileSync, writeSync } from 'node:fs'
21
22
import normalizePackageData from 'normalize-package-data'
23
24
-export const structuredClonePolyfill: <T>(value: T) => T = typeof structuredClone === 'function'
25
- ? structuredClone
26
- : function <T>(value: T): T {
27
- /* eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- ack */
28
- return JSON.parse(JSON.stringify(value)) as T
29
- }
30
31
export function loadJsonFile (path: string): any {
32
return JSON.parse(readFileSync(path, 'utf8'))
0 commit comments