Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
fix: treat npmignore like gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipPyrek committed Feb 21, 2024
1 parent cbb74f8 commit 8a8bfcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ export async function execute(opts: {
for (const file of files) {
const relative = path.relative(
templates,
file.replace('gitignore', '.gitignore')
file
.replace('gitignore', '.gitignore')
.replace('npmignore', '.npmignore')
)
const destination = path.join(opts.destination, relative)
await fs.mkdir(path.dirname(destination), { recursive: true })
Expand Down

0 comments on commit 8a8bfcb

Please sign in to comment.