From 8e58cda8c39f92942337a23542e407f22f90c1c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Venturo?= Date: Wed, 5 Feb 2020 00:04:29 -0300 Subject: [PATCH] Revert "Fix ignoring mock artifacts on release" This reverts commit e7bded655b8c336b132968930fa60d339be8115b. --- scripts/prepare.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/prepare.js b/scripts/prepare.js index 6dbf4031c..2e69591f0 100644 --- a/scripts/prepare.js +++ b/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.