From b26112a567f77b4165259f4a22d4fb04e285405c Mon Sep 17 00:00:00 2001 From: Mathieu Davy <“mathieu.davy@nearform.com”> Date: Thu, 5 Oct 2023 12:21:24 +0100 Subject: [PATCH] fix: allow independent execution of build and test scripts --- package.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5a37c7f3..05339c86 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,14 @@ ], "scripts": { "install": "cd src/danfojs-base && yarn && cd ../danfojs-browser && yarn && cd ../danfojs-node && yarn", - "build": "cd src/danfojs-node && yarn build:clean && cd ../danfojs-browser && yarn build:clean", - "test": "cd src/danfojs-base && yarn && cd ../danfojs-node && yarn && yarn test:clean && cd ../danfojs-browser && yarn && yarn test:clean" + "build": "yarn build:browser && yarn build:node", + "build:browser": "cd src/danfojs-browser && yarn build:clean", + "build:node": "cd src/danfojs-node && yarn build:clean", + "pretest": "cd src/danfojs-base && yarn", + "test": "yarn test:browser && yarn test:node", + "pretest:browser": "yarn pretest", + "test:browser": "cd src/danfojs-browser && yarn && yarn test:clean", + "pretest:node": "yarn pretest", + "test:node": "cd src/danfojs-node && yarn && yarn test:clean" } }