Skip to content

Commit 9ef702c

Browse files
committed
fix(install): point to destination directory
release-npm
1 parent 08fc54f commit 9ef702c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ execSync('npm install --legacy-peer-deps', {
4545
stdio: 'inherit',
4646
})
4747

48-
const npmIgnorePath = join(process.cwd(), '.npmignore')
48+
const npmIgnorePath = join(destinationDirectory, '.npmignore')
4949

5050
if (existsSync(npmIgnorePath)) {
5151
// npm will apparently rename .gitignore outside a repo to prevent accidentially publishing.
5252
// Since this template specifies "files" in package.json that doesn't happen.
53-
renameSync(npmIgnorePath, join(process.cwd(), '.gitignore'))
53+
renameSync(npmIgnorePath, join(destinationDirectory, '.gitignore'))
5454
}
5555

5656
console.log('')

0 commit comments

Comments
 (0)