Skip to content

Commit 8c24fc4

Browse files
authored
fix: set version manually when using deno (#2219)
Closes #2218
1 parent 86f7b6c commit 8c24fc4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/targets/node/nodeBinaryProvider.ts

+4
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,10 @@ export class NodeBinaryProvider implements INodeBinaryProvider {
299299
// script that boots Node by itself, for instance) try to find Node itself
300300
// on the path as a fallback.
301301
const exeName = getNormalizedBinaryName(location);
302+
if (exeName === 'deno') {
303+
return new NodeBinary(location, new Semver(20, 0, 0)); // approximately
304+
}
305+
302306
if (!nodeOrElectronBinaries.includes(exeName)) {
303307
if (isPackageManager(location)) {
304308
const packageJson = await this.packageJson.getPath();

0 commit comments

Comments
 (0)