File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
packages/core/supabase-js/test/deno Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ const path = require('node:path')
66// Get the directory of the script
77const scriptDir = __dirname
88const 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
1112const packageJsonPath = path . join ( projectRoot , 'package.json' )
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
4853denoJson . 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
You can’t perform that action at this time.
0 commit comments