mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
13 lines
329 B
JavaScript
13 lines
329 B
JavaScript
|
const packageByOs = {
|
||
|
"darwin": "@denotest/binary-package-mac",
|
||
|
"linux": "@denotest/binary-package-linux",
|
||
|
"win32": "@denotest/binary-package-windows",
|
||
|
}
|
||
|
|
||
|
const selectedPackage = packageByOs[process.platform];
|
||
|
|
||
|
if (!selectedPackage) {
|
||
|
throw new Error("trying to run on unsupported platform");
|
||
|
}
|
||
|
|
||
|
require(selectedPackage);
|