From 86b5e96ea979c5aeb61c9ae7042e022891d05556 Mon Sep 17 00:00:00 2001 From: Rodrigo Gomez Palacio Date: Wed, 10 Jul 2024 14:04:27 -0500 Subject: [PATCH] Update yarn scripts Motivation: better scripts to bring in line with master --- package.json | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index f7b22825e..6660eabf4 100644 --- a/package.json +++ b/package.json @@ -33,14 +33,12 @@ "build:dev": "ENV=development yarn transpile:sources && ENV=development yarn bundle-sw && ENV=development yarn bundle-sdk && ENV=development yarn bundle-page-sdk-es6 && ENV=development build/scripts/publish.sh", "build:staging": "ENV=staging yarn transpile:sources && ENV=staging yarn bundle-sw && ENV=staging yarn bundle-sdk && ENV=staging yarn bundle-page-sdk-es6 && ENV=staging build/scripts/publish.sh", "build:prod": "ENV=production yarn transpile:sources && ENV=production yarn bundle-sw && ENV=production yarn bundle-sdk && ENV=production yarn bundle-page-sdk-es6 && bundlesize && ENV=production build/scripts/publish.sh", - "test": "ENV=development yarn transpile:tests && yarn run ava --verbose --color --watch", - "test:noWatch": "ENV=development yarn transpile:tests && ava --verbose --color --watch=false", - "test:CI": "ENV=development yarn transpile:tests && ava --config ava-ci-config.js --verbose --color --watch=false", + "test": "NODE_OPTIONS=\"--trace-warnings --unhandled-rejections=warn\" yarn run jest --detectOpenHandles --forceExit --runInBand", "publish": "yarn clean && yarn build:prod && yarn", - "build:dev-dev": "./build/scripts/build.sh -f development -t development", + "build:dev-dev": "./build/scripts/build.sh -f development -t development -a localhost", "build:dev-prod": "./build/scripts/build.sh -f development -t production", "build:dev-stag": "./build/scripts/build.sh -f development -t staging", - "lint": "eslint src --ext .js,.jsx,.ts,.tsx; prettier --check src test __test__", + "lint": "eslint src --ext .js,.jsx,.ts,.tsx; yarn prettylint 'src/**/*' 'test/**/*' '__test__/**/*' --no-editorconfig", "jest": "jest --coverage" }, "config": {