Nate Fischer

Results 340 comments of Nate Fischer

Closing this old ticket. We don't currently maintain the typing information in this repo. Please file a bug against https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/shelljs/index.d.ts if you're still running into this.

Closing this one out. This was solved by https://github.com/shelljs/shelljs/pull/1036.

Suggested code (once shelljs v0.9.0 comes out) would look like: ```js var shell = require('shelljs'); process.on('exit', code => { shell.exit(shell.errorCode()); }); // Your script here... shell.echo('hello world'); ``` If you...

> # Expected > ``` > cp -n test.txt destDir/ > { code: 1, stdout: 'destDir/test.txt not overwritten', stderr: null, error: true } > ``` > > (I get the...

Generally, the ShellJS project tries to follow the GNU coreutils behavior (i.e., Linux). In this specific case, it's intended behavior for `cp('-n', ...)` to return a status of 0. I...

I'm going to close this since I haven't heard back from @souravdasslg and we've figured out what was causing @cdavie-artium's issue.

I'm not sure what you're requesting. I think `import shell from 'shelljs'` works and that's what we've documented. If that's not what you're looking for, can you explain how we...

If you can still repro this: does upgrading the `glob` package workaround the crash? Is there a spot in shelljs code where we can meaningfully catch this crash and still...

This is resolved by #31. Core modules are opened in `readonly` mode, and local files are opened with standard permissions. A possible extension to this would be to open dependencies...