Skip to content

Commit

Permalink
chore: use npm pack in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Nov 26, 2024
1 parent 5421c6f commit 6cebba7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ node_modules
site
.testdir
build
.venv
.venv
aeternity-aeproject-*.tgz
8 changes: 2 additions & 6 deletions tests/util.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}

0 comments on commit 6cebba7

Please sign in to comment.