Skip to content

Commit e42ed5f

Browse files
authored
fix: Add CLI binary entry point for aws-lambda-ric package (#176)
1 parent a4560c8 commit e42ed5f

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

package-lock.json

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

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aws-lambda-ric",
3-
"version": "4.0.0",
3+
"version": "4.0.1",
44
"description": "AWS Lambda Runtime Interface Client for Node.js",
55
"license": "Apache-2.0",
66
"repository": {
@@ -13,6 +13,9 @@
1313
},
1414
"type": "module",
1515
"main": "index.mjs",
16+
"bin": {
17+
"aws-lambda-ric": "./index.mjs"
18+
},
1619
"scripts": {
1720
"preinstall": "./scripts/preinstall.sh",
1821
"postinstall": "./scripts/postinstall.sh",

scripts/build.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ build({
1111
sourcemap: false,
1212
minify: false,
1313
outfile: OUT_FILE,
14+
banner: {
15+
js: "#!/usr/bin/env node",
16+
},
1417
})
1518
.then(() => {
1619
console.log("esbuild succeeded: output at", OUT_FILE);

0 commit comments

Comments
 (0)