@kronor/dtv 4.0.0 → 5.0.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 +6 -0
- package/bin/dtv.js +24 -0
- package/dist/assets/{index-BktfNqU5.js → index-BCuRRUo9.js} +215 -128
- package/dist/cli/dtv.js +512 -0
- package/dist/cli/dtv.js.map +1 -0
- package/dist/cli/typegen/schemaToTs.js +163 -0
- package/dist/cli/typegen/schemaToTs.js.map +1 -0
- package/dist/index.es.js +7930 -7750
- package/dist/index.html +1 -1
- package/dist/types/App.d.ts.map +1 -1
- package/dist/types/cli/dtv.d.ts +2 -0
- package/dist/types/cli/dtv.d.ts.map +1 -0
- package/dist/types/cli/typegen/schemaToTs.d.ts +13 -0
- package/dist/types/cli/typegen/schemaToTs.d.ts.map +1 -0
- package/dist/types/components/ActionButtons.d.ts +2 -1
- package/dist/types/components/ActionButtons.d.ts.map +1 -1
- package/dist/types/dsl/columns.d.ts +50 -23
- package/dist/types/dsl/columns.d.ts.map +1 -1
- package/dist/types/dsl/internal/queryForRow.d.ts +42 -0
- package/dist/types/dsl/internal/queryForRow.d.ts.map +1 -0
- package/dist/types/framework/actions.d.ts +13 -0
- package/dist/types/framework/actions.d.ts.map +1 -1
- package/dist/types/framework/column-definition.d.ts +205 -24
- package/dist/types/framework/column-definition.d.ts.map +1 -1
- package/dist/types/framework/hasura.d.ts +2 -2
- package/dist/types/framework/hasura.d.ts.map +1 -1
- package/dist/types/framework/native-runtime/index.d.ts +2 -2
- package/dist/types/framework/typelevel.d.ts +6 -0
- package/dist/types/framework/typelevel.d.ts.map +1 -0
- package/dist/types/lib/index.d.ts +2 -0
- package/dist/types/lib/index.d.ts.map +1 -1
- package/dist/types/typegen/index.d.ts +27 -0
- package/dist/types/typegen/index.d.ts.map +1 -0
- package/docs/typegen.md +86 -0
- package/package.json +18 -5
package/README.md
CHANGED
|
@@ -122,6 +122,12 @@ npm test
|
|
|
122
122
|
npm run test
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
+
## Type Generation (CLI)
|
|
126
|
+
|
|
127
|
+
DTV ships a CLI command for generating TypeScript types from a Hasura GraphQL schema:
|
|
128
|
+
|
|
129
|
+
- See `docs/typegen.md`
|
|
130
|
+
|
|
125
131
|
## Release Process
|
|
126
132
|
|
|
127
133
|
Automated release script performs validation (lint, build, unit + e2e tests), builds the library bundle, bumps the version, pushes git tags, and publishes to npm.
|
package/bin/dtv.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// Wrapper entrypoint for the published DTV CLI.
|
|
4
|
+
// The implementation lives in dist/cli so it can be compiled from TypeScript.
|
|
5
|
+
|
|
6
|
+
try {
|
|
7
|
+
await import('../dist/cli/dtv.js');
|
|
8
|
+
} catch (e) {
|
|
9
|
+
const msg = e instanceof Error ? e.message : String(e);
|
|
10
|
+
console.error(
|
|
11
|
+
[
|
|
12
|
+
'Failed to start DTV CLI: missing compiled output at dist/cli/dtv.js.',
|
|
13
|
+
'',
|
|
14
|
+
'This usually means @kronor/dtv was installed from an incomplete package (missing dist/).',
|
|
15
|
+
'',
|
|
16
|
+
'Fix:',
|
|
17
|
+
'- Upgrade to a version of @kronor/dtv that includes the CLI build artifacts, or',
|
|
18
|
+
'- If using a local checkout, run: npm run build:lib',
|
|
19
|
+
'',
|
|
20
|
+
`Original error: ${msg}`
|
|
21
|
+
].join('\n')
|
|
22
|
+
);
|
|
23
|
+
process.exitCode = 1;
|
|
24
|
+
}
|