Skip to content

Commit bfe8a84

Browse files
committed
chore(ci): fix some settings
1 parent a6abfcd commit bfe8a84

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

nx.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
},
124124
"test:integration": {
125125
"inputs": ["testing", "^production"],
126+
"dependsOn": ["^build"],
126127
"cache": true,
127128
"outputs": ["{projectRoot}/coverage"]
128129
},

packages/integrations/storage-vectors-js/jest.config.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
/* eslint-disable */
2-
import { readFileSync } from 'fs'
3-
import { fileURLToPath } from 'url'
4-
import { dirname, join } from 'path'
5-
6-
const __filename = fileURLToPath(import.meta.url)
7-
const __dirname = dirname(__filename)
2+
const { readFileSync } = require('fs')
3+
const { join } = require('path')
84

95
// Reading the SWC compilation config for the spec files
106
const swcJestConfig = JSON.parse(readFileSync(join(__dirname, '.spec.swcrc'), 'utf-8'))
117

128
// Disable .swcrc look-up by SWC core because we're passing in swcJestConfig ourselves
139
swcJestConfig.swcrc = false
1410

15-
export default {
11+
module.exports = {
1612
displayName: 'storage-vectors-js',
1713
preset: '../../../jest.preset.js',
1814
testEnvironment: 'node',

packages/integrations/storage-vectors-js/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22
"name": "@supabase/storage-vectors-js",
33
"version": "0.0.0",
44
"private": true,
5-
"type": "module",
65
"main": "./dist/index.js",
7-
"module": "./dist/index.js",
86
"types": "./dist/index.d.ts",
97
"exports": {
108
"./package.json": "./package.json",
119
".": {
1210
"@supabase-js/source": "./src/index.ts",
1311
"types": "./dist/index.d.ts",
14-
"import": "./dist/index.js",
12+
"require": "./dist/index.js",
1513
"default": "./dist/index.js"
1614
}
1715
},

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"baseUrl": ".",
55
"rootDir": "src",
66
"outDir": "dist",
7-
"target": "ES6",
8-
"module": "ES2020",
7+
"target": "ES2017",
8+
"module": "CommonJS",
9+
"moduleResolution": "Node",
910
"lib": ["ES2022", "dom"],
1011
"tsBuildInfoFile": "dist/tsconfig.lib.tsbuildinfo",
1112
"emitDeclarationOnly": false,

0 commit comments

Comments
 (0)