File: 0010-export-typescript.patch

package info (click to toggle)
node-envinfo 7.11.0%2B~cs14.3.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,288 kB
  • sloc: javascript: 2,763; makefile: 8
file content (38 lines) | stat: -rw-r--r-- 1,040 bytes parent folder | download | duplicates (2)
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
34
35
36
37
38
From: =?utf-8?q?Bastien_Roucari=C3=A8s?= <rouca@debian.org>
Date: Wed, 8 Nov 2023 15:51:41 +0000
Subject: export typescript

Forwarded: not-needed
---
 macos-release/package.json | 3 ++-
 os-name/package.json       | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/macos-release/package.json b/macos-release/package.json
index 8d5b188..139ecc7 100644
--- a/macos-release/package.json
+++ b/macos-release/package.json
@@ -13,7 +13,8 @@
 	"type": "module",
 	"exports": {
 		"import": "./index.js",
-		"require": "./index.cjs"
+		"require": "./index.cjs",
+		"types": "./index.d.ts"
 	},
 	"engines": {
 		"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
diff --git a/os-name/package.json b/os-name/package.json
index f927cdb..8aa90bd 100644
--- a/os-name/package.json
+++ b/os-name/package.json
@@ -13,7 +13,8 @@
 	"type": "module",
 	"exports": {
 		"import": "./index.js",
-		"require": "./index.cjs"
+		"require": "./index.cjs",
+		"types": "./index.d.ts"
 	},
 	"engines": {
 		"node": "^12.20.0 || ^14.13.1 || >=16.0.0"