build: do not create .npmignore when bootstrapping
This commit is contained in:
parent
86ae92303d
commit
c9a1b00c1e
5
scripts/bootstrap.js
vendored
5
scripts/bootstrap.js
vendored
@ -47,11 +47,6 @@ files.forEach(shortName => {
|
|||||||
fs.writeFileSync(readmePath, `# ${name}`)
|
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 srcDir = path.join(packagesDir, shortName, `src`)
|
||||||
const indexPath = path.join(packagesDir, shortName, `src/index.ts`)
|
const indexPath = path.join(packagesDir, shortName, `src/index.ts`)
|
||||||
if (args.force || !fs.existsSync(indexPath)) {
|
if (args.force || !fs.existsSync(indexPath)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user