Skip to content

Commit

Permalink
break: require Node 18+
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Oct 11, 2024
1 parent c49f765 commit c7d2479
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/sirv-cli/bin.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node
const sade = require('sade');
const boot = require('./index');
const pkg = require('./package');
const pkg = require('./package.json');

sade('sirv [dir]')
.version(pkg.version)
Expand Down
7 changes: 5 additions & 2 deletions packages/sirv-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@
"bin": {
"sirv": "bin.js"
},
"exports": {
"./package.json": "./package.json"
},
"author": {
"name": "Luke Edwards",
"email": "luke@lukeed.com",
"url": "https://lukeed.com"
},
"engines": {
"node": ">= 10"
"node": ">=18"
},
"dependencies": {
"console-clear": "^1.1.0",
Expand All @@ -29,4 +32,4 @@
"sirv": "^2.0.0",
"tinydate": "^1.0.0"
}
}
}
17 changes: 15 additions & 2 deletions packages/sirv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,30 @@
"build.*",
"sirv.d.ts"
],
"exports": {
".": {
"import": {
"types": "./sirv.d.ts",
"default": "./build.mjs"
},
"require": {
"types": "./sirv.d.ts",
"default": "./build.js"
}
},
"./package.json": "./package.json"
},
"author": {
"name": "Luke Edwards",
"email": "luke@lukeed.com",
"url": "https://lukeed.com"
},
"engines": {
"node": ">= 10"
"node": ">=18"
},
"dependencies": {
"@polka/url": "^1.0.0-next.24",
"mrmime": "^2.0.0",
"totalist": "^3.0.0"
}
}
}

0 comments on commit c7d2479

Please sign in to comment.