@marktiderman/genesis-cli 1.16.2 → 1.17.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 +158 -8
- package/dist/cli.js +1620 -686
- package/dist/cli.js.map +1 -1
- package/dist/{config-DewJ3DR6.d.ts → config-1jP8eCZy.d.ts} +7 -0
- package/dist/doctor.d.ts +5 -4
- package/dist/doctor.js +577 -215
- package/dist/doctor.js.map +1 -1
- package/dist/expo.d.ts +3 -2
- package/dist/expo.js.map +1 -1
- package/dist/genesis-catalog.json +131 -31
- package/dist/index.d.ts +10 -3
- package/dist/index.js +581 -219
- package/dist/index.js.map +1 -1
- package/dist/starter/__tests__/starter.test.ts +5 -1
- package/dist/starter/tailwind.config.mjs +3 -1
- package/dist/vite.js +577 -215
- package/dist/vite.js.map +1 -1
- package/package.json +9 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { FileSystem, ScaffoldLogger, ScaffoldOptions, ScaffoldResult, planScaffold, runScaffold, validateConsumerName } from './scaffolder.js';
|
|
2
2
|
import postgres from 'postgres';
|
|
3
3
|
export { RunDoctorOptions, defineDoctorPlugin, formatReport, runDoctor } from './doctor.js';
|
|
4
|
-
export { D as DoctorConfig, f as DoctorConfigError, g as DoctorContext, h as DoctorPlugin, i as DoctorResult, F as Finding, c as GenesisConfigError, j as GenesisConfigFile, b as GenesisLinks, r as readGenesisConfig, v as validateLinks } from './config-
|
|
4
|
+
export { D as DoctorConfig, f as DoctorConfigError, g as DoctorContext, h as DoctorPlugin, i as DoctorResult, F as Finding, c as GenesisConfigError, j as GenesisConfigFile, b as GenesisLinks, r as readGenesisConfig, v as validateLinks } from './config-1jP8eCZy.js';
|
|
5
|
+
import '@marktiderman/genesis-features';
|
|
5
6
|
|
|
6
7
|
type StorageType = "string" | "number" | "boolean" | "datetime" | "json";
|
|
7
8
|
interface IntrospectedColumn {
|
|
@@ -57,10 +58,14 @@ interface TableSettings {
|
|
|
57
58
|
/** What one row is called ("brand"), and several when not `noun` + "s". */
|
|
58
59
|
noun?: string;
|
|
59
60
|
nounPlural?: string;
|
|
61
|
+
/** The key, by column name, for a relation the catalog gives none (a view that joins tables). */
|
|
62
|
+
key?: string[];
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
type Sql = postgres.Sql;
|
|
63
|
-
declare function introspectPostgres(sql: Sql, schemas: readonly string[]
|
|
66
|
+
declare function introspectPostgres(sql: Sql, schemas: readonly string[], options?: {
|
|
67
|
+
warn?: (message: string) => void;
|
|
68
|
+
}): Promise<IntrospectedTable[]>;
|
|
64
69
|
|
|
65
70
|
interface OpenApiProperty {
|
|
66
71
|
type?: string;
|
|
@@ -90,7 +95,9 @@ interface OpenApiDocument {
|
|
|
90
95
|
* Tables from the document, all in `schema` (PostgREST serves one schema
|
|
91
96
|
* per document; a Supabase project's is `public`).
|
|
92
97
|
*/
|
|
93
|
-
declare function introspectOpenApi(doc: OpenApiDocument, schema?: string
|
|
98
|
+
declare function introspectOpenApi(doc: OpenApiDocument, schema?: string, options?: {
|
|
99
|
+
warn?: (message: string) => void;
|
|
100
|
+
}): IntrospectedTable[];
|
|
94
101
|
|
|
95
102
|
interface EmitOptions {
|
|
96
103
|
/** Where the contract came from, for the header. Never include a secret. */
|