build: do not create .npmignore when bootstrapping

This commit is contained in:
Evan You 2019-09-16 14:58:03 -04:00
parent 86ae92303d
commit c9a1b00c1e

View File

@ -47,11 +47,6 @@ files.forEach(shortName => {
fs.writeFileSync(readmePath, `# ${name}`)
}
const npmIgnorePath = path.join(packagesDir, shortName, `.npmignore`)
if (args.force || !fs.existsSync(npmIgnorePath)) {
fs.writeFileSync(npmIgnorePath, `__tests__/\n__mocks__/\ndist/packages`)
}
const srcDir = path.join(packagesDir, shortName, `src`)
const indexPath = path.join(packagesDir, shortName, `src/index.ts`)
if (args.force || !fs.existsSync(indexPath)) {