From 8bb059d0f03a79dbef5c204c794d579324cfedd3 Mon Sep 17 00:00:00 2001 From: Josep M Sobrepere Date: Fri, 17 Jul 2020 01:42:53 +0200 Subject: [PATCH] ci(bundlesize): Attempt to fix bundlesize build --- .travis.yml | 2 +- package.json | 1 + packages/core/package.json | 5 +++-- packages/dom/package.json | 5 +++-- packages/utils/package.json | 5 +++-- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4d650ef..890388e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,4 +2,4 @@ language: node_js node_js: node cache: yarn script: - - yarn test:ci + - yarn test:ci && yarn build:ci diff --git a/package.json b/package.json index 1b64791..12529b7 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "packages/*" ], "scripts": { + "build:ci": "wsrun build:ci", "build": "wsrun build", "lint": "wsrun lint", "test:ci": "cross-env CI=true wsrun test:ci" diff --git a/packages/core/package.json b/packages/core/package.json index d97a4cd..3b64b7e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -2,7 +2,7 @@ "version": "0.1.0-alpha.0", "bundlesize": [ { - "path": "./dist/react-rxjs/core.cjs.production.min.js", + "path": "./dist/core.cjs.production.min.js", "maxSize": "5 kB", "compression": "none" } @@ -21,9 +21,10 @@ "scripts": { "start": "tsdx watch", "build": "tsdx build", + "build:ci": "yarn build && bundlesize", "coverage": "codecov", "test": "tsdx test --passWithNoTests --coverage", - "test:ci": "npm run test && npm run coverage && bundlesize", + "test:ci": "yarn test && yarn coverage", "lint": "tsdx lint", "prepare": "tsdx build" }, diff --git a/packages/dom/package.json b/packages/dom/package.json index d176f72..11065ca 100644 --- a/packages/dom/package.json +++ b/packages/dom/package.json @@ -2,7 +2,7 @@ "version": "0.1.0-alpha.0", "bundlesize": [ { - "path": "./dist/react-rxjs/dom.cjs.production.min.js", + "path": "./dist/dom.cjs.production.min.js", "maxSize": "1 kB", "compression": "none" } @@ -21,9 +21,10 @@ "scripts": { "start": "tsdx watch", "build": "tsdx build", + "build:ci": "yarn build && bundlesize", "coverage": "codecov", "test": "tsdx test --passWithNoTests --coverage", - "test:ci": "npm run test && npm run coverage && bundlesize", + "test:ci": "yarn test && yarn coverage", "lint": "tsdx lint", "prepare": "tsdx build" }, diff --git a/packages/utils/package.json b/packages/utils/package.json index c9c969d..a5b950c 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -2,7 +2,7 @@ "version": "0.1.0-alpha.0", "bundlesize": [ { - "path": "./dist/react-rxjs/utils.cjs.production.min.js", + "path": "./dist/utils.cjs.production.min.js", "maxSize": "5 kB", "compression": "none" } @@ -21,9 +21,10 @@ "scripts": { "start": "tsdx watch", "build": "tsdx build", + "build:ci": "yarn build && bundlesize", "coverage": "codecov", "test": "tsdx test --passWithNoTests --coverage", - "test:ci": "npm run test && npm run coverage && bundlesize", + "test:ci": "yarn test && yarn coverage", "lint": "tsdx lint", "prepare": "tsdx build" },