Skip to content

Commit

Permalink
feat: add a bin script to needs-auth (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
KSXGitHub authored Jun 15, 2024
1 parent 37a7be0 commit 33c208b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/needs-auth/hello.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /usr/bin/env node
const { name } = require('./package.json')
console.log(`hello from ${name}`)
5 changes: 4 additions & 1 deletion packages/needs-auth/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"name": "@pnpm.e2e/needs-auth",
"version": "1.0.0"
"version": "1.0.0",
"bin": {
"hello-from-needs-auth": "./hello.js"
}
}

0 comments on commit 33c208b

Please sign in to comment.