We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08fc54f commit 9ef702cCopy full SHA for 9ef702c
index.js
@@ -45,12 +45,12 @@ execSync('npm install --legacy-peer-deps', {
45
stdio: 'inherit',
46
})
47
48
-const npmIgnorePath = join(process.cwd(), '.npmignore')
+const npmIgnorePath = join(destinationDirectory, '.npmignore')
49
50
if (existsSync(npmIgnorePath)) {
51
// npm will apparently rename .gitignore outside a repo to prevent accidentially publishing.
52
// Since this template specifies "files" in package.json that doesn't happen.
53
- renameSync(npmIgnorePath, join(process.cwd(), '.gitignore'))
+ renameSync(npmIgnorePath, join(destinationDirectory, '.gitignore'))
54
}
55
56
console.log('')
0 commit comments