From f9818b8bd71798717794dd54dec446a972e87f82 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Wed, 2 Oct 2024 18:46:50 +0530 Subject: [PATCH] fix: Patch roughjs type --- package.json | 5 +++++ patches/roughjs.patch | 10 ++++++++++ pnpm-lock.yaml | 9 +++++++-- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 patches/roughjs.patch diff --git a/package.json b/package.json index 9b592394d..cc1c7b936 100644 --- a/package.json +++ b/package.json @@ -131,5 +131,10 @@ }, "nyc": { "report-dir": "coverage/cypress" + }, + "pnpm": { + "patchedDependencies": { + "roughjs": "patches/roughjs.patch" + } } } diff --git a/patches/roughjs.patch b/patches/roughjs.patch new file mode 100644 index 000000000..7a17084fe --- /dev/null +++ b/patches/roughjs.patch @@ -0,0 +1,10 @@ +diff --git a/bin/rough.d.ts b/bin/rough.d.ts +index 810db1fb34496a5b9f7c0734a7ad8be8605f5534..3624d5b6288a3d2b7d397dfcfffce60558f18cf9 100644 +--- a/bin/rough.d.ts ++++ b/bin/rough.d.ts +@@ -8,4 +8,4 @@ declare const _default: { + generator(config?: Config): RoughGenerator; + newSeed(): number; + }; +-export default _default; ++export = _default; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b80fb5d8d..82b708ab7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,11 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +patchedDependencies: + roughjs: + hash: vxb6t6fqvzyhwhtjiliqr25jyq + path: patches/roughjs.patch + importers: .: @@ -253,7 +258,7 @@ importers: version: 13.0.3 roughjs: specifier: ^4.6.6 - version: 4.6.6 + version: 4.6.6(patch_hash=vxb6t6fqvzyhwhtjiliqr25jyq) stylis: specifier: ^4.3.1 version: 4.3.4 @@ -17959,7 +17964,7 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.21.1 fsevents: 2.3.3 - roughjs@4.6.6: + roughjs@4.6.6(patch_hash=vxb6t6fqvzyhwhtjiliqr25jyq): dependencies: hachure-fill: 0.5.2 path-data-parser: 0.1.0