Skip to content

Commit

Permalink
fix(deno): ensure --denoCjs respect the current Poku version (#771)
Browse files Browse the repository at this point in the history
* fix(deno): ensure `--denoCjs` respect the current Poku version

* ci: fix local version
  • Loading branch information
wellwelwel committed Sep 16, 2024
1 parent 0af5c8f commit 9ead4bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/run-test-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { format } from './format.js';
import { isQuiet, parserOutput } from '../parsers/output.js';
import { beforeEach, afterEach } from './each.js';
import { Write } from './write.js';
import { deepOptions } from '../configs/poku.js';
import { deepOptions, VERSION } from '../configs/poku.js';

const cwd = processCWD();

Expand All @@ -25,7 +25,7 @@ export const runTestFile = async (
configs?.deno?.cjs === true ||
(Array.isArray(configs?.deno?.cjs) &&
configs.deno.cjs.some((ext) => filePath.includes(ext)))
? 'https://cdn.jsdelivr.net/npm/poku/lib/polyfills/deno.mjs'
? `https://cdn.jsdelivr.net/npm/poku${VERSION ? `@${VERSION}` : ''}/lib/polyfills/deno.mjs`
: filePath,
];

Expand Down

0 comments on commit 9ead4bc

Please sign in to comment.