Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Rename .gitignore to .npmignore in package if no .npmignore found #1862

Closed
@isaacs

Description

@isaacs

When packaging up a folder, if there's a gitignore file and no .npmignore file, add it to the tarball as .npmignore.

Always exclude .gitignore files from packages.

This is to better support the "check node_modules into git" approach.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions