powersync 0.1.0
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/README.md +339 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +9 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +8 -0
- package/dist/commands/init.d.ts +7 -0
- package/dist/commands/init.js +49 -0
- package/dist/commands/instance/config.d.ts +6 -0
- package/dist/commands/instance/config.js +23 -0
- package/dist/commands/instance/create.d.ts +16 -0
- package/dist/commands/instance/create.js +163 -0
- package/dist/commands/instance/deploy.d.ts +15 -0
- package/dist/commands/instance/deploy.js +142 -0
- package/dist/commands/instance/destroy.d.ts +9 -0
- package/dist/commands/instance/destroy.js +42 -0
- package/dist/commands/instance/schema.d.ts +6 -0
- package/dist/commands/instance/schema.js +20 -0
- package/dist/commands/instance/set.d.ts +9 -0
- package/dist/commands/instance/set.js +31 -0
- package/dist/commands/instance/status.d.ts +6 -0
- package/dist/commands/instance/status.js +21 -0
- package/dist/commands/instance/stop.d.ts +9 -0
- package/dist/commands/instance/stop.js +42 -0
- package/dist/commands/instance/sync-rules/deploy.d.ts +10 -0
- package/dist/commands/instance/sync-rules/deploy.js +49 -0
- package/dist/commands/instance/sync-rules/generate-schema.d.ts +10 -0
- package/dist/commands/instance/sync-rules/generate-schema.js +55 -0
- package/dist/commands/instance/sync-rules/validate.d.ts +9 -0
- package/dist/commands/instance/sync-rules/validate.js +29 -0
- package/dist/commands/instances.d.ts +6 -0
- package/dist/commands/instances.js +20 -0
- package/dist/constants.d.ts +11 -0
- package/dist/constants.js +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/powersync-sdk/accounts/api.d.ts +717 -0
- package/dist/powersync-sdk/accounts/api.js +182 -0
- package/dist/powersync-sdk/accounts/client.d.ts +1096 -0
- package/dist/powersync-sdk/accounts/client.js +124 -0
- package/dist/powersync-sdk/accounts/codecs.d.ts +32 -0
- package/dist/powersync-sdk/accounts/codecs.js +93 -0
- package/dist/powersync-sdk/accounts/index.d.ts +4 -0
- package/dist/powersync-sdk/accounts/index.js +4 -0
- package/dist/powersync-sdk/accounts/models.d.ts +260 -0
- package/dist/powersync-sdk/accounts/models.js +96 -0
- package/dist/powersync-sdk/accounts/routes.d.ts +44 -0
- package/dist/powersync-sdk/accounts/routes.js +45 -0
- package/dist/powersync-sdk/accounts/source.d.ts +76 -0
- package/dist/powersync-sdk/accounts/source.js +32 -0
- package/dist/powersync-sdk/errors/errors.d.ts +62 -0
- package/dist/powersync-sdk/errors/errors.js +115 -0
- package/dist/powersync-sdk/errors/index.d.ts +2 -0
- package/dist/powersync-sdk/errors/index.js +2 -0
- package/dist/powersync-sdk/errors/utils.d.ts +4 -0
- package/dist/powersync-sdk/errors/utils.js +18 -0
- package/dist/powersync-sdk/fetch-clients/codecs.d.ts +4 -0
- package/dist/powersync-sdk/fetch-clients/codecs.js +34 -0
- package/dist/powersync-sdk/fetch-clients/decoders.d.ts +3 -0
- package/dist/powersync-sdk/fetch-clients/decoders.js +35 -0
- package/dist/powersync-sdk/fetch-clients/definitions.d.ts +97 -0
- package/dist/powersync-sdk/fetch-clients/definitions.js +22 -0
- package/dist/powersync-sdk/fetch-clients/errors.d.ts +7 -0
- package/dist/powersync-sdk/fetch-clients/errors.js +19 -0
- package/dist/powersync-sdk/fetch-clients/index.d.ts +5 -0
- package/dist/powersync-sdk/fetch-clients/index.js +5 -0
- package/dist/powersync-sdk/fetch-clients/node-client.d.ts +9 -0
- package/dist/powersync-sdk/fetch-clients/node-client.js +107 -0
- package/dist/powersync-sdk/fetch-clients/request.d.ts +11 -0
- package/dist/powersync-sdk/fetch-clients/request.js +138 -0
- package/dist/powersync-sdk/fetch-clients/streaming.d.ts +65 -0
- package/dist/powersync-sdk/fetch-clients/streaming.js +99 -0
- package/dist/powersync-sdk/fetch-clients/utils.d.ts +13 -0
- package/dist/powersync-sdk/fetch-clients/utils.js +43 -0
- package/dist/powersync-sdk/fetch-clients/web-client.d.ts +14 -0
- package/dist/powersync-sdk/fetch-clients/web-client.js +56 -0
- package/dist/powersync-sdk/json/index.d.ts +4 -0
- package/dist/powersync-sdk/json/index.js +3 -0
- package/dist/powersync-sdk/json/json.d.ts +5 -0
- package/dist/powersync-sdk/json/json.js +35 -0
- package/dist/powersync-sdk/json/json_container.d.ts +18 -0
- package/dist/powersync-sdk/json/json_container.js +28 -0
- package/dist/powersync-sdk/json/json_stringify.d.ts +36 -0
- package/dist/powersync-sdk/json/json_stringify.js +162 -0
- package/dist/powersync-sdk/powersync/client.d.ts +449 -0
- package/dist/powersync-sdk/powersync/client.js +53 -0
- package/dist/powersync-sdk/powersync/config/HostedConfig.d.ts +327 -0
- package/dist/powersync-sdk/powersync/config/HostedConfig.js +92 -0
- package/dist/powersync-sdk/powersync/config/PowerSyncConfig.d.ts +211 -0
- package/dist/powersync-sdk/powersync/config/PowerSyncConfig.js +97 -0
- package/dist/powersync-sdk/powersync/config/normalize.d.ts +32 -0
- package/dist/powersync-sdk/powersync/config/normalize.js +85 -0
- package/dist/powersync-sdk/powersync/definitions.d.ts +149 -0
- package/dist/powersync-sdk/powersync/definitions.js +97 -0
- package/dist/powersync-sdk/powersync/index.d.ts +8 -0
- package/dist/powersync-sdk/powersync/index.js +8 -0
- package/dist/powersync-sdk/powersync/internal_routes.d.ts +247 -0
- package/dist/powersync-sdk/powersync/internal_routes.js +69 -0
- package/dist/powersync-sdk/powersync/routes.d.ts +779 -0
- package/dist/powersync-sdk/powersync/routes.js +191 -0
- package/dist/powersync-sdk/sdk-clients/endpoints.d.ts +31 -0
- package/dist/powersync-sdk/sdk-clients/endpoints.js +48 -0
- package/dist/powersync-sdk/sdk-clients/index.d.ts +3 -0
- package/dist/powersync-sdk/sdk-clients/index.js +3 -0
- package/dist/powersync-sdk/sdk-clients/pagination.d.ts +14 -0
- package/dist/powersync-sdk/sdk-clients/pagination.js +21 -0
- package/dist/powersync-sdk/sdk-clients/sdk-client.d.ts +17 -0
- package/dist/powersync-sdk/sdk-clients/sdk-client.js +30 -0
- package/dist/powersync-sdk/streaming/bson/buffer-array.d.ts +31 -0
- package/dist/powersync-sdk/streaming/bson/buffer-array.js +79 -0
- package/dist/powersync-sdk/streaming/bson/constants.d.ts +2 -0
- package/dist/powersync-sdk/streaming/bson/constants.js +1 -0
- package/dist/powersync-sdk/streaming/bson/decoder.d.ts +10 -0
- package/dist/powersync-sdk/streaming/bson/decoder.js +62 -0
- package/dist/powersync-sdk/streaming/bson/encoder.d.ts +10 -0
- package/dist/powersync-sdk/streaming/bson/encoder.js +23 -0
- package/dist/powersync-sdk/streaming/bson/header.d.ts +11 -0
- package/dist/powersync-sdk/streaming/bson/header.js +52 -0
- package/dist/powersync-sdk/streaming/bson/index.d.ts +5 -0
- package/dist/powersync-sdk/streaming/bson/index.js +5 -0
- package/dist/powersync-sdk/streaming/core/backpressure.d.ts +15 -0
- package/dist/powersync-sdk/streaming/core/backpressure.js +34 -0
- package/dist/powersync-sdk/streaming/core/cross-stream.d.ts +6 -0
- package/dist/powersync-sdk/streaming/core/cross-stream.js +17 -0
- package/dist/powersync-sdk/streaming/core/index.d.ts +4 -0
- package/dist/powersync-sdk/streaming/core/index.js +4 -0
- package/dist/powersync-sdk/streaming/core/node-utils.d.ts +7 -0
- package/dist/powersync-sdk/streaming/core/node-utils.js +11 -0
- package/dist/powersync-sdk/streaming/core/transformers.d.ts +41 -0
- package/dist/powersync-sdk/streaming/core/transformers.js +70 -0
- package/dist/powersync-sdk/streaming/core/utils.d.ts +36 -0
- package/dist/powersync-sdk/streaming/core/utils.js +66 -0
- package/dist/powersync-sdk/streaming/index.d.ts +3 -0
- package/dist/powersync-sdk/streaming/index.js +3 -0
- package/dist/powersync-sdk/streaming/web.d.ts +4 -0
- package/dist/powersync-sdk/streaming/web.js +4 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/binaryreader.d.ts +2 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/binaryreader.js +36 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/binarywriter.d.ts +2 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/binarywriter.js +58 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/geometry.d.ts +18 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/geometry.js +348 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/geometrycollection.d.ts +11 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/geometrycollection.js +118 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/linestring.d.ts +11 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/linestring.js +131 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multilinestring.d.ts +11 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multilinestring.js +134 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multipoint.d.ts +11 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multipoint.js +122 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multipolygon.d.ts +11 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multipolygon.js +158 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/point.d.ts +14 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/point.js +165 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/polygon.d.ts +11 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/polygon.js +207 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/types.d.ts +30 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/types.js +29 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/wktparser.d.ts +2 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/wktparser.js +111 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/wkx.d.ts +9 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/wkx.js +9 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/zigzag.d.ts +5 -0
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/zigzag.js +9 -0
- package/dist/powersync-sdk/sync-rules/DartSchemaGenerator.d.ts +12 -0
- package/dist/powersync-sdk/sync-rules/DartSchemaGenerator.js +35 -0
- package/dist/powersync-sdk/sync-rules/ExpressionType.d.ts +33 -0
- package/dist/powersync-sdk/sync-rules/ExpressionType.js +62 -0
- package/dist/powersync-sdk/sync-rules/IdSequence.d.ts +4 -0
- package/dist/powersync-sdk/sync-rules/IdSequence.js +7 -0
- package/dist/powersync-sdk/sync-rules/JsSchemaGenerator.d.ts +12 -0
- package/dist/powersync-sdk/sync-rules/JsSchemaGenerator.js +38 -0
- package/dist/powersync-sdk/sync-rules/SchemaGenerator.d.ts +14 -0
- package/dist/powersync-sdk/sync-rules/SchemaGenerator.js +24 -0
- package/dist/powersync-sdk/sync-rules/SourceTableInterface.d.ts +5 -0
- package/dist/powersync-sdk/sync-rules/SourceTableInterface.js +1 -0
- package/dist/powersync-sdk/sync-rules/SqlBucketDescriptor.d.ts +37 -0
- package/dist/powersync-sdk/sync-rules/SqlBucketDescriptor.js +116 -0
- package/dist/powersync-sdk/sync-rules/SqlDataQuery.d.ts +39 -0
- package/dist/powersync-sdk/sync-rules/SqlDataQuery.js +245 -0
- package/dist/powersync-sdk/sync-rules/SqlParameterQuery.d.ts +43 -0
- package/dist/powersync-sdk/sync-rules/SqlParameterQuery.js +254 -0
- package/dist/powersync-sdk/sync-rules/SqlSyncRules.d.ts +52 -0
- package/dist/powersync-sdk/sync-rules/SqlSyncRules.js +252 -0
- package/dist/powersync-sdk/sync-rules/StaticSchema.d.ts +26 -0
- package/dist/powersync-sdk/sync-rules/StaticSchema.js +71 -0
- package/dist/powersync-sdk/sync-rules/StaticSqlParameterQuery.d.ts +24 -0
- package/dist/powersync-sdk/sync-rules/StaticSqlParameterQuery.js +71 -0
- package/dist/powersync-sdk/sync-rules/TablePattern.d.ts +17 -0
- package/dist/powersync-sdk/sync-rules/TablePattern.js +56 -0
- package/dist/powersync-sdk/sync-rules/TableQuerySchema.d.ts +9 -0
- package/dist/powersync-sdk/sync-rules/TableQuerySchema.js +41 -0
- package/dist/powersync-sdk/sync-rules/errors.d.ts +22 -0
- package/dist/powersync-sdk/sync-rules/errors.js +60 -0
- package/dist/powersync-sdk/sync-rules/generators.d.ts +6 -0
- package/dist/powersync-sdk/sync-rules/generators.js +6 -0
- package/dist/powersync-sdk/sync-rules/index.d.ts +17 -0
- package/dist/powersync-sdk/sync-rules/index.js +17 -0
- package/dist/powersync-sdk/sync-rules/json_schema.d.ts +3 -0
- package/dist/powersync-sdk/sync-rules/json_schema.js +50 -0
- package/dist/powersync-sdk/sync-rules/sql_filters.d.ts +91 -0
- package/dist/powersync-sdk/sync-rules/sql_filters.js +491 -0
- package/dist/powersync-sdk/sync-rules/sql_functions.d.ts +53 -0
- package/dist/powersync-sdk/sync-rules/sql_functions.js +755 -0
- package/dist/powersync-sdk/sync-rules/sql_support.d.ts +22 -0
- package/dist/powersync-sdk/sync-rules/sql_support.js +208 -0
- package/dist/powersync-sdk/sync-rules/types.d.ts +174 -0
- package/dist/powersync-sdk/sync-rules/types.js +9 -0
- package/dist/powersync-sdk/sync-rules/utils.d.ts +45 -0
- package/dist/powersync-sdk/sync-rules/utils.js +163 -0
- package/dist/service/accounts.client.d.ts +26 -0
- package/dist/service/accounts.client.js +26 -0
- package/dist/service/powersync.client.d.ts +269 -0
- package/dist/service/powersync.client.js +135 -0
- package/dist/service/types.d.ts +69 -0
- package/dist/service/types.js +1 -0
- package/dist/service/utils.d.ts +5 -0
- package/dist/service/utils.js +7 -0
- package/dist/utils.d.ts +6 -0
- package/dist/utils.js +52 -0
- package/oclif.manifest.json +514 -0
- package/package.json +81 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { Command, Flags, ux } from '@oclif/core';
|
|
3
|
+
import inquirer from 'inquirer';
|
|
4
|
+
import ora from 'ora';
|
|
5
|
+
import * as PowerSyncClient from '../../service/powersync.client.js';
|
|
6
|
+
import { bold, checkForValidEnvFile, green, red } from '../../utils.js';
|
|
7
|
+
export default class InstanceDeploy extends Command {
|
|
8
|
+
static description = 'deploy changes to an existing instance';
|
|
9
|
+
static examples = ['<%= config.bin %> <%= command.id %>'];
|
|
10
|
+
static flags = {
|
|
11
|
+
databaseName: Flags.string({ description: 'Name of the DB' }),
|
|
12
|
+
databasePassword: Flags.string({ description: 'Password of the DB', hidden: true }),
|
|
13
|
+
databaseUsername: Flags.string({ description: 'Username of the DB', hidden: true }),
|
|
14
|
+
hostname: Flags.string({ description: 'Hostname to connect to DB' }),
|
|
15
|
+
name: Flags.string({ description: 'Name of the instance' }),
|
|
16
|
+
port: Flags.integer({ description: 'Port number to connect to DB' }),
|
|
17
|
+
useSupabaseAuth: Flags.boolean({ description: 'Use Supabase auth' })
|
|
18
|
+
};
|
|
19
|
+
async run() {
|
|
20
|
+
checkForValidEnvFile(this.config.bin, true);
|
|
21
|
+
const { flags } = await this.parse(InstanceDeploy);
|
|
22
|
+
const questions = [
|
|
23
|
+
{
|
|
24
|
+
message: 'What is your database hostname?',
|
|
25
|
+
name: 'hostname',
|
|
26
|
+
type: 'input',
|
|
27
|
+
validate(value) {
|
|
28
|
+
return value.length > 0 ? true : 'Please enter your hostname.';
|
|
29
|
+
},
|
|
30
|
+
when: !flags.hostname
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
default: 5432,
|
|
34
|
+
message: 'What is the port number of your database?',
|
|
35
|
+
name: 'port',
|
|
36
|
+
type: 'input',
|
|
37
|
+
validate(value) {
|
|
38
|
+
const number = Number.parseFloat(value);
|
|
39
|
+
if (Number.isNaN(number)) {
|
|
40
|
+
return 'Please enter a valid port number.';
|
|
41
|
+
}
|
|
42
|
+
return String(value).length > 0 ? true : 'Please enter your port number.';
|
|
43
|
+
},
|
|
44
|
+
when: !flags.port
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
default: 'postgres',
|
|
48
|
+
message: 'What is your database name?',
|
|
49
|
+
name: 'databaseName',
|
|
50
|
+
type: 'input',
|
|
51
|
+
validate(value) {
|
|
52
|
+
return value.length > 0 ? true : 'Please enter your database name.';
|
|
53
|
+
},
|
|
54
|
+
when: !flags.databaseName
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
default: 'postgres',
|
|
58
|
+
message: 'What is your database username?',
|
|
59
|
+
name: 'databaseUsername',
|
|
60
|
+
type: 'input',
|
|
61
|
+
validate(value) {
|
|
62
|
+
return value.length > 0 ? true : 'Please enter your database username.';
|
|
63
|
+
},
|
|
64
|
+
when: !flags.databaseUsername
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
message: 'What is your database password?',
|
|
68
|
+
name: 'databasePassword',
|
|
69
|
+
type: 'password',
|
|
70
|
+
validate(value) {
|
|
71
|
+
return value.length > 0 ? true : 'Please enter your password.';
|
|
72
|
+
},
|
|
73
|
+
when: !flags.databasePassword
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
default: false,
|
|
77
|
+
message: 'Are you using Supabase auth?',
|
|
78
|
+
name: 'useSupabaseAuth',
|
|
79
|
+
type: 'confirm',
|
|
80
|
+
when: !flags.useSupabaseAuth
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
message: 'Enter your JWKS URL?',
|
|
84
|
+
name: 'jwtServerUrl',
|
|
85
|
+
type: 'input',
|
|
86
|
+
validate(value) {
|
|
87
|
+
const urlRegex = /^(https?|ftp):\/\/[^\s#$./?].\S*$/i;
|
|
88
|
+
return urlRegex.test(value) ? true : 'Please enter a valid URL.';
|
|
89
|
+
},
|
|
90
|
+
when: (answers) => !answers.useSupabaseAuth
|
|
91
|
+
}
|
|
92
|
+
];
|
|
93
|
+
const answers = await inquirer.prompt(questions);
|
|
94
|
+
const port = flags.port || answers.port;
|
|
95
|
+
const password = flags.databasePassword || answers.databasePassword;
|
|
96
|
+
const hostname = flags.hostname || answers.hostname;
|
|
97
|
+
const databaseName = flags.databaseName || answers.databaseName;
|
|
98
|
+
const databaseUsername = flags.databaseUsername || answers.databaseUsername;
|
|
99
|
+
const useSupabaseAuth = flags.useSupabaseAuth || answers.useSupabaseAuth;
|
|
100
|
+
const instanceConfig = await PowerSyncClient.getInstanceConfig();
|
|
101
|
+
const { region } = instanceConfig.config;
|
|
102
|
+
const config = {
|
|
103
|
+
client_auth: {
|
|
104
|
+
jwks_uri: answers.jwksUri || undefined,
|
|
105
|
+
supabase: useSupabaseAuth
|
|
106
|
+
},
|
|
107
|
+
region,
|
|
108
|
+
replication: {
|
|
109
|
+
connections: [
|
|
110
|
+
{
|
|
111
|
+
database: databaseName,
|
|
112
|
+
debug_api: false,
|
|
113
|
+
hostname,
|
|
114
|
+
name: 'Default',
|
|
115
|
+
password: {
|
|
116
|
+
secret: password
|
|
117
|
+
},
|
|
118
|
+
port: Number(port),
|
|
119
|
+
sslmode: 'verify-full',
|
|
120
|
+
tag: 'default',
|
|
121
|
+
type: 'postgresql',
|
|
122
|
+
username: databaseUsername
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
const spinner = ora({
|
|
128
|
+
prefixText: 'Deploying instance.\n',
|
|
129
|
+
spinner: 'moon',
|
|
130
|
+
suffixText: '\nThis may take a few minutes.\n'
|
|
131
|
+
});
|
|
132
|
+
spinner.start();
|
|
133
|
+
const instance = await PowerSyncClient.deployInstance(config, process.env.INSTANCE_ID);
|
|
134
|
+
let status = 'pending';
|
|
135
|
+
status = await PowerSyncClient.waitForStatusChange(instance.id);
|
|
136
|
+
spinner.stop();
|
|
137
|
+
if (status === 'failed') {
|
|
138
|
+
ux.error(red(`There was an error deploying the instance. Please try again.`), { exit: 1 });
|
|
139
|
+
}
|
|
140
|
+
ux.log(green(`Instance with id ${bold(instance.id)} has been deployed successfully.`));
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
export default class InstanceDestroy extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
skipConfirmation: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
7
|
+
};
|
|
8
|
+
run(): Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Command, Flags, ux } from '@oclif/core';
|
|
2
|
+
import inquirer from 'inquirer';
|
|
3
|
+
import ora from 'ora';
|
|
4
|
+
import * as PowerSyncClient from '../../service/powersync.client.js';
|
|
5
|
+
import { bold, checkForValidEnvFile, green, red } from '../../utils.js';
|
|
6
|
+
export default class InstanceDestroy extends Command {
|
|
7
|
+
static description = 'destroy the current instance - THIS CANNOT BE UNDONE';
|
|
8
|
+
static examples = ['<%= config.bin %> <%= command.id %>', '<%= config.bin %> <%= command.id %> --instanceId=1234'];
|
|
9
|
+
static flags = {
|
|
10
|
+
skipConfirmation: Flags.boolean({ char: 's', description: 'Ignore confirmation question' })
|
|
11
|
+
};
|
|
12
|
+
async run() {
|
|
13
|
+
checkForValidEnvFile(this.config.bin, true);
|
|
14
|
+
const { flags } = await this.parse(InstanceDestroy);
|
|
15
|
+
const questions = [
|
|
16
|
+
{
|
|
17
|
+
message: 'Are you sure you want to do destroy the instance?',
|
|
18
|
+
name: 'areYouSure',
|
|
19
|
+
type: 'confirm',
|
|
20
|
+
when: !flags.skipConfirmation
|
|
21
|
+
}
|
|
22
|
+
];
|
|
23
|
+
const answers = await inquirer.prompt(questions);
|
|
24
|
+
if (!answers.areYouSure) {
|
|
25
|
+
return ux.log('Instance will not be destroyed.');
|
|
26
|
+
}
|
|
27
|
+
const spinner = ora({
|
|
28
|
+
prefixText: 'Destroying instance\n',
|
|
29
|
+
spinner: 'moon',
|
|
30
|
+
suffixText: '\nThis may take a few minutes'
|
|
31
|
+
});
|
|
32
|
+
spinner.start();
|
|
33
|
+
const instance = await PowerSyncClient.destroyInstance();
|
|
34
|
+
let status = 'pending';
|
|
35
|
+
status = await PowerSyncClient.waitForStatusChange(instance.id);
|
|
36
|
+
spinner.stop();
|
|
37
|
+
if (status === 'failed') {
|
|
38
|
+
ux.error(red(`There was an error destroying the instance. Please try again.`), { exit: 1 });
|
|
39
|
+
}
|
|
40
|
+
ux.log(green(`Instance with id ${bold(instance.id)} has been destroyed.`));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* eslint-disable perfectionist/sort-objects */
|
|
2
|
+
import { Command, ux } from '@oclif/core';
|
|
3
|
+
import * as PowerSyncClient from '../../service/powersync.client.js';
|
|
4
|
+
import { checkForValidEnvFile } from '../../utils.js';
|
|
5
|
+
export default class InstanceSchema extends Command {
|
|
6
|
+
static description = 'view the schema of the current instance';
|
|
7
|
+
static examples = ['<%= config.bin %> <%= command.id %>'];
|
|
8
|
+
async run() {
|
|
9
|
+
checkForValidEnvFile(this.config.bin, true);
|
|
10
|
+
const result = await PowerSyncClient.getInstanceSchema();
|
|
11
|
+
result.connections[0].schemas.map((schema) => {
|
|
12
|
+
ux.log(`\nSCHEMA: ${schema.name}\n`);
|
|
13
|
+
ux.table(schema.tables, {
|
|
14
|
+
name: {},
|
|
15
|
+
columns: {}
|
|
16
|
+
});
|
|
17
|
+
return null;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
export default class InstanceSet extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
instanceId: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
7
|
+
};
|
|
8
|
+
run(): Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Command, Flags, ux } from '@oclif/core';
|
|
2
|
+
import inquirer from 'inquirer';
|
|
3
|
+
import * as PowerSyncClient from '../../service/powersync.client.js';
|
|
4
|
+
import { ENV_VARIABLES } from '../../service/powersync.client.js';
|
|
5
|
+
import { bold, checkForValidEnvFile, green, updateEnvFileVariableValue } from '../../utils.js';
|
|
6
|
+
export default class InstanceSet extends Command {
|
|
7
|
+
static description = 'set the current instance';
|
|
8
|
+
static examples = ['<%= config.bin %> <%= command.id %>', '<%= config.bin %> <%= command.id %> --instanceId=1234'];
|
|
9
|
+
static flags = {
|
|
10
|
+
instanceId: Flags.string({ char: 'n', description: 'instance id to change to' })
|
|
11
|
+
};
|
|
12
|
+
async run() {
|
|
13
|
+
checkForValidEnvFile(this.config.bin);
|
|
14
|
+
const { flags } = await this.parse(InstanceSet);
|
|
15
|
+
const list = await PowerSyncClient.getInstancesList();
|
|
16
|
+
const instances = list.instances.map((instance) => ({ name: instance.name, value: instance.id }));
|
|
17
|
+
const questions = [
|
|
18
|
+
{
|
|
19
|
+
choices: instances,
|
|
20
|
+
message: 'Which instance would you like to change to?',
|
|
21
|
+
name: 'instanceId',
|
|
22
|
+
type: 'list',
|
|
23
|
+
when: !flags.instanceId
|
|
24
|
+
}
|
|
25
|
+
];
|
|
26
|
+
const answers = await inquirer.prompt(questions);
|
|
27
|
+
const instanceId = flags.instanceId || answers.instanceId;
|
|
28
|
+
updateEnvFileVariableValue(ENV_VARIABLES.INSTANCE_ID, instanceId);
|
|
29
|
+
ux.log(green(`Current instance has been set to ${bold(instanceId)}`));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Command, ux } from '@oclif/core';
|
|
2
|
+
import * as PowerSyncClient from '../../service/powersync.client.js';
|
|
3
|
+
import { checkForValidEnvFile, green, red } from '../../utils.js';
|
|
4
|
+
export default class InstanceStatus extends Command {
|
|
5
|
+
static description = 'view the status of the current instance';
|
|
6
|
+
static examples = ['<%= config.bin %> <%= command.id %>'];
|
|
7
|
+
async run() {
|
|
8
|
+
checkForValidEnvFile(this.config.bin, true);
|
|
9
|
+
const diagnostics = await PowerSyncClient.getInstanceDiagnostics();
|
|
10
|
+
const { errors } = diagnostics.connections[0];
|
|
11
|
+
if (errors.length > 0) {
|
|
12
|
+
ux.log(red(`❌ errors found:`));
|
|
13
|
+
errors.map((error) => {
|
|
14
|
+
ux.log(red(`Level: ${error.level}`));
|
|
15
|
+
return ux.log(red(`Message: ${error.message}\n`));
|
|
16
|
+
});
|
|
17
|
+
return ux.exit(1);
|
|
18
|
+
}
|
|
19
|
+
ux.log(green(`✅ Instance is operational and no errors were found.`));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
export default class InstanceDeactivate extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
skipConfirmation: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
7
|
+
};
|
|
8
|
+
run(): Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Command, Flags, ux } from '@oclif/core';
|
|
2
|
+
import inquirer from 'inquirer';
|
|
3
|
+
import ora from 'ora';
|
|
4
|
+
import * as PowerSyncClient from '../../service/powersync.client.js';
|
|
5
|
+
import { bold, checkForValidEnvFile, red, yellow } from '../../utils.js';
|
|
6
|
+
export default class InstanceDeactivate extends Command {
|
|
7
|
+
static description = 'stop the current instance';
|
|
8
|
+
static examples = ['<%= config.bin %> <%= command.id %>', '<%= config.bin %> <%= command.id %> --instanceId=1234'];
|
|
9
|
+
static flags = {
|
|
10
|
+
skipConfirmation: Flags.boolean({ char: 's', description: 'Ignore confirmation question' })
|
|
11
|
+
};
|
|
12
|
+
async run() {
|
|
13
|
+
checkForValidEnvFile(this.config.bin, true);
|
|
14
|
+
const { flags } = await this.parse(InstanceDeactivate);
|
|
15
|
+
const questions = [
|
|
16
|
+
{
|
|
17
|
+
message: 'Are you sure you want to do stop the instance?',
|
|
18
|
+
name: 'areYouSure',
|
|
19
|
+
type: 'confirm',
|
|
20
|
+
when: !flags.skipConfirmation
|
|
21
|
+
}
|
|
22
|
+
];
|
|
23
|
+
const answers = await inquirer.prompt(questions);
|
|
24
|
+
if (!answers.areYouSure) {
|
|
25
|
+
return ux.log('Instance will not be stopped.');
|
|
26
|
+
}
|
|
27
|
+
const spinner = ora({
|
|
28
|
+
prefixText: 'Stopping instance.\n ',
|
|
29
|
+
spinner: 'moon',
|
|
30
|
+
suffixText: '\nThis may take a few minutes.\n'
|
|
31
|
+
});
|
|
32
|
+
spinner.start();
|
|
33
|
+
const instance = await PowerSyncClient.deactivateInstance();
|
|
34
|
+
let status = 'pending';
|
|
35
|
+
status = await PowerSyncClient.waitForStatusChange(instance.id);
|
|
36
|
+
spinner.stop();
|
|
37
|
+
if (status === 'failed') {
|
|
38
|
+
return ux.error(red(`There was an error stopping the instance. Please try again.`), { exit: 1 });
|
|
39
|
+
}
|
|
40
|
+
ux.log(yellow(`Instance with id ${bold(instance.id)} has been stopped.`));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
export default class SyncRulesDeploy extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
filePath: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
7
|
+
skipConfirmation: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
8
|
+
};
|
|
9
|
+
run(): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Command, Flags, ux } from '@oclif/core';
|
|
2
|
+
import inquirer from 'inquirer';
|
|
3
|
+
import fs from 'node:fs';
|
|
4
|
+
import ora from 'ora';
|
|
5
|
+
import * as PowerSyncClient from '../../../service/powersync.client.js';
|
|
6
|
+
import { bold, checkForValidEnvFile, green, red } from '../../../utils.js';
|
|
7
|
+
export default class SyncRulesDeploy extends Command {
|
|
8
|
+
static description = 'deploy sync rules from a local file to the current instance';
|
|
9
|
+
static examples = [
|
|
10
|
+
'<%= config.bin %> <%= command.id %>',
|
|
11
|
+
'<%= config.bin %> <%= command.id %> --filePath path/to/file',
|
|
12
|
+
'<%= config.bin %> <%= command.id %> -f path/to/file'
|
|
13
|
+
];
|
|
14
|
+
static flags = {
|
|
15
|
+
filePath: Flags.string({ char: 'f', description: 'Path to the file', required: true }),
|
|
16
|
+
skipConfirmation: Flags.boolean({ char: 's', description: 'Ignore confirmation question' })
|
|
17
|
+
};
|
|
18
|
+
async run() {
|
|
19
|
+
checkForValidEnvFile(this.config.bin, true);
|
|
20
|
+
const { flags } = await this.parse(SyncRulesDeploy);
|
|
21
|
+
const questions = [
|
|
22
|
+
{
|
|
23
|
+
message: 'Are you sure you want to do deploy sync files?',
|
|
24
|
+
name: 'areYouSure',
|
|
25
|
+
type: 'confirm',
|
|
26
|
+
when: !flags.skipConfirmation
|
|
27
|
+
}
|
|
28
|
+
];
|
|
29
|
+
const answers = await inquirer.prompt(questions);
|
|
30
|
+
if (!answers.areYouSure) {
|
|
31
|
+
return ux.log('Sync files were not deployed.');
|
|
32
|
+
}
|
|
33
|
+
const syncRules = fs.readFileSync(flags.filePath, 'utf8');
|
|
34
|
+
const spinner = ora({
|
|
35
|
+
prefixText: 'Deploying sync rules to instance.\n',
|
|
36
|
+
spinner: 'moon',
|
|
37
|
+
suffixText: '\nThis may take a few minutes.\n'
|
|
38
|
+
});
|
|
39
|
+
spinner.start();
|
|
40
|
+
const instance = await PowerSyncClient.deploySyncRules(syncRules);
|
|
41
|
+
let status = 'pending';
|
|
42
|
+
status = await PowerSyncClient.waitForStatusChange(instance.id);
|
|
43
|
+
spinner.stop();
|
|
44
|
+
if (status === 'failed') {
|
|
45
|
+
return ux.error(red('There was an error creating the instance. Please try again.'), { exit: 1 });
|
|
46
|
+
}
|
|
47
|
+
ux.log(green(`Sync rules have successfully been deployed to instance with id ${bold(instance.id)}.`));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
export default class SyncRulesGenerateSchema extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
filePath: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
7
|
+
language: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
8
|
+
};
|
|
9
|
+
run(): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Command, Flags, ux } from '@oclif/core';
|
|
2
|
+
import inquirer from 'inquirer';
|
|
3
|
+
import fs from 'node:fs';
|
|
4
|
+
import { LANGUAGES } from '../../../constants.js';
|
|
5
|
+
import { SqlSyncRules } from '../../../powersync-sdk/sync-rules/SqlSyncRules.js';
|
|
6
|
+
import { StaticSchema } from '../../../powersync-sdk/sync-rules/StaticSchema.js';
|
|
7
|
+
import { schemaGenerators } from '../../../powersync-sdk/sync-rules/generators.js';
|
|
8
|
+
import * as PowerSyncClient from '../../../service/powersync.client.js';
|
|
9
|
+
import { checkForValidEnvFile, green, red } from '../../../utils.js';
|
|
10
|
+
export default class SyncRulesGenerateSchema extends Command {
|
|
11
|
+
static description = 'generate schema in your language from sync rules';
|
|
12
|
+
static examples = [
|
|
13
|
+
'<%= config.bin %> <%= command.id %>',
|
|
14
|
+
'<%= config.bin %> <%= command.id %> --filePath path/to/file',
|
|
15
|
+
'<%= config.bin %> <%= command.id %> -f path/to/file'
|
|
16
|
+
];
|
|
17
|
+
static flags = {
|
|
18
|
+
filePath: Flags.string({ char: 'f', description: 'Path to the file', required: true }),
|
|
19
|
+
language: Flags.string({
|
|
20
|
+
char: 'l',
|
|
21
|
+
description: 'Choose language for output',
|
|
22
|
+
options: LANGUAGES
|
|
23
|
+
})
|
|
24
|
+
};
|
|
25
|
+
async run() {
|
|
26
|
+
checkForValidEnvFile(this.config.bin, true);
|
|
27
|
+
const { flags } = await this.parse(SyncRulesGenerateSchema);
|
|
28
|
+
const questions = [
|
|
29
|
+
{
|
|
30
|
+
choices: LANGUAGES,
|
|
31
|
+
message: 'Which language would you like to output to?',
|
|
32
|
+
name: 'language',
|
|
33
|
+
type: 'list',
|
|
34
|
+
when: !flags.language
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
const answers = await inquirer.prompt(questions);
|
|
38
|
+
const schema = await PowerSyncClient.getInstanceSchema();
|
|
39
|
+
const parsedSchema = new StaticSchema(schema.connections);
|
|
40
|
+
const syncRulesFromFile = fs.readFileSync(flags.filePath, 'utf8');
|
|
41
|
+
const syncRules = SqlSyncRules.fromYaml(syncRulesFromFile, { schema: parsedSchema, throwOnError: false });
|
|
42
|
+
const { errors } = syncRules;
|
|
43
|
+
if (errors.length > 0) {
|
|
44
|
+
ux.log(red(`❌ sync rule errors found:`));
|
|
45
|
+
errors.map((error) => {
|
|
46
|
+
return ux.log(red(error.message));
|
|
47
|
+
});
|
|
48
|
+
return ux.exit(1);
|
|
49
|
+
}
|
|
50
|
+
const language = flags.language || answers.language;
|
|
51
|
+
const generator = schemaGenerators[language];
|
|
52
|
+
const languageSchema = await generator.generate(syncRules, parsedSchema);
|
|
53
|
+
ux.log(green(languageSchema));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
export default class SyncRulesValidate extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
filePath: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
7
|
+
};
|
|
8
|
+
run(): Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Command, Flags, ux } from '@oclif/core';
|
|
2
|
+
import fs from 'node:fs';
|
|
3
|
+
import * as PowerSyncClient from '../../../service/powersync.client.js';
|
|
4
|
+
import { checkForValidEnvFile, green, red } from '../../../utils.js';
|
|
5
|
+
export default class SyncRulesValidate extends Command {
|
|
6
|
+
static description = 'validate sync rules from a local file';
|
|
7
|
+
static examples = [
|
|
8
|
+
'<%= config.bin %> <%= command.id %>',
|
|
9
|
+
'<%= config.bin %> <%= command.id %> --filePath path/to/file',
|
|
10
|
+
'<%= config.bin %> <%= command.id %> -f path/to/file'
|
|
11
|
+
];
|
|
12
|
+
static flags = {
|
|
13
|
+
filePath: Flags.string({ char: 'f', description: 'Path to the file', required: true })
|
|
14
|
+
};
|
|
15
|
+
async run() {
|
|
16
|
+
checkForValidEnvFile(this.config.bin, true);
|
|
17
|
+
const { flags } = await this.parse(SyncRulesValidate);
|
|
18
|
+
const syncRules = fs.readFileSync(flags.filePath, 'utf8');
|
|
19
|
+
const validation = await PowerSyncClient.validateSyncRules(syncRules);
|
|
20
|
+
if (validation.errors.length > 0) {
|
|
21
|
+
ux.log(red(`❌ errors found:`));
|
|
22
|
+
for (const error of validation.errors) {
|
|
23
|
+
ux.log(red(error.message));
|
|
24
|
+
}
|
|
25
|
+
return ux.exit(1);
|
|
26
|
+
}
|
|
27
|
+
ux.log(green('✅ Sync rules are valid'));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Command, ux } from '@oclif/core';
|
|
2
|
+
import * as PowerSyncClient from '../service/powersync.client.js';
|
|
3
|
+
import { checkForValidEnvFile, green, red } from '../utils.js';
|
|
4
|
+
export default class InstancesList extends Command {
|
|
5
|
+
static description = 'view list of instances';
|
|
6
|
+
static examples = ['<%= config.bin %> <%= command.id %>'];
|
|
7
|
+
async run() {
|
|
8
|
+
checkForValidEnvFile(this.config.bin, false);
|
|
9
|
+
const list = await PowerSyncClient.getInstancesList();
|
|
10
|
+
const { instances } = list;
|
|
11
|
+
if (instances.length === 0) {
|
|
12
|
+
return ux.log(`It seems like you have ${red('no')} instances. Run ${green('"powersync instance create"')} to create your first instance.`);
|
|
13
|
+
}
|
|
14
|
+
ux.table(instances, {
|
|
15
|
+
id: { header: 'ID' },
|
|
16
|
+
name: { minWidth: 7 }
|
|
17
|
+
}, { printLine: this.log.bind(this) });
|
|
18
|
+
ux.log(`\nrun ${green(`"${this.config.bin} instance set"`)} to use one of the instances`);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const HEADERS: {
|
|
2
|
+
Accept: string;
|
|
3
|
+
Authorization: string;
|
|
4
|
+
ContentType: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const ENDPOINTS: {
|
|
7
|
+
ACCOUNTS_URL: string;
|
|
8
|
+
POWERSYNC_URL: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const REGIONS: string[];
|
|
11
|
+
export declare const LANGUAGES: string[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const BEARER_TOKEN = `Bearer ${process.env.CARDINAL_TOKEN}`;
|
|
2
|
+
export const HEADERS = { Accept: 'application/json', Authorization: BEARER_TOKEN, ContentType: 'application/json' };
|
|
3
|
+
export const ENDPOINTS = {
|
|
4
|
+
ACCOUNTS_URL: 'https://accounts.journeyapps.com',
|
|
5
|
+
POWERSYNC_URL: 'https://powersync-api.journeyapps.com'
|
|
6
|
+
};
|
|
7
|
+
export const REGIONS = ['US', 'EU'];
|
|
8
|
+
export const LANGUAGES = ['js', 'dart'];
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { run } from '@oclif/core';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { run } from '@oclif/core';
|