@hasna/project 0.1.9 → 0.1.11
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/projects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/projects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+EzC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA8rB9D"}
|
package/dist/cli/index.js
CHANGED
|
@@ -46400,6 +46400,15 @@ function timeAgo(iso) {
|
|
|
46400
46400
|
const d2 = Math.floor(h2 / 24);
|
|
46401
46401
|
return `${d2}d ago`;
|
|
46402
46402
|
}
|
|
46403
|
+
function suppressSslWarnings() {
|
|
46404
|
+
const orig = process.emitWarning.bind(process);
|
|
46405
|
+
process.emitWarning = (msg, ...args) => {
|
|
46406
|
+
const text = typeof msg === "string" ? msg : msg.message;
|
|
46407
|
+
if (text?.includes("SSL modes"))
|
|
46408
|
+
return;
|
|
46409
|
+
return orig(msg, ...args);
|
|
46410
|
+
};
|
|
46411
|
+
}
|
|
46403
46412
|
function requireProject(idOrSlug) {
|
|
46404
46413
|
if (idOrSlug)
|
|
46405
46414
|
return resolveProject(idOrSlug);
|
|
@@ -46444,6 +46453,10 @@ function registerProjectCommands(program2) {
|
|
|
46444
46453
|
});
|
|
46445
46454
|
console.log(source_default.green("\u2713 Project created"));
|
|
46446
46455
|
printProject(project);
|
|
46456
|
+
if (!existsSync13(project.path)) {
|
|
46457
|
+
console.log(source_default.yellow(` \u26A0 Path does not exist yet: ${project.path}`));
|
|
46458
|
+
console.log(source_default.dim(` Create it to enable git init and workdir generation.`));
|
|
46459
|
+
}
|
|
46447
46460
|
} catch (err) {
|
|
46448
46461
|
console.error(source_default.red(`Error: ${err instanceof Error ? err.message : String(err)}`));
|
|
46449
46462
|
process.exit(1);
|
|
@@ -46942,6 +46955,8 @@ ${source_default.bold(r2.project.name)} ${source_default.dim(r2.project.slug)}`)
|
|
|
46942
46955
|
});
|
|
46943
46956
|
const cloudCmd = cmd.command("cloud").description("Cloud sync \u2014 push/pull between local SQLite and RDS PostgreSQL");
|
|
46944
46957
|
cloudCmd.command("status").description("Show cloud configuration and connection health").action(async () => {
|
|
46958
|
+
process.env["NODE_NO_WARNINGS"] = "1";
|
|
46959
|
+
suppressSslWarnings();
|
|
46945
46960
|
const { getCloudConfig: getCloudConfig2, getConnectionString: getConnectionString2, PgAdapterAsync: PgAdapterAsync2 } = await Promise.resolve().then(() => (init_dist(), exports_dist));
|
|
46946
46961
|
const config = getCloudConfig2();
|
|
46947
46962
|
console.log(`mode: ${config.mode}`);
|
|
@@ -46961,6 +46976,7 @@ ${source_default.bold(r2.project.name)} ${source_default.dim(r2.project.slug)}`)
|
|
|
46961
46976
|
cloudCmd.command("pull").description("Pull data from cloud PostgreSQL to local SQLite").option("--tables <tables>", "Comma-separated table names (default: all)").action(async (opts) => {
|
|
46962
46977
|
console.log(source_default.dim("Pulling from cloud..."));
|
|
46963
46978
|
try {
|
|
46979
|
+
suppressSslWarnings();
|
|
46964
46980
|
const { syncPull: syncPull2, getCloudConfig: getCloudConfig2, getConnectionString: getConnectionString2, PgAdapterAsync: PgAdapterAsync2, SqliteAdapter: SqliteAdapter2 } = await Promise.resolve().then(() => (init_dist(), exports_dist));
|
|
46965
46981
|
const config = getCloudConfig2();
|
|
46966
46982
|
if (!config.rds?.host) {
|
|
@@ -46985,6 +47001,7 @@ ${source_default.bold(r2.project.name)} ${source_default.dim(r2.project.slug)}`)
|
|
|
46985
47001
|
cloudCmd.command("push").description("Push local SQLite data to cloud PostgreSQL").option("--tables <tables>", "Comma-separated table names (default: all)").action(async (opts) => {
|
|
46986
47002
|
console.log(source_default.dim("Pushing to cloud..."));
|
|
46987
47003
|
try {
|
|
47004
|
+
suppressSslWarnings();
|
|
46988
47005
|
const { syncPush: syncPush2, getCloudConfig: getCloudConfig2, getConnectionString: getConnectionString2, PgAdapterAsync: PgAdapterAsync2, SqliteAdapter: SqliteAdapter2 } = await Promise.resolve().then(() => (init_dist(), exports_dist));
|
|
46989
47006
|
const { runPgMigrations: runPgMigrations2 } = await Promise.resolve().then(() => (init_pg_migrations(), exports_pg_migrations));
|
|
46990
47007
|
const config = getCloudConfig2();
|
package/package.json
CHANGED