Skip to content

Commit

Permalink
feat: introduce npx
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilovtim authored and thehenrytsai committed Dec 7, 2023
1 parent 02780d9 commit 7a178b5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"require": "./dist/cjs/index.js"
}
},
"bin": {
"dwn-server": "./dist/esm/src/main.js"
},
"repository": {
"type": "git",
"url": "https://github.com/TBD54566975/dwn-server.git"
Expand Down
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
// node.js 18 and earlier, needs globalThis.crypto polyfill. needed for dwn-sdk-js
import { webcrypto } from 'node:crypto';

Expand Down

0 comments on commit 7a178b5

Please sign in to comment.