Skip to content

Commit d70d3e0

Browse files
authored
fix(repo): cleanup package-lock.json and bun.lock (#1799)
1 parent 88f9aa8 commit d70d3e0

File tree

9 files changed

+54
-93
lines changed

9 files changed

+54
-93
lines changed

package-lock.json

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

packages/core/postgrest-js/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"build": "npm run clean && npm run build:cjs && npm run build:esm",
3838
"build:cjs": "tsc -p tsconfig.json",
3939
"build:esm": "cpy wrapper.mjs dist/esm/",
40+
"build:module": "npm run build:cjs",
4041
"docs": "typedoc src/index.ts --out docs/v2",
4142
"docs:json": "typedoc --json docs/v2/spec.json --excludeExternals src/index.ts",
4243
"test:ci:postgrest": "npm run db:clean && npm run db:run && npm run test:run && npm run db:clean && npm run test:smoke",

packages/core/postgrest-js/wrapper.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import index from '../cjs/index.js'
1+
import * as index from '../cjs/index.js'
22
const {
33
PostgrestClient,
44
PostgrestQueryBuilder,
55
PostgrestFilterBuilder,
66
PostgrestTransformBuilder,
77
PostgrestBuilder,
88
PostgrestError,
9-
} = index
9+
} = index.default || index
1010

1111
export {
1212
PostgrestBuilder,

packages/core/supabase-js/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ docs/v2
109109
# Test package-lock files (use local tarball, checksums change with builds)
110110
test/*/package-lock.json
111111
test/integration/*/package-lock.json
112+
test/integration/*/bun.lock
112113

113114
.cursor/
114115

packages/core/supabase-js/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@
3737
"test:coverage": "jest --runInBand --coverage --testPathIgnorePatterns=\"test/integration|test/deno\"",
3838
"test:integration": "jest --runInBand --detectOpenHandles test/integration.test.ts",
3939
"test:integration:browser": "deno test --allow-all test/integration.browser.test.ts",
40-
"test:edge-functions": "deno test --allow-all --no-check --unstable-sloppy-imports --config test/deno/deno.json test/deno/edge-functions-integration.test.ts",
40+
"test:edge-functions": "cd test/deno && npm run test:edge-functions",
4141
"test:watch": "jest --watch --verbose false --silent false",
4242
"test:node:playwright": "cd test/integration/node-browser && npm install && cp ../../../dist/umd/supabase.js . && npm run test",
4343
"test:bun": "cd test/integration/bun && bun install && bun test",
4444
"test:types": "tsd --files test/types/*.test-d.ts && jsr publish --dry-run --allow-dirty",
4545
"docs": "typedoc --entryPoints src/index.ts --out docs/v2",
4646
"docs:json": "typedoc --entryPoints src/index.ts --json docs/v2/spec.json --excludeExternals",
4747
"serve:coverage": "npx nx test:coverage supabase-js && serve test/coverage",
48-
"update:test-deps": "npx nx build supabase-js && npm pack && cp supabase-supabase-js-*.tgz test/integration/expo/supabase-supabase-js-0.0.0-automated.tgz && cp supabase-supabase-js-*.tgz test/integration/next/supabase-supabase-js-0.0.0-automated.tgz && cp supabase-supabase-js-*.tgz test/deno/supabase-supabase-js-0.0.0-automated.tgz && cp supabase-supabase-js-*.tgz test/integration/bun/supabase-supabase-js-0.0.0-automated.tgz && cd test/integration/expo && npm install && cd ../next && npm install --legacy-peer-deps && cd ../../deno && npm install && cd ../integration/bun && bun install",
49-
"update:test-deps:expo": "npx nx build supabase-js && npm pack && cp supabase-supabase-js-*.tgz test/integration/expo/supabase-supabase-js-0.0.0-automated.tgz && cd test/integration/expo && npm install",
50-
"update:test-deps:next": "npx nx build supabase-js && npm pack && cp supabase-supabase-js-*.tgz test/integration/next/supabase-supabase-js-0.0.0-automated.tgz && cd test/integration/next && npm install --legacy-peer-deps",
51-
"update:test-deps:deno": "npx nx build supabase-js && npm pack && cp supabase-supabase-js-*.tgz test/deno/supabase-supabase-js-0.0.0-automated.tgz && cd test/deno && npm install",
52-
"update:test-deps:bun": "npx nx build supabase-js && npm pack && cp supabase-supabase-js-*.tgz test/integration/bun/supabase-supabase-js-0.0.0-automated.tgz && cd test/integration/bun && bun install"
48+
"update:test-deps": "npm run update:test-deps:expo && npm run update:test-deps:next && npm run update:test-deps:deno && npm run update:test-deps:bun",
49+
"update:test-deps:expo": "cd test/integration/expo && npm install",
50+
"update:test-deps:next": "cd test/integration/next && npm install --legacy-peer-deps",
51+
"update:test-deps:deno": "cd test/deno && npm install",
52+
"update:test-deps:bun": "cd test/integration/bun && bun install"
5353
},
5454
"dependencies": {
5555
"@supabase/auth-js": "*",

packages/core/supabase-js/test/deno/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "test-deno",
33
"private": true,
44
"scripts": {
5-
"test": "npm run setup-deps && deno test --allow-all --no-check --unstable-sloppy-imports integration.test.ts",
6-
"test:edge-functions": "npm run setup-deps && deno test --allow-all --no-check --unstable-sloppy-imports edge-functions-integration.test.ts",
5+
"test": "npm run setup-deps && node run-deno-test.js integration.test.ts",
6+
"test:edge-functions": "npm run setup-deps && node run-deno-test.js edge-functions-integration.test.ts",
77
"setup-deps": "node setup-deps.js"
88
},
99
"dependencies": {
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/env node
2+
3+
const { execSync } = require('child_process');
4+
5+
// Get Deno version
6+
let denoVersion = '1.0.0'; // default fallback
7+
try {
8+
const versionOutput = execSync('deno --version', { encoding: 'utf-8' });
9+
const match = versionOutput.match(/deno (\d+)\.(\d+)\.(\d+)/);
10+
if (match) {
11+
denoVersion = `${match[1]}.${match[2]}.${match[3]}`;
12+
}
13+
} catch (error) {
14+
console.warn('Could not determine Deno version, assuming 1.x');
15+
}
16+
17+
const majorVersion = parseInt(denoVersion.split('.')[0]);
18+
19+
// Get test file from arguments
20+
const testFile = process.argv[2] || 'integration.test.ts';
21+
22+
// Base flags that work for both versions
23+
let flags = '--allow-all --no-check --unstable-sloppy-imports';
24+
25+
// Add version-specific flags
26+
if (majorVersion >= 2) {
27+
flags += ' --unstable-detect-cjs';
28+
console.log(`Running with Deno ${denoVersion} (v2+ detected, using --unstable-detect-cjs)`);
29+
} else {
30+
console.log(`Running with Deno ${denoVersion} (v1.x detected, skipping --unstable-detect-cjs)`);
31+
}
32+
33+
// Run the test
34+
const command = `deno test ${flags} ${testFile}`;
35+
console.log(`Executing: ${command}\n`);
36+
37+
try {
38+
execSync(command, { stdio: 'inherit' });
39+
} catch (error) {
40+
process.exit(error.status || 1);
41+
}

packages/core/supabase-js/test/integration/bun/bun.lock

Lines changed: 0 additions & 51 deletions
This file was deleted.

project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"port": 4873,
1010
"config": ".verdaccio/config.yml",
1111
"storage": "tmp/local-registry/storage",
12-
"clear": false
12+
"clear": true
1313
}
1414
},
1515
"populate-local-registry": {

0 commit comments

Comments
 (0)