Skip to content
This repository was archived by the owner on Nov 16, 2019. It is now read-only.
This repository was archived by the owner on Nov 16, 2019. It is now read-only.

Generating malformed package under single-character directory #24

@gzzhanghao

Description

@gzzhanghao

When publishing npm packages under a single-character folder in root directory, fstream-npm generates malformed tarball package without the "package" directory in package.tgz.

Check out https://github.com/npm/fstream-npm/blob/master/fstream-npm.js#L355

When publishing a package under e:/t/foo, entry.path.substr(h.length + 1) evaluates to /foo and entry.path then becomes e:/foo, while it was expected to be e:/package/foo.

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