j4k0xb / webcrack

Deobfuscate obfuscator.io, unminify and unpack bundled javascript
https://webcrack.netlify.app
MIT License
647 stars 73 forks source link

chore: add cli-wrapper.js as workaround for pnpm install warning #59

Closed milahu closed 4 months ago

milahu commented 4 months ago

fix #58

alternative: add a prepare script to packages/webcrack/package.json to run build before install

  "scripts": {
    "prepare": "npm run build",

publishconfig feels wrong there should be no difference between local build and published build

netlify[bot] commented 4 months ago

Deploy Preview for webcrack ready!

Name Link
Latest commit 542a558db4ccd794746fe01a9f82b9e9c8d55642
Latest deploy log https://app.netlify.com/sites/webcrack/deploys/65cb92f05322d3000799a3be
Deploy Preview https://deploy-preview-59--webcrack.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

j4k0xb commented 4 months ago

Thanks!

milahu commented 4 months ago

mmkay. as expected:

webcrack $ pnpm install
webcrack $ cd apps/playground
webcrack/apps/playground $ npx webcrack
node:internal/modules/esm/resolve:263
    throw new ERR_MODULE_NOT_FOUND(
          ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'webcrack/packages/webcrack/dist/cli.js' imported from webcrack/packages/webcrack/src/cli-wrapper.js
  code: 'ERR_MODULE_NOT_FOUND',

... in case someone in the future trips over this error

the error could be prettier with a try/catch, but meh