Skip to content

Commit 7d7b115

Browse files
committed
bring back main/types for ancient outdated node versions
#557 (comment)
1 parent 13a4ef0 commit 7d7b115

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88
"type": "git",
99
"url": "git://github.com/isaacs/node-glob.git"
1010
},
11+
"type": "module",
12+
"main": "./dist/esm/index.js",
13+
"types": "./dist/esm/index.d.ts",
14+
"tshy": {
15+
"main": "esm",
16+
"exports": {
17+
"./package.json": "./package.json",
18+
".": "./src/index.ts"
19+
}
20+
},
1121
"exports": {
1222
"./package.json": "./package.json",
1323
".": {
@@ -70,7 +80,7 @@
7080
"rimraf": "^5.0.1",
7181
"sync-content": "^1.0.2",
7282
"tap": "^18.1.4",
73-
"tshy": "^1.1.1",
83+
"tshy": "^1.2.1",
7484
"typedoc": "^0.25.1",
7585
"typescript": "^5.2.2"
7686
},
@@ -83,12 +93,5 @@
8393
},
8494
"engines": {
8595
"node": ">=16 || 14 >=14.17"
86-
},
87-
"type": "module",
88-
"tshy": {
89-
"exports": {
90-
"./package.json": "./package.json",
91-
".": "./src/index.ts"
92-
}
9396
}
9497
}

0 commit comments

Comments
 (0)