Skip to content

Tar dependencies are unpacked to wrong directory #27

@mziech

Description

@mziech

This is a follow-up to #23, #24, #25 and #26. While extracting the .tgz dependencies no longer throws an error, the resulting files are probably extracted to the wrong directory. This might be caused by an API change between node-tar 2.x and 3.x where the parameter path of the former Extract method call was changed to cwd of the new x method call.
See: https://www.npmjs.com/package/tar#tarxoptions-filelist-callback-alias-tarextract

While #26 changed the code to use x, the options passed to the method have not been adjusted. This probably leads to the dependencies to be extracted to the current working directory instead of bower_components. In bower_components there will be a directory for the dependency which contains nothing but a .bower.json file.

Please verify and possibly adjust the tar.extract method call to used the cwd option.

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