Skip to content

Commit

Permalink
excplicitly use deno path
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-zijdemans-vipps committed Jan 11, 2024
1 parent 680e291 commit 4dce4a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/coverage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import { run } from "./run.ts";
const THRESHOLD = 90;

// Run tests with coverage enabled
await run(`deno test --coverage`);
await run(`${Deno.execPath()} test --coverage`);

// Calculate branch coverage
const coverageReport = await run(`deno coverage ./coverage`);
const coverageReport = await run(`${Deno.execPath()} coverage ./coverage`);

// Remove ANSI escape codes
const words = coverageReport.replaceAll("\x1b", " ").split(" ");
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish_latest_tag_to_npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if (build?.toLowerCase().trim() === "y") {
const spinnerBuild = new Spinner({ message: `Building...` });
spinnerBuild.start();
const buildOutput = await run(
`deno run -A scripts/build_npm.ts ${trimmedTag}`,
`${Deno.execPath()} run -A scripts/build_npm.ts ${trimmedTag}`,
);
spinnerBuild.stop();
console.log(buildOutput);
Expand Down

0 comments on commit 4dce4a6

Please sign in to comment.