Skip to content

cross-spawn is bundled instead of listed as a dependency #68

@iiroj

Description

@iiroj

Hello,

when looking at the inner workings of tinyexec I notice cross-spawn is used to parse the command string to values passed to spawn from node:child_process:

tinyexec/src/main.ts

Lines 298 to 304 in dac1064

const crossResult = _parse(normalisedCommand, normalisedArgs, nodeOptions);
const handle = spawn(
crossResult.command,
crossResult.args,
crossResult.options
);

I was curious because it seems to be only listed as a development dependency — looks like it gets bundled/inlined into the production code that is shipped to npm. Is there a reason for this? Would it make sense to instead list cross-spawn as a dependency that gets automatically installed?

At least the licence of cross-spawn should be distributed in tinyexec, but I couldn't find it from the distribution: https://github.com/moxystudio/node-cross-spawn/blob/master/LICENSE

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions