diff options
Diffstat (limited to 'cli/tests/testdata/npm/registry/@denotest/binary-package/1.0.0/index.js')
-rw-r--r-- | cli/tests/testdata/npm/registry/@denotest/binary-package/1.0.0/index.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/registry/@denotest/binary-package/1.0.0/index.js b/cli/tests/testdata/npm/registry/@denotest/binary-package/1.0.0/index.js new file mode 100644 index 000000000..5870118e7 --- /dev/null +++ b/cli/tests/testdata/npm/registry/@denotest/binary-package/1.0.0/index.js @@ -0,0 +1,13 @@ +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);
\ No newline at end of file |