fix: Patch roughjs type

This commit is contained in:
Sidharth Vinod 2024-10-02 18:46:50 +05:30
parent dfcb4af18b
commit f9818b8bd7
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
3 changed files with 22 additions and 2 deletions

View File

@ -131,5 +131,10 @@
},
"nyc": {
"report-dir": "coverage/cypress"
},
"pnpm": {
"patchedDependencies": {
"roughjs": "patches/roughjs.patch"
}
}
}

10
patches/roughjs.patch Normal file
View File

@ -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;

9
pnpm-lock.yaml generated
View File

@ -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