mirror of
https://github.com/denoland/deno.git
synced 2025-02-18 19:33:00 -05:00

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); |