1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
From: =?utf-8?q?Bastien_Roucari=C3=A8s?= <rouca@debian.org>
Date: Wed, 8 Nov 2023 10:13:12 +0000
Subject: Add cjs variant for os-name
Forwarded: not-needed
---
os-name/package.json | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/os-name/package.json b/os-name/package.json
index 69ce7c2..f927cdb 100644
--- a/os-name/package.json
+++ b/os-name/package.json
@@ -11,7 +11,10 @@
"url": "https://sindresorhus.com"
},
"type": "module",
- "exports": "./index.js",
+ "exports": {
+ "import": "./index.js",
+ "require": "./index.cjs"
+ },
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
},
@@ -20,6 +23,7 @@
},
"files": [
"index.js",
+ "index.cjs",
"index.d.ts"
],
"keywords": [
|