From 220ccad2820358e2d155a04d5c5df5bc2f163df5 Mon Sep 17 00:00:00 2001 From: Gabriel Dutra Date: Sun, 26 Apr 2020 10:52:47 -0300 Subject: [PATCH] Test preinstall script --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b242d80102..0e8527db8c 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "start": "webpack-dev-server", "bundle": "bin/bundle-extensions", "clean": "rm -rf ./client/dist/", - "build": "npm run clean && NODE_ENV=production webpack", + "build:viz": "(cd viz-lib && npm run build:babel)", + "build": "npm run clean && npm run build:viz && NODE_ENV=production webpack", "build:old-node-version": "npm run clean && NODE_ENV=production node --max-old-space-size=4096 node_modules/.bin/webpack", "watch": "webpack --watch --progress --colors -d", "analyze": "npm run clean && BUNDLE_ANALYZER=on webpack", @@ -20,7 +21,8 @@ "test": "TZ=Africa/Khartoum jest", "test:watch": "jest --watch", "cypress:install": "npm install --no-save cypress@~4.1.0 @percy/cypress@^2.2.0 atob@2.1.2", - "cypress": "node client/cypress/cypress.js" + "cypress": "node client/cypress/cypress.js", + "preinstall": "(cd viz-lib && npm ci && npm run build:babel)" }, "repository": { "type": "git",