summaryrefslogtreecommitdiff
path: root/tests/registry/npm/@denotest/binary-package/1.0.0/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/registry/npm/@denotest/binary-package/1.0.0/index.js')
-rw-r--r--tests/registry/npm/@denotest/binary-package/1.0.0/index.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/registry/npm/@denotest/binary-package/1.0.0/index.js b/tests/registry/npm/@denotest/binary-package/1.0.0/index.js
new file mode 100644
index 000000000..5870118e7
--- /dev/null
+++ b/tests/registry/npm/@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