@powersync/cli-core 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command, ux } from '@oclif/core';
|
|
2
|
-
import {
|
|
2
|
+
import { resolve } from 'node:path';
|
|
3
3
|
import { formatPowersyncServiceErrorDisplay, isPowersyncAuthServiceError } from '../utils/format-powersync-service-error-display.js';
|
|
4
4
|
/** Base command for operations that target a PowerSync project directory (e.g. link, init). */
|
|
5
5
|
export class PowerSyncCommand extends Command {
|
|
@@ -11,7 +11,7 @@ export class PowerSyncCommand extends Command {
|
|
|
11
11
|
static commandHelpGroup;
|
|
12
12
|
/** Resolves the project directory path from the --directory flag (relative to cwd). */
|
|
13
13
|
resolveProjectDir(flags) {
|
|
14
|
-
return
|
|
14
|
+
return resolve(process.cwd(), flags.directory);
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* Reports a styled error via this.error. Normalizes a catch-block error (any) to an Error
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PowerSyncCommand.js","sourceRoot":"","sources":["../../src/command-types/PowerSyncCommand.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"PowerSyncCommand.js","sourceRoot":"","sources":["../../src/command-types/PowerSyncCommand.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EACL,kCAAkC,EAClC,2BAA2B,EAC5B,MAAM,oDAAoD,CAAC;AAU5D,+FAA+F;AAC/F,MAAM,OAAgB,gBAAiB,SAAQ,OAAO;IACpD;;;;OAIG;IACH,MAAM,CAAC,gBAAgB,CAAoB;IAE3C,uFA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Y,EAAE,SAAS,EAAE,IAAI,IAAI,EAAE,IAAI,EAAE,YAAY,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;YAC3E,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,mBAAmB,IAAI,OAAO;YACvC,GAAG,CAAC,eAAe,EAAE,MAAM,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;SACjE,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powersync/cli-core",
|
|
3
3
|
"description": "Core types and base commands for PowerSync CLI and plugins (shared by CLI and plugin-docker).",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.1",
|
|
5
5
|
"license": "FSL-1.1-ALv2",
|
|
6
6
|
"author": "POWERSYNC",
|
|
7
7
|
"type": "module",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@powersync/service-client": "^0.0.6",
|
|
36
36
|
"keychain": "^1.5.0",
|
|
37
37
|
"yaml": "^2.8.3",
|
|
38
|
-
"@powersync/cli-schemas": "0.10.
|
|
38
|
+
"@powersync/cli-schemas": "0.10.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/keychain": "^1.4.4",
|