From d04b0117eea1cd4d6ffb0217c660b805e2682916 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f7b22825e..db32e434c 100644 --- a/package.json +++ b/package.json @@ -33,14 +33,14 @@ "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": "NODE_OPTIONS=\"--trace-warnings --unhandled-rejections=warn\" yarn run jest --detectOpenHandles --forceExit --runInBand", "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", "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": {