Skip to content

Commit c7d2479

Browse files
committed
break: require Node 18+
1 parent c49f765 commit c7d2479

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

packages/sirv-cli/bin.js

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22
const sade = require('sade');
33
const boot = require('./index');
4-
const pkg = require('./package');
4+
const pkg = require('./package.json');
55

66
sade('sirv [dir]')
77
.version(pkg.version)

packages/sirv-cli/package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111
"bin": {
1212
"sirv": "bin.js"
1313
},
14+
"exports": {
15+
"./package.json": "./package.json"
16+
},
1417
"author": {
1518
"name": "Luke Edwards",
1619
"email": "luke@lukeed.com",
1720
"url": "https://lukeed.com"
1821
},
1922
"engines": {
20-
"node": ">= 10"
23+
"node": ">=18"
2124
},
2225
"dependencies": {
2326
"console-clear": "^1.1.0",
@@ -29,4 +32,4 @@
2932
"sirv": "^2.0.0",
3033
"tinydate": "^1.0.0"
3134
}
32-
}
35+
}

packages/sirv/package.json

+15-2
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,30 @@
1111
"build.*",
1212
"sirv.d.ts"
1313
],
14+
"exports": {
15+
".": {
16+
"import": {
17+
"types": "./sirv.d.ts",
18+
"default": "./build.mjs"
19+
},
20+
"require": {
21+
"types": "./sirv.d.ts",
22+
"default": "./build.js"
23+
}
24+
},
25+
"./package.json": "./package.json"
26+
},
1427
"author": {
1528
"name": "Luke Edwards",
1629
"email": "luke@lukeed.com",
1730
"url": "https://lukeed.com"
1831
},
1932
"engines": {
20-
"node": ">= 10"
33+
"node": ">=18"
2134
},
2235
"dependencies": {
2336
"@polka/url": "^1.0.0-next.24",
2437
"mrmime": "^2.0.0",
2538
"totalist": "^3.0.0"
2639
}
27-
}
40+
}

0 commit comments

Comments
 (0)