From 6cebba76baa9caa6ed9c89a1beb022ef3a6fb1d6 Mon Sep 17 00:00:00 2001 From: Denis Davidyuk Date: Tue, 26 Nov 2024 13:53:59 +0500 Subject: [PATCH] chore: use `npm pack` in tests --- .gitignore | 3 ++- tests/util.mjs | 8 ++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index a8866972..8c98df27 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ node_modules site .testdir build -.venv \ No newline at end of file +.venv +aeternity-aeproject-*.tgz \ No newline at end of file diff --git a/tests/util.mjs b/tests/util.mjs index c54220e3..9e721418 100644 --- a/tests/util.mjs +++ b/tests/util.mjs @@ -24,10 +24,6 @@ export function cleanLocal() { export async function linkLocalLib(folder) { const c = folder ? path.join(cwd, folder) : cwd; - await exec("npm i .. -D", { cwd: c }); - await exec( - 'perl -i -pe \'s/"prepare"/"rem-prepare"/g\' ../node_modules/@aeternity/aepp-sdk/package.json', - { cwd: c }, - ); - await exec("npm i ../node_modules/@aeternity/aepp-sdk", { cwd: c }); + await exec("npm pack --ignore-scripts", { cwd: path.join(c, '..') }); + await exec("npm i ../aeternity-aeproject-4.10.2.tgz -D", { cwd: c }); }