Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/ci-supabase-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,42 @@ jobs:
parallel-finished: true
fail-on-error: false
continue-on-error: true

module-resolution:
name: Module Resolution Tests
runs-on: ubuntu-latest
needs: build-package
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
filter: tree:0
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: packages-dist
path: ./packages/core

- name: Validate package exports (attw)
run: npx nx test:exports supabase-js

- name: Test ESM imports
run: npx nx test:esm supabase-js

- name: Test CJS requires
run: npx nx test:cjs supabase-js

deno-tests:
name: Deno Tests
runs-on: ubuntu-latest
Expand Down
11 changes: 3 additions & 8 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 2 additions & 25 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"{projectRoot}/webpack.config.[jt]s",
"{projectRoot}/vite.config.[jt]s",
"{projectRoot}/rollup.config.[jt]s",
"{projectRoot}/tsdown.config.[jt]s",
"{projectRoot}/tsconfig*.json",
"{projectRoot}/package.json",
"sharedGlobals"
Expand All @@ -74,30 +75,6 @@
"cache": true,
"outputs": ["{projectRoot}/dist"]
},
"build:main": {
"inputs": ["production", "^production", "buildConfig"],
"dependsOn": ["^build:main"],
"cache": true,
"outputs": ["{projectRoot}/dist/main", "{projectRoot}/dist/tsconfig.tsbuildinfo"]
},
"build:module": {
"inputs": ["production", "^production", "buildConfig"],
"dependsOn": ["^build:module"],
"cache": true,
"outputs": ["{projectRoot}/dist/module", "{projectRoot}/dist/tsconfig.module.tsbuildinfo"]
},
"build:umd": {
"inputs": ["production", "^production", "buildConfig"],
"dependsOn": ["^build:umd"],
"cache": true,
"outputs": ["{projectRoot}/dist/umd"]
},
"webpack:build": {
"inputs": ["production", "^production", "buildConfig"],
"dependsOn": ["^webpack:build"],
"cache": true,
"outputs": ["{projectRoot}/dist"]
},
"test": {
"inputs": ["testing", "^production"],
"dependsOn": ["^build"],
Expand All @@ -106,7 +83,7 @@
},
"test:types": {
"inputs": ["testing", "^production"],
"dependsOn": ["build:module"],
"dependsOn": ["build"],
"cache": true,
"outputs": []
},
Expand Down
Loading
Loading