Browse Source

Revert "Fix ignoring mock artifacts on release"

This reverts commit e7bded655b8c336b132968930fa60d339be8115b.
Nicolás Venturo 5 years ago
parent
commit
8e58cda8c3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/prepare.js

+ 2 - 2
scripts/prepare.js

@@ -18,8 +18,8 @@ const pkgFiles = readJSON('package.json').files;
 // Get only negated patterns.
 const ignorePatterns = pkgFiles
   .filter(pat => pat.startsWith('!'))
-// Remove the negation part and initial slash. Makes micromatch usage more intuitive.
-  .map(pat => pat.slice(1).replace(/^\//, ''));
+// Remove the negation part. Makes micromatch usage more intuitive.
+  .map(pat => pat.slice(1));
 
 const ignorePatternsSubtrees = ignorePatterns
 // Add **/* to ignore all files contained in the directories.