diff --git a/.github/workflows/pr-status-checks.yml b/.github/workflows/pr-status-checks.yml new file mode 100644 index 000000000..deafb6fe8 --- /dev/null +++ b/.github/workflows/pr-status-checks.yml @@ -0,0 +1,32 @@ +name: PR Status Checks + +on: + # Allows it to be manually triggered, used primarily for debugging + workflow_dispatch: + pull_request: + branches: + - v2-web3-onboard-develop + +jobs: + checks: + name: "Checks" + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Nodejs and yarn + uses: actions/setup-node@v2 + with: + node-version: "16" + cache: yarn + + - name: Install dependencies + run: yarn + + - name: Check that it builds + run: yarn build + + - name: Check formatting and types + run: yarn check diff --git a/package.json b/package.json index c93ada7c7..bb14e7f2b 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,10 @@ "name": "web3-onboard-monorepo", "version": "2.9.0", "private": true, - "workspaces": [ - "./packages/*" - ], + "workspaces": { + "packages": ["./packages/*"], + "nohoist": ["**/react", "**/react-dom", "**/csstype"] + }, "description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -51,7 +52,7 @@ "format": "prettier --write 'packages/**/*.ts'", "dev": "yarn wsrun dev", "build": "yarn wsrun --serial build", - "type-check": "yarn wsrun type-check" + "check": "yarn wsrun type-check" }, "devDependencies": { "prettier": "^2.4.1",