Skip to content

Commit

Permalink
different patching approach
Browse files Browse the repository at this point in the history
  • Loading branch information
daikema committed Sep 26, 2024
1 parent f8c83d8 commit 258f104
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"reformat": "npx prettier --write ./src",
"checkformat": "npx prettier --check ./src",
"prepare": "npx tsc",
"postinstall": "patch-package"
"patch:carta-frontend": "patch-package"
},
"author": "",
"license": "ISC",
Expand Down
4 changes: 2 additions & 2 deletions patches/carta-frontend+4.1.0.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
diff --git a/node_modules/carta-frontend/package.json b/node_modules/carta-frontend/package.json
index 6e83566..955fe8f 100644
index 6e83566..f11ba57 100644
--- a/node_modules/carta-frontend/package.json
+++ b/node_modules/carta-frontend/package.json
@@ -89,7 +89,7 @@
"scripts": {
"git-info": "./git-info.sh",
"analyze": "source-map-explorer build/static/js/main.*",
- "postinstall": "patch-package",
+ "postinstall": "cd ../.. && patch-package",
+ "postinstall": "cd ../ && npm run patch:carta-frontend",
"start": "npm run git-info; react-scripts start",
"build": "npm run git-info; npm-run-all build-wrappers build-protobuf build-ts",
"build-docker": "npm run git-info; npm-run-all build-wrappers-docker build-protobuf build-ts",

0 comments on commit 258f104

Please sign in to comment.