@lumy-pack/syncpoint 0.0.8 → 0.0.10
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.
- package/LICENSE +21 -0
- package/README.md +69 -38
- package/assets/schemas/config.schema.json +3 -9
- package/dist/cli.mjs +670 -200
- package/dist/commands/CreateTemplate.d.ts +1 -1
- package/dist/commands/Init.d.ts +1 -1
- package/dist/commands/Provision.d.ts +1 -1
- package/dist/commands/Restore.d.ts +1 -1
- package/dist/components/ProgressBar.d.ts +1 -1
- package/dist/components/StepRunner.d.ts +2 -2
- package/dist/components/Table.d.ts +1 -1
- package/dist/components/Viewer.d.ts +1 -1
- package/dist/errors.d.ts +16 -0
- package/dist/index.cjs +3 -9
- package/dist/index.mjs +3 -9
- package/dist/utils/command-registry.d.ts +1 -0
- package/dist/version.d.ts +1 -1
- package/package.json +4 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Command } from
|
|
1
|
+
import { Command } from 'commander';
|
|
2
2
|
export declare function registerCreateTemplateCommand(program: Command): void;
|
package/dist/commands/Init.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Command } from
|
|
1
|
+
import { Command } from 'commander';
|
|
2
2
|
export declare function registerInitCommand(program: Command): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Command } from
|
|
1
|
+
import { Command } from 'commander';
|
|
2
2
|
export declare function registerProvisionCommand(program: Command): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Command } from
|
|
1
|
+
import { Command } from 'commander';
|
|
2
2
|
export declare function registerRestoreCommand(program: Command): void;
|
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const SyncpointErrorCode: {
|
|
2
|
+
readonly CONFIG_NOT_FOUND: "CONFIG_NOT_FOUND";
|
|
3
|
+
readonly CONFIG_INVALID: "CONFIG_INVALID";
|
|
4
|
+
readonly BACKUP_FAILED: "BACKUP_FAILED";
|
|
5
|
+
readonly RESTORE_FAILED: "RESTORE_FAILED";
|
|
6
|
+
readonly TEMPLATE_NOT_FOUND: "TEMPLATE_NOT_FOUND";
|
|
7
|
+
readonly PROVISION_FAILED: "PROVISION_FAILED";
|
|
8
|
+
readonly MISSING_ARGUMENT: "MISSING_ARGUMENT";
|
|
9
|
+
readonly INVALID_ARGUMENT: "INVALID_ARGUMENT";
|
|
10
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
11
|
+
};
|
|
12
|
+
export type SyncpointErrorCode = (typeof SyncpointErrorCode)[keyof typeof SyncpointErrorCode];
|
|
13
|
+
/**
|
|
14
|
+
* Classify an error into a SyncpointErrorCode based on the error message.
|
|
15
|
+
*/
|
|
16
|
+
export declare function classifyError(err: unknown): SyncpointErrorCode;
|
package/dist/index.cjs
CHANGED
|
@@ -132,18 +132,12 @@ var config_schema_default = {
|
|
|
132
132
|
title: "Syncpoint Config",
|
|
133
133
|
description: "Configuration for syncpoint backup tool",
|
|
134
134
|
type: "object",
|
|
135
|
-
required: [
|
|
136
|
-
"backup"
|
|
137
|
-
],
|
|
135
|
+
required: ["backup"],
|
|
138
136
|
properties: {
|
|
139
137
|
backup: {
|
|
140
138
|
type: "object",
|
|
141
139
|
description: "Backup configuration",
|
|
142
|
-
required: [
|
|
143
|
-
"targets",
|
|
144
|
-
"exclude",
|
|
145
|
-
"filename"
|
|
146
|
-
],
|
|
140
|
+
required: ["targets", "exclude", "filename"],
|
|
147
141
|
properties: {
|
|
148
142
|
targets: {
|
|
149
143
|
type: "array",
|
|
@@ -652,7 +646,7 @@ function validateMetadata(data) {
|
|
|
652
646
|
}
|
|
653
647
|
|
|
654
648
|
// src/version.ts
|
|
655
|
-
var VERSION = "0.0.
|
|
649
|
+
var VERSION = "0.0.10";
|
|
656
650
|
|
|
657
651
|
// src/core/metadata.ts
|
|
658
652
|
var METADATA_VERSION = "1.0.0";
|
package/dist/index.mjs
CHANGED
|
@@ -82,18 +82,12 @@ var config_schema_default = {
|
|
|
82
82
|
title: "Syncpoint Config",
|
|
83
83
|
description: "Configuration for syncpoint backup tool",
|
|
84
84
|
type: "object",
|
|
85
|
-
required: [
|
|
86
|
-
"backup"
|
|
87
|
-
],
|
|
85
|
+
required: ["backup"],
|
|
88
86
|
properties: {
|
|
89
87
|
backup: {
|
|
90
88
|
type: "object",
|
|
91
89
|
description: "Backup configuration",
|
|
92
|
-
required: [
|
|
93
|
-
"targets",
|
|
94
|
-
"exclude",
|
|
95
|
-
"filename"
|
|
96
|
-
],
|
|
90
|
+
required: ["targets", "exclude", "filename"],
|
|
97
91
|
properties: {
|
|
98
92
|
targets: {
|
|
99
93
|
type: "array",
|
|
@@ -602,7 +596,7 @@ function validateMetadata(data) {
|
|
|
602
596
|
}
|
|
603
597
|
|
|
604
598
|
// src/version.ts
|
|
605
|
-
var VERSION = "0.0.
|
|
599
|
+
var VERSION = "0.0.10";
|
|
606
600
|
|
|
607
601
|
// src/core/metadata.ts
|
|
608
602
|
var METADATA_VERSION = "1.0.0";
|
package/dist/version.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumy-pack/syncpoint",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "CLI tool for project synchronization and scaffolding",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -31,9 +31,10 @@
|
|
|
31
31
|
"main": "dist/index.cjs",
|
|
32
32
|
"module": "dist/index.mjs",
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
|
-
"bin": "
|
|
34
|
+
"bin": "dist/cli.mjs",
|
|
35
35
|
"files": [
|
|
36
36
|
"dist",
|
|
37
|
+
"!dist/tsconfig.tsbuildinfo",
|
|
37
38
|
"assets",
|
|
38
39
|
"README.md"
|
|
39
40
|
],
|
|
@@ -69,6 +70,7 @@
|
|
|
69
70
|
"yaml": "^2.0.0"
|
|
70
71
|
},
|
|
71
72
|
"devDependencies": {
|
|
73
|
+
"@lumy-pack/shared": "0.0.1",
|
|
72
74
|
"@types/micromatch": "^4.0.9",
|
|
73
75
|
"@types/node": "^20.11.0",
|
|
74
76
|
"@types/react": "^18.0.0",
|