Skip to content

Commit e5737c8

Browse files
committed
fix(repo): remove old build commands
1 parent 372f63e commit e5737c8

File tree

5 files changed

+4
-279
lines changed

5 files changed

+4
-279
lines changed

deno.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nx.json

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -75,30 +75,6 @@
7575
"cache": true,
7676
"outputs": ["{projectRoot}/dist"]
7777
},
78-
"build:main": {
79-
"inputs": ["production", "^production", "buildConfig"],
80-
"dependsOn": ["^build:main"],
81-
"cache": true,
82-
"outputs": ["{projectRoot}/dist/main", "{projectRoot}/dist/tsconfig.tsbuildinfo"]
83-
},
84-
"build:module": {
85-
"inputs": ["production", "^production", "buildConfig"],
86-
"dependsOn": ["^build:module"],
87-
"cache": true,
88-
"outputs": ["{projectRoot}/dist/module", "{projectRoot}/dist/tsconfig.module.tsbuildinfo"]
89-
},
90-
"build:umd": {
91-
"inputs": ["production", "^production", "buildConfig"],
92-
"dependsOn": ["^build:umd"],
93-
"cache": true,
94-
"outputs": ["{projectRoot}/dist/umd"]
95-
},
96-
"webpack:build": {
97-
"inputs": ["production", "^production", "buildConfig"],
98-
"dependsOn": ["^webpack:build"],
99-
"cache": true,
100-
"outputs": ["{projectRoot}/dist"]
101-
},
10278
"test": {
10379
"inputs": ["testing", "^production"],
10480
"dependsOn": ["^build"],

package-lock.json

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

packages/core/storage-js/README.md

Lines changed: 2 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,66 +1157,12 @@ This package is part of the [Supabase JavaScript monorepo](https://github.com/su
11571157
11581158
#### Build Scripts Overview
11591159
1160-
The storage-js package uses multiple build scripts to generate different module formats for various JavaScript environments:
1161-
1162-
| Script | Description | Output |
1163-
| -------------- | --------------------------- | --------------------------------------------------------------- |
1164-
| `build` | **Complete build pipeline** | Runs all build steps in sequence |
1165-
| `build:main` | **CommonJS build** | `dist/main/` - Node.js compatible CommonJS modules |
1166-
| `build:module` | **ES Modules build** | `dist/module/` - Modern ES6 modules with TypeScript definitions |
1167-
| `build:umd` | **UMD build** | `dist/umd/` - Universal Module Definition for browsers/CDN |
1168-
| `clean` | **Clean build artifacts** | Removes `dist/` and `docs/v2/` directories |
1169-
1170-
#### Running Builds
1171-
1172-
##### Complete Build (Recommended)
1173-
11741160
```bash
1175-
# From the monorepo root
1161+
# Build the package
11761162
npx nx build storage-js
1177-
```
1178-
1179-
This command executes the full build pipeline:
11801163

1181-
1. **Cleans** - Removes any existing build artifacts
1182-
2. **Formats** - Ensures consistent code formatting
1183-
3. **Builds CommonJS** - For Node.js environments (`dist/main/`)
1184-
4. **Builds ES Modules** - For modern bundlers (`dist/module/`)
1185-
5. **Builds UMD** - For browser script tags (`dist/umd/`)
1186-
1187-
##### Development Build with Watch Mode
1188-
1189-
```bash
1190-
# Continuously rebuild on file changes (from monorepo root)
1164+
# Watch mode for development
11911165
npx nx build storage-js --watch
1192-
```
1193-
1194-
##### Individual Build Targets
1195-
1196-
For specific build outputs during development:
1197-
1198-
```bash
1199-
# Build CommonJS only (Node.js)
1200-
npx nx build:main storage-js
1201-
1202-
# Build ES Modules only (Modern bundlers)
1203-
npx nx build:module storage-js
1204-
1205-
# Build UMD only (Browser/CDN)
1206-
npx nx build:umd storage-js
1207-
```
1208-
1209-
##### Other Useful Commands
1210-
1211-
```bash
1212-
# Clean build artifacts
1213-
npx nx clean storage-js
1214-
1215-
# Format code
1216-
npx nx format storage-js
1217-
1218-
# Type checking
1219-
npx nx typecheck storage-js
12201166

12211167
# Generate documentation
12221168
npx nx docs storage-js

packages/core/supabase-js/test/integration.browser.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ beforeAll(async () => {
9393
await new Deno.Command('supabase', { args: ['start'], stderr }).output()
9494
await new Deno.Command('npm', { args: ['install'], stderr }).output()
9595
await new Deno.Command('npm', {
96-
args: ['run', 'build:umd', '--', '--mode', 'production'],
96+
args: ['run', 'build'],
9797
stderr,
9898
}).output()
9999

0 commit comments

Comments
 (0)