From 62c95f02e98ebc82e890c8903ee41392ffee80f0 Mon Sep 17 00:00:00 2001 From: Pascal Knoth Date: Fri, 8 Mar 2024 05:51:02 +0100 Subject: [PATCH] patch cef-ebsi package --- docker/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 6fea617..2ae33ee 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -9,6 +9,9 @@ WORKDIR /usr/src/app COPY . . RUN rm -rf node_modules/ RUN npm install + +RUN sed -i -e 's|"./dist/index.js"|{"require": "./dist/cjs/index.js", "import": "./dist/esm/index.js"}|g' node_modules/@cef-ebsi/key-did-resolver/package.json + RUN find ./ -name "*.js" -type f -exec sed -i -e "s/'did:key:zUC7': bls12381,/'did:key:zUC7': bls12381,'did:key:z3tE': bls12381,/g" {} \; RUN find ./ -name "*.ts" -type f -exec sed -i -e "s/'did:key:zUC7': typeof bls12381;/'did:key:zUC7': typeof bls12381;'did:key:z3tE': typeof bls12381;/g" {} \;