|
|
@ -1,3 +1,4 @@ |
|
|
|
import cp from 'node:child_process'; |
|
|
|
// @ts-expect-error: Missing types
|
|
|
|
import {binary} from 'deno-prebuilt'; |
|
|
|
|
|
|
@ -6,5 +7,13 @@ import {Platform, Result} from './types.js'; |
|
|
|
export default class PlatformDeno implements Platform { |
|
|
|
async run(): Promise<Result> { |
|
|
|
throw new Error('not implemented'); |
|
|
|
/* eslint-disable no-unreachable */ |
|
|
|
const child = cp.spawn(binary, []); |
|
|
|
await new Promise((resolve, reject) => { |
|
|
|
child.once('error', reject); |
|
|
|
child.once('spawn', resolve); |
|
|
|
}); |
|
|
|
child.kill(); |
|
|
|
/* eslint-enable no-unreachable */ |
|
|
|
} |
|
|
|
} |