From ef19403259e91b9fd27109d3c56cae5f84679167 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Sat, 23 Nov 2019 21:55:10 +0100 Subject: [PATCH] fix(publish): Do not publish tests --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e8d3fbbb..60825ce0 100644 --- a/package.json +++ b/package.json @@ -76,8 +76,8 @@ }, "scripts": { "build": "yarn build:js && yarn build:es", - "build:js": "cross-env BABEL_ENV=production BABEL_OUTPUT=cjs babel src --out-dir lib/js --ignore __tests__ --copy-files", - "build:es": "cross-env BABEL_ENV=production BABEL_OUTPUT=esm babel src --out-dir lib/es --ignore __tests__ --copy-files", + "build:js": "cross-env BABEL_ENV=production BABEL_OUTPUT=cjs babel src --out-dir lib/js --ignore **/__tests__,**/__mocks__", + "build:es": "cross-env BABEL_ENV=production BABEL_OUTPUT=esm babel src --out-dir lib/es --ignore **/__tests__,**/__mocks__", "build:storybook": "build-storybook -o .docs", "lint": "spire lint", "prepublishOnly": "yarn build",