Skip to content

Commit 68ce107

Browse files
committed
chore(repo): correct references
1 parent 7dd3815 commit 68ce107

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

packages/core/storage-js/src/StorageClient.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import StorageFileApi from './packages/StorageFileApi'
22
import StorageBucketApi from './packages/StorageBucketApi'
33
import { Fetch } from './lib/fetch'
4+
import { StorageVectorsClient } from '@supabase/storage-vectors-js'
45

56
export interface StorageClientOptions {
67
useNewHostname?: boolean
@@ -14,6 +15,7 @@ export class StorageClient extends StorageBucketApi {
1415
opts?: StorageClientOptions
1516
) {
1617
super(url, headers, fetch, opts)
18+
console.log(new StorageVectorsClient('https://api.example.com'))
1719
}
1820

1921
/**
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"extends": "../../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"module": "ES2020",
5+
"outDir": "./dist/main",
6+
"rootDir": "src",
7+
"sourceMap": true,
8+
"target": "ES6",
9+
"emitDeclarationOnly": false,
10+
11+
"stripInternal": true,
12+
"allowSyntheticDefaultImports": true,
13+
"esModuleInterop": true
14+
},
15+
"include": ["src/**/*.ts"],
16+
"exclude": ["src/**/*.spec.ts", "src/**/*.test.ts"],
17+
"references": [
18+
{
19+
"path": "../../integrations/storage-vectors-js/tsconfig.lib.json"
20+
}
21+
]
22+
}

packages/core/storage-js/webpack.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ module.exports = {
2020
transpileOnly: true,
2121
},
2222
},
23+
{
24+
test: /\.m?js$/,
25+
resolve: {
26+
fullySpecified: false,
27+
},
28+
},
2329
],
2430
},
2531
resolve: {

packages/integrations/storage-vectors-js/tsconfig.lib.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
"rootDir": "src",
66
"outDir": "dist",
77
"target": "ES6",
8+
"module": "ES2020",
89
"lib": ["ES2022", "dom"],
910
"tsBuildInfoFile": "dist/tsconfig.lib.tsbuildinfo",
1011
"emitDeclarationOnly": false,
1112
"forceConsistentCasingInFileNames": true,
1213
"importHelpers": false,
13-
"moduleResolution": "Node",
1414
"esModuleInterop": true,
1515
"strict": true,
1616
"types": ["node"]
1717
},
1818
"include": ["src/**/*.ts"],
1919
"references": [],
20-
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
20+
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts", "src/**/__tests__/**/*"]
2121
}

0 commit comments

Comments
 (0)