Skip to content

Commit 9d97bb5

Browse files
committed
chore(ci): update deno setup
1 parent 267e61e commit 9d97bb5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const path = require('node:path')
66
// Get the directory of the script
77
const scriptDir = __dirname
88
const projectRoot = path.dirname(path.dirname(scriptDir))
9+
const monorepoRoot = path.dirname(path.dirname(path.dirname(path.dirname(scriptDir))))
910

1011
// Read package.json from main project
1112
const packageJsonPath = path.join(projectRoot, 'package.json')
@@ -44,6 +45,10 @@ try {
4445
console.warn('Warning: Could not read existing deno.json, creating new one')
4546
}
4647

48+
// Path to storage-vectors-js (workspace package, not published to npm)
49+
const storageVectorsPath = path.join(monorepoRoot, 'packages/integrations/storage-vectors-js/dist/index.js')
50+
const storageVectorsUrl = `file://${storageVectorsPath}`
51+
4752
// Update imports in deno.json
4853
denoJson.imports = {
4954
'@supabase/realtime-js': `npm:@supabase/realtime-js@${versions.realtime}`,
@@ -54,6 +59,7 @@ denoJson.imports = {
5459
process.env.STORAGE_JS_ENTRY === 'main'
5560
? `npm:@supabase/storage-js@${versions.storage}/dist/main/index.js`
5661
: `npm:@supabase/storage-js@${versions.storage}/dist/module/index.js`,
62+
'@supabase/storage-vectors-js': storageVectorsUrl,
5763
'@supabase/node-fetch': `npm:@supabase/node-fetch@${versions.node_fetch}`,
5864
}
5965

0 commit comments

Comments
 (0)