From ed74a9b3f124db8610226d66208999d8c16dcf7e Mon Sep 17 00:00:00 2001 From: Dan Radenkovic Date: Wed, 3 Dec 2025 15:13:02 +0100 Subject: [PATCH 1/4] add presentational details --- README.md | 16 ++++++++++++++++ packages/nylas-connect/package.json | 6 +++++- packages/react/package.json | 6 +++++- 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5ded482..92ad657 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,22 @@ Modern, secure OAuth connection library for Nylas APIs. npm install @nylas/connect ``` +### [`@nylas/react`](./packages/react/) + +React components and hooks for Nylas API integration. + +- **TypeScript-first** with full type safety +- Works with React 18 and 19 +- Pre-built UI components for email, calendar, and contacts +- OAuth connection hooks and utilities +- Modular exports for tree-shaking + +[**📖 Documentation →**](./packages/react/README.md) + +```bash +npm install @nylas/react +``` + --- ## 🛠 Development diff --git a/packages/nylas-connect/package.json b/packages/nylas-connect/package.json index bba1756..3299a4f 100644 --- a/packages/nylas-connect/package.json +++ b/packages/nylas-connect/package.json @@ -41,8 +41,12 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/nylas/nylas.git" + "url": "git+https://github.com/nylas/javascript.git" }, + "bugs": { + "url": "https://github.com/nylas/javascript/issues" + }, + "homepage": "https://github.com/nylas/javascript#readme", "author": "Nylas Inc.", "license": "MIT", "publishConfig": { diff --git a/packages/react/package.json b/packages/react/package.json index 06f6e83..97e7f58 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -20,8 +20,12 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/nylas/nylas.git" + "url": "git+https://github.com/nylas/javascript.git" }, + "bugs": { + "url": "https://github.com/nylas/javascript/issues" + }, + "homepage": "https://github.com/nylas/javascript#readme", "keywords": [ "nylas", "react", From 67d92b7be5b26d4ffae60df43b5ef4202788fda0 Mon Sep 17 00:00:00 2001 From: Dan Radenkovic Date: Wed, 3 Dec 2025 15:31:49 +0100 Subject: [PATCH 2/4] cleaner actions --- .github/workflows/pr-tests.yml | 59 +++++++++++++++++++++++++++------- .github/workflows/release.yml | 8 +++-- .github/workflows/snapshot.yml | 6 ++-- 3 files changed, 57 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index f42ba76..d546b6e 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -4,38 +4,37 @@ on: pull_request: branches: [main] types: [opened, synchronize, reopened] - # Also run on pushes to main for consistency - push: - branches: [main] # Cancel in-progress runs for the same PR concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + NODE_VERSION: ${{ vars.NODE_VERSION }} + PNPM_VERSION: ${{ vars.PNPM_VERSION }} + jobs: - test: - name: Test Suite + # Code quality checks (fast, no build required) + quality: + name: Code Quality runs-on: ubuntu-latest - timeout-minutes: 15 - + timeout-minutes: 10 steps: - name: Checkout code uses: actions/checkout@v4 with: - # Fetch full history for Nx affected commands (optional optimization) fetch-depth: 0 - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: ${{ vars.NODE_VERSION }} - registry-url: "https://registry.npmjs.org" + node-version: ${{ env.NODE_VERSION }} - name: Setup pnpm uses: pnpm/action-setup@v4 with: - version: "10.6.3" + version: ${{ env.PNPM_VERSION }} run_install: false - name: Get pnpm store directory @@ -63,6 +62,44 @@ jobs: - name: Check formatting run: pnpm format:check + # Build and test (slower, runs in parallel with quality) + test: + name: Build & Test + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: ${{ env.PNPM_VERSION }} + run_install: false + + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - name: Setup pnpm cache + uses: actions/cache@v4 + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + + - name: Install dependencies + run: pnpm install --frozen-lockfile + - name: Build packages run: pnpm build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 21ab177..02a0f8f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,10 @@ on: # Prevent multiple releases from running at the same time concurrency: ${{ github.workflow }}-${{ github.ref }} +env: + NODE_VERSION: ${{ vars.NODE_VERSION }} + PNPM_VERSION: ${{ vars.PNPM_VERSION }} + jobs: release: name: Release @@ -31,13 +35,13 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: ${{ vars.NODE_VERSION }} + node-version: ${{ env.NODE_VERSION }} registry-url: "https://registry.npmjs.org" - name: Setup pnpm uses: pnpm/action-setup@v4 with: - version: "10.6.3" + version: ${{ env.PNPM_VERSION }} run_install: false - name: Get pnpm store directory diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 835097b..60d105c 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -32,8 +32,8 @@ on: run-name: "Publishing ${{ inputs.snapshot_tag }} for ${{ inputs.packages }} to ${{ inputs.environment }} by @${{ github.actor }}" env: - NODE_VERSION: 22.12.0 - PNPM_VERSION: 10.7.1 + NODE_VERSION: ${{ vars.NODE_VERSION }} + PNPM_VERSION: ${{ vars.PNPM_VERSION }} IS_CI: true permissions: @@ -52,7 +52,7 @@ jobs: fetch-depth: 0 # Setup Node.js and pnpm - - uses: pnpm/action-setup@v3 + - uses: pnpm/action-setup@v4 with: version: ${{ env.PNPM_VERSION }} run_install: false From aafd7fa462adebf0bfba289667c72cd34bc3bcad Mon Sep 17 00:00:00 2001 From: Dan Radenkovic Date: Wed, 3 Dec 2025 15:35:51 +0100 Subject: [PATCH 3/4] centralize pnpm version --- .github/workflows/pr-tests.yml | 3 --- .github/workflows/release.yml | 2 -- .github/workflows/snapshot.yml | 2 -- package.json | 2 +- 4 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index d546b6e..fc33e05 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -12,7 +12,6 @@ concurrency: env: NODE_VERSION: ${{ vars.NODE_VERSION }} - PNPM_VERSION: ${{ vars.PNPM_VERSION }} jobs: # Code quality checks (fast, no build required) @@ -34,7 +33,6 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v4 with: - version: ${{ env.PNPM_VERSION }} run_install: false - name: Get pnpm store directory @@ -81,7 +79,6 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v4 with: - version: ${{ env.PNPM_VERSION }} run_install: false - name: Get pnpm store directory diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 02a0f8f..d93b8f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,6 @@ concurrency: ${{ github.workflow }}-${{ github.ref }} env: NODE_VERSION: ${{ vars.NODE_VERSION }} - PNPM_VERSION: ${{ vars.PNPM_VERSION }} jobs: release: @@ -41,7 +40,6 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v4 with: - version: ${{ env.PNPM_VERSION }} run_install: false - name: Get pnpm store directory diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 60d105c..fa7cca7 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -33,7 +33,6 @@ run-name: "Publishing ${{ inputs.snapshot_tag }} for ${{ inputs.packages }} to $ env: NODE_VERSION: ${{ vars.NODE_VERSION }} - PNPM_VERSION: ${{ vars.PNPM_VERSION }} IS_CI: true permissions: @@ -54,7 +53,6 @@ jobs: # Setup Node.js and pnpm - uses: pnpm/action-setup@v4 with: - version: ${{ env.PNPM_VERSION }} run_install: false - name: Install Node.js diff --git a/package.json b/package.json index 8967230..2b975b0 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "node": ">=22.0.0", "pnpm": ">=9.0.0" }, - "packageManager": "pnpm@10.6.3", + "packageManager": "pnpm@10.7.1", "scripts": { "build": "nx run-many -t build", "test": "nx run-many -t test", From fff4f1dcf6b816bf34b810f5df7a86b031cbdbc0 Mon Sep 17 00:00:00 2001 From: Dan Radenkovic Date: Wed, 3 Dec 2025 15:46:57 +0100 Subject: [PATCH 4/4] fix build order --- nx.json | 1 + 1 file changed, 1 insertion(+) diff --git a/nx.json b/nx.json index 44aef0a..e7cf4ac 100644 --- a/nx.json +++ b/nx.json @@ -3,6 +3,7 @@ "targetDefaults": { "build": { "cache": true, + "dependsOn": ["^build"], "inputs": ["default", "^default"], "outputs": ["{projectRoot}/dist"] },