From 3a4e3533121765b87839f9ee8666582071f4e377 Mon Sep 17 00:00:00 2001 From: Jovi De Croock Date: Wed, 22 Apr 2020 00:58:46 +0200 Subject: [PATCH] remove the minified entries because of CI --- packages/core/scripts/remove-empty-imports.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/packages/core/scripts/remove-empty-imports.js b/packages/core/scripts/remove-empty-imports.js index 74c67c939b..38e1ce94b8 100644 --- a/packages/core/scripts/remove-empty-imports.js +++ b/packages/core/scripts/remove-empty-imports.js @@ -8,13 +8,6 @@ const nonMinified = [ `${process.cwd()}/dist/urql-core-internal.mjs`, ]; -const minified = [ - `${process.cwd()}/dist/urql-core.min.js`, - `${process.cwd()}/dist/urql-core.min.mjs`, - `${process.cwd()}/dist/urql-core-internal.min.js`, - `${process.cwd()}/dist/urql-core-internal.min.mjs`, -]; - const removeEmptyImports = (babel) => { const { types: t } = babel; @@ -43,8 +36,3 @@ nonMinified.forEach(loc => { const { code: newCode } = transform(fs.readFileSync(loc), { plugins: [removeEmptyImports], babelrc: false }); fs.writeFileSync(loc, newCode); }); - -minified.forEach(loc => { - const { code: newCode } = transform(fs.readFileSync(loc), { plugins: [removeEmptyImports], babelrc: false, minified: true }); - fs.writeFileSync(loc, newCode); -});