Thanks to visit codestin.com
Credit goes to github.com

Skip to content

unable to package into binary or minify shelljs  #1172

@shrw

Description

@shrw

Node version (or tell us if you're using electron or some other framework):

node -v
v22.2.0

ShellJS version (the most recent version/Github branch you see the bug on):

^0.8.5

Operating system:

ubuntu 20

Description of the bug:

unable to package into binary or minify shelljs
with npm pkg or any binary bundling tool

Example ShellJS command to reproduce the error:

error: Cannot find module "./src/cat"

const shell = require('shelljs');

// Example: List files in the current directory
if (shell.exec('ls').code !== 0) {
  shell.echo('Error: ls command failed');
  shell.exit(1);
}

need a executable for ubuntu, windows, mac. But was not able to build after 3 days, searched all gpt, stackoverflow etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixBug/defect, or a fix for such a problem

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions