Fix ignoring mock artifacts on release

pull/2078/head
Nicolás Venturo 5 years ago
parent 5f357d85de
commit e7bded655b
  1. 4
      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. Makes micromatch usage more intuitive.
.map(pat => pat.slice(1));
// Remove the negation part and initial slash. Makes micromatch usage more intuitive.
.map(pat => pat.slice(1).replace(/^\//, ''));
const ignorePatternsSubtrees = ignorePatterns
// Add **/* to ignore all files contained in the directories.

Loading…
Cancel
Save