Skip to content

Commit a72b02f

Browse files
committed
chore(ci): fix deno
1 parent df2ffcc commit a72b02f

File tree

5 files changed

+67
-19
lines changed

5 files changed

+67
-19
lines changed

deno.lock

Lines changed: 21 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/supabase-js/package.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,41 @@
7373
"webpack-cli": "^4.9.2"
7474
},
7575
"jsdelivr": "dist/umd/supabase.js",
76-
"unpkg": "dist/umd/supabase.js"
76+
"unpkg": "dist/umd/supabase.js",
77+
"nx": {
78+
"targets": {
79+
"test:integration:browser": {
80+
"dependsOn": [
81+
{
82+
"projects": [
83+
"storage-vectors-js"
84+
],
85+
"target": "build"
86+
},
87+
{
88+
"projects": [
89+
"storage-js"
90+
],
91+
"target": "build"
92+
}
93+
]
94+
},
95+
"test:edge-functions": {
96+
"dependsOn": [
97+
{
98+
"projects": [
99+
"storage-vectors-js"
100+
],
101+
"target": "build"
102+
},
103+
{
104+
"projects": [
105+
"storage-js"
106+
],
107+
"target": "build"
108+
}
109+
]
110+
}
111+
}
112+
}
77113
}

packages/core/supabase-js/test/deno/setup-deps.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,20 @@ try {
4545
console.warn('Warning: Could not read existing deno.json, creating new one')
4646
}
4747

48-
// Path to storage-vectors-js (workspace package, not published to npm)
48+
// Paths to workspace packages (not published to npm or need local builds)
4949
const storageVectorsPath = path.join(monorepoRoot, 'packages/integrations/storage-vectors-js/dist/index.js')
5050
const storageVectorsUrl = `file://${storageVectorsPath}`
5151

52+
const storageJsPath = path.join(monorepoRoot, 'packages/core/storage-js/dist/module/index.js')
53+
const storageJsUrl = `file://${storageJsPath}`
54+
5255
// Update imports in deno.json
5356
denoJson.imports = {
5457
'@supabase/realtime-js': `npm:@supabase/realtime-js@${versions.realtime}`,
5558
'@supabase/functions-js': `npm:@supabase/functions-js@${versions.functions}`,
5659
'@supabase/postgrest-js': `npm:@supabase/postgrest-js@${versions.postgrest}`,
5760
'@supabase/auth-js': `npm:@supabase/auth-js@${versions.auth}`,
58-
'@supabase/storage-js':
59-
process.env.STORAGE_JS_ENTRY === 'main'
60-
? `npm:@supabase/storage-js@${versions.storage}/dist/main/index.js`
61-
: `npm:@supabase/storage-js@${versions.storage}/dist/module/index.js`,
61+
'@supabase/storage-js': storageJsUrl,
6262
'@supabase/storage-vectors-js': storageVectorsUrl,
6363
'@supabase/node-fetch': `npm:@supabase/node-fetch@${versions.node_fetch}`,
6464
}

packages/integrations/storage-vectors-js/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ TypeScript client library for Supabase S3 Vector Buckets - a bottomless database
55
## Installation
66

77
```bash
8-
npm install @supabase/storage-vectors-js
8+
npm install @supabase/storage-js
99
```
1010

1111
## Features
@@ -23,7 +23,7 @@ npm install @supabase/storage-vectors-js
2323
## Quick Start
2424

2525
```typescript
26-
import { StorageVectorsClient } from '@supabase/storage-vectors-js'
26+
import { StorageVectorsClient } from '@supabase/storage-js'
2727

2828
// Initialize client
2929
const client = new StorageVectorsClient('https://api.example.com', {
@@ -362,7 +362,7 @@ await index.queryVectors({
362362
Provide a custom fetch implementation:
363363
364364
```typescript
365-
import { StorageVectorsClient } from '@supabase/storage-vectors-js'
365+
import { StorageVectorsClient } from '@supabase/storage-js'
366366

367367
const client = new StorageVectorsClient(url, {
368368
fetch: customFetch,

packages/integrations/storage-vectors-js/src/lib/StorageVectorsClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface StorageVectorsClientOptions {
3232
*
3333
* @example
3434
* ```typescript
35-
* import { StorageVectorsClient } from '@supabase/storage-vectors-js'
35+
* import { StorageVectorsClient } from '@supabase/storage'
3636
*
3737
* const client = new StorageVectorsClient('https://api.example.com', {
3838
* headers: { 'Authorization': 'Bearer token' }

0 commit comments

Comments
 (0)