]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
build: do not create .npmignore when bootstrapping
authorEvan You <yyx990803@gmail.com>
Mon, 16 Sep 2019 18:58:03 +0000 (14:58 -0400)
committerEvan You <yyx990803@gmail.com>
Mon, 16 Sep 2019 18:58:03 +0000 (14:58 -0400)
scripts/bootstrap.js

index 20d2214adfcc3dbc355668bdda718363ba51a01e..eb70034290f18d910011df0282fbcbf1f3381d66 100644 (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)) {