You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when running pnpm install in the repo root
pnpm is trying to install packages/webcrack to apps/playground
but packages/webcrack is not-yet built at this point
git clone --depth=1 https://github.com/j4k0xb/webcrack
cd webcrack
pnpm install
WARN Failed to create bin at apps/playground/node_modules/.bin/webcrack. ENOENT: no such file or directory, open 'packages/webcrack/dist/cli.js'
WARN Failed to create bin at apps/playground/node_modules/.bin/webcrack. ENOENT: no such file or directory, open 'apps/playground/node_modules/webcrack/dist/cli.js'
workaround
pnpm install --ignore-scripts
npm run build
possible solution
create a wrapper packages/webcrack/src/cli-wrapper.js for packages/webcrack/dist/cli.js
commit 70500eb14a9c9f1660caad0596cff288ce102ff3
Author: Milan Hauth <milahu@gmail.com>
Date: Tue Feb 13 14:41:48 2024 +0100
use bin wrapper
diff --git a/packages/webcrack/package.json b/packages/webcrack/package.json
index f5816c0..6db5072 100644
--- a/packages/webcrack/package.json+++ b/packages/webcrack/package.json@@ -7,7 +7,7 @@
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
- "bin": "dist/cli.js",+ "bin": "src/cli-wrapper.js",
"files": [
"dist"
],
diff --git a/packages/webcrack/src/cli-wrapper.js b/packages/webcrack/src/cli-wrapper.js
new file mode 100755
index 0000000..dc4b410
--- /dev/null+++ b/packages/webcrack/src/cli-wrapper.js@@ -0,0 +1,2 @@+#!/usr/bin/env node+import "../dist/cli.js"
Expected Behaviour
no warnings
Code
no
Logs
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
when running
pnpm install
in the repo rootpnpm is trying to install
packages/webcrack
toapps/playground
but
packages/webcrack
is not-yet built at this pointpnpm version 8.15.2
webcrack version e6b584f
workaround
possible solution
create a wrapper
packages/webcrack/src/cli-wrapper.js
forpackages/webcrack/dist/cli.js
Expected Behaviour
no warnings
Code
no
Logs
No response
The text was updated successfully, but these errors were encountered: