Skip to content

Commit 4626620

Browse files
committed
fix npm rename .gitignore to .npmignore
1 parent 51101e9 commit 4626620

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

npx/index.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ const { args } = cli.parse()
2020
console.log('Copying...')
2121
execaSync`cp -r ${resolve(getDirname(), '../template')} ${resolve(process.cwd(), args[0])}`
2222
console.log('Copy complete! Installing node modules...')
23-
execaSync(`cd ${resolve(process.cwd(), args[0])} && npm run setup`, {
24-
shell: true,
25-
stdio: 'inherit',
26-
})
23+
execaSync(
24+
`cd ${resolve(process.cwd(), args[0])} && npm run setup && mv .npmignore .gitignore`,
25+
{
26+
shell: true,
27+
stdio: 'inherit',
28+
},
29+
)
30+
2731
console.log('Installation complete! Have fun!')

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ts-hajime",
33
"description": "Delightfully bootstraps TypeScript npm libraries.",
4-
"version": "0.3.0",
4+
"version": "0.3.1",
55
"scripts": {
66
"setup": "rm -rf node_modules && npm i && husky",
77
"prepublishOnly": "npm run build",

0 commit comments

Comments
 (0)