smoodly 0.0.43 → 0.0.44
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/dist/cli/migrate.d.ts +1 -1
- package/dist/cli/migrate.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/cli/migrate.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export type MigrateArgs = {
|
|
|
8
8
|
};
|
|
9
9
|
/** The folder shipped in the package: `../../migrations/` from dist/cli/ and from src/cli/ alike. */
|
|
10
10
|
export declare const PACKAGE_MIGRATIONS_DIR: string;
|
|
11
|
-
export declare const NO_FOLDER
|
|
11
|
+
export declare const NO_FOLDER: (dir: string) => string;
|
|
12
12
|
export declare const NEXT_STEP = "Next: apply it \u2014 `supabase db push` (hosted) or `supabase migration up` (local).";
|
|
13
13
|
export declare const upToDate: (version: number, n: number) => string;
|
|
14
14
|
export declare const KEY_NOT_CHECKED = "Key not checked: SMOODLY_URL and SMOODLY_SECRET_KEY are not both set here.";
|
package/dist/cli/migrate.js
CHANGED
|
@@ -17,7 +17,7 @@ import { planIsEmpty, planMigrate } from "../migrations.js";
|
|
|
17
17
|
import { loadCollections } from "./load-collections.js";
|
|
18
18
|
/** The folder shipped in the package: `../../migrations/` from dist/cli/ and from src/cli/ alike. */
|
|
19
19
|
export const PACKAGE_MIGRATIONS_DIR = fileURLToPath(new URL("../../migrations/", import.meta.url));
|
|
20
|
-
export const NO_FOLDER =
|
|
20
|
+
export const NO_FOLDER = (dir) => `No supabase/migrations folder here (${dir}) — nothing to do. Run it in your app's folder, or pass --migrations. (Smoodly Cloud keeps the schema current; a self-host app gets the folder from \`supabase init\`.)`;
|
|
21
21
|
export const NEXT_STEP = "Next: apply it — `supabase db push` (hosted) or `supabase migration up` (local).";
|
|
22
22
|
export const upToDate = (version, n) => `Up to date: core schema v${version}, every collection's view is current (${n} ${n === 1 ? "collection" : "collections"}).`;
|
|
23
23
|
export const KEY_NOT_CHECKED = "Key not checked: SMOODLY_URL and SMOODLY_SECRET_KEY are not both set here.";
|
|
@@ -84,7 +84,7 @@ export async function runMigrate(args, out, deps = {}) {
|
|
|
84
84
|
out(`smoodly: no supabase/migrations here (${appDir}) — run the check in the app's folder, or pass --migrations.`);
|
|
85
85
|
return 1;
|
|
86
86
|
}
|
|
87
|
-
out(NO_FOLDER);
|
|
87
|
+
out(NO_FOLDER(appDir));
|
|
88
88
|
return 0;
|
|
89
89
|
}
|
|
90
90
|
const collections = await (deps.load ?? loadCollections)(resolve(cwd, args.collections), cwd);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SMOODLY_VERSION = "0.0.
|
|
1
|
+
export declare const SMOODLY_VERSION = "0.0.44";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by scripts/write-version.mjs from package.json — do not edit.
|
|
2
|
-
export const SMOODLY_VERSION = "0.0.
|
|
2
|
+
export const SMOODLY_VERSION = "0.0.44";
|
package/package.json
CHANGED