Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tricky-eagles-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'powersync': patch
---

Reduce NPM dependency size
6 changes: 3 additions & 3 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"@powersync/cli-plugin-config-edit": "workspace:*",
"@powersync/cli-plugin-docker": "workspace:*",
"@powersync/cli-schemas": "workspace:*",
"@powersync/management-client": "^0.0.4",
"@powersync/management-types": "^0.0.3",
"@powersync/service-sync-rules": "^0.32.0",
"@powersync/management-client": "^0.0.6",
"@powersync/management-types": "^0.0.5",
"@powersync/service-sync-rules": "^0.33.0",
"@powersync/service-types": "^0.15.0",
"bson": "^7.2.0",
"fastify": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion cli/src/commands/generate/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class GenerateSchema extends SharedInstanceCommand {

async getCloudSchema(project: CloudProject): Promise<routes.GetSchemaResponse> {
const { linked } = project;
const client = await createCloudClient();
const client = createCloudClient();
return client.getInstanceSchema({
app_id: linked.project_id,
id: linked.instance_id,
Expand Down
5 changes: 3 additions & 2 deletions cli/src/commands/pull/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import {
getDefaultOrgId,
SERVICE_FILENAME,
ServiceType,
SYNC_FILENAME
SYNC_FILENAME,
YAML_SYNC_RULES_SCHEMA
} from '@powersync/cli-core';
import { ServiceCloudConfig } from '@powersync/cli-schemas';
import { existsSync, mkdirSync, writeFileSync } from 'node:fs';
Expand Down Expand Up @@ -145,7 +146,7 @@ export default class PullInstance extends CloudInstanceCommand {
if (typeof fetched.syncRules === 'string') {
const syncOutputName = !overwrite && syncExists ? SYNC_FETCHED_FILENAME : SYNC_FILENAME;
const syncOutputPath = join(projectDir, syncOutputName);
writeFileSync(syncOutputPath, fetched.syncRules, 'utf8');
writeFileSync(syncOutputPath, YAML_SYNC_RULES_SCHEMA + '\n' + fetched.syncRules, 'utf8');
this.log(`Wrote ${ux.colorize('blue', syncOutputName)} with sync config from the cloud.`);
} else if (!fetched.syncRules && !syncExists) {
// If there is no sync config in the cloud and no existing sync config locally, we should still create an empty sync-config.yaml with the correct header and schema reference
Expand Down
4 changes: 2 additions & 2 deletions packages/cli-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"@journeyapps-labs/micro-errors": "^1.0.1",
"yaml": "^2",
"@journeyapps-labs/common-sdk": "1.0.2",
"@powersync/management-client": "^0.0.4",
"@powersync/management-types": "^0.0.3",
"@powersync/management-client": "^0.0.6",
"@powersync/management-types": "^0.0.5",
"@powersync/service-client": "^0.0.3",
"keychain": "^1.5.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/schemas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@
"lint": "eslint ."
},
"dependencies": {
"@powersync/management-types": "^0.0.3",
"@powersync/management-types": "^0.0.5",
"@powersync/service-schema": "^1.20.1",
"@powersync/service-types": "^0.15.0",
"ajv": "^8.12.0",
"better-ajv-errors": "^2.0.3",
"ts-codec": "^1.3.0"
},
"devDependencies": {
"@powersync/service-sync-rules": "^0.32.0",
"@powersync/service-sync-rules": "^0.33.0",
"@types/node": "^22",
"shx": "^0.3.3",
"tsx": "^4",
Expand Down
Loading
Loading