Skip to content

Commit

Permalink
chore: add cli-wrapper.js as workaround for pnpm install warning (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
milahu authored Feb 13, 2024
1 parent e6b584f commit a75c5bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/webcrack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": "dist/cli.js",
"bin": "src/cli-wrapper.js",
"files": [
"dist"
"dist",
"src/cli-wrapper.js"
],
"scripts": {
"build": "node esbuild.config.js && tsc -p tsconfig.build.json",
Expand Down
4 changes: 4 additions & 0 deletions packages/webcrack/src/cli-wrapper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env node
// workaround for pnpm install warning "Failed to create bin"
// when dist/cli.js does not-yet exist
import "../dist/cli.js"

0 comments on commit a75c5bb

Please sign in to comment.