mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 07:44:48 -05:00
1587387bcc
1. Moves the npm registries to their own dedicated ports. 2. Moves the data files out of `tests/testdata/npm/registry` to `tests/registry/npm`.
13 lines
No EOL
329 B
JavaScript
13 lines
No EOL
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); |