Skip to content

Commit

Permalink
fix: add nyc_output for gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfbecker committed May 1, 2019
1 parent 61ae8d5 commit 244ea75
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,10 @@ async function main(): Promise<void> {
await writeFile('.prettierignore', ['package.json', 'package-lock.json', 'dist/', ''].join('\n'))

console.log('📄 Adding .gitignore')
await writeFile('.gitignore', ['dist/', 'node_modules/', ...(hasTests ? ['coverage/'] : []), ''].join('\n'))
await writeFile(
'.gitignore',
['dist/', 'node_modules/', ...(hasTests ? ['coverage/', '.nyc_output/'] : []), ''].join('\n')
)

let packageJson: JsonSchemaForNpmPackageJsonFiles
try {
Expand Down Expand Up @@ -283,17 +286,17 @@ async function main(): Promise<void> {
console.log('📦 Installing dependencies')
const dependencyNames = [
'prettier',
'typescript',
'tslint',
'husky',
'semantic-release',
'@commitlint/cli',
'@commitlint/config-conventional',
'@sourcegraph/tslint-config',
'@sourcegraph/tsconfig',
'@sourcegraph/prettierrc',
...(hasTests ? ['mocha', 'nyc', 'ts-node', '@types/mocha', '@types/node'] : []),
'prettier',
'typescript',
'tslint',
'husky',
'semantic-release',
'@commitlint/cli',
'@commitlint/config-conventional',
'@sourcegraph/tslint-config',
'@sourcegraph/tsconfig',
'@sourcegraph/prettierrc',
...(hasTests ? ['mocha', 'nyc', 'ts-node', '@types/mocha', '@types/node'] : []),
]
const existingDependencyNames = new Set(Object.keys(packageJson.devDependencies || {}))
// Skip adding dependencies if already added for perf
Expand Down

0 comments on commit 244ea75

Please sign in to comment.