Skip to content

Commit

Permalink
fix(top-level): use patch-package to fix depd-vs-SES incompatibility
Browse files Browse the repository at this point in the history
Some packages try to modify properties that SES freezes, like
`Error.prepareStackTrace`. These packages cannot be imported in a SES
environment. Work is underway to tolerate these (endojs/endo#251).

`depd` is one such package. As a temporary workaround, this uses the
`patch-package` tool to modify the installed `depd` code during the `yarn
install` process, patching out its attempt to mutate frozen primordials. When
that bug is fixed, we should remove this change.
  • Loading branch information
warner committed Jun 26, 2020
1 parent d1756df commit a8f1308
Show file tree
Hide file tree
Showing 2 changed files with 534 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,12 @@
"lint-fix": "yarn workspaces run lint-fix",
"lint-check": "yarn workspaces run lint-check",
"test": "yarn workspaces run test",
"build": "yarn workspaces run build"
"build": "yarn workspaces run build",
"postinstall": "patch-package"
},
"dependencies": {
"@agoric/store": "^0.1.2"
"@agoric/store": "^0.1.2",
"patch-package": "^6.2.2",
"postinstall-postinstall": "^2.1.0"
}
}
Loading

0 comments on commit a8f1308

Please sign in to comment.