Inline keybindings schema source for scripts
- Import keybindings types directly from contracts source - Narrow TS includes to the schema generation inputs
This commit is contained in:
1 parent
56f56f5506
commit
c13fc4f6f8
4 files changed
+14
-8
No files matched your search
@@ -21,5 +21,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"include": ["src", "tsdown.config.ts", "scripts", "integration", "../../scripts/lib"]
|
||||
"include": [
|
||||
"src",
|
||||
"tsdown.config.ts",
|
||||
"scripts",
|
||||
"integration",
|
||||
"../../scripts/lib/brand-assets.ts",
|
||||
"../../scripts/lib/resolve-catalog.ts"
|
||||
]
|
||||
}
|
||||
@@ -10,11 +10,6 @@
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./src/index.ts",
|
||||
"exports": {
|
||||
"./keybindings": {
|
||||
"types": "./src/keybindings.ts",
|
||||
"import": "./src/keybindings.ts",
|
||||
"require": "./src/keybindings.ts"
|
||||
},
|
||||
"./settings": {
|
||||
"types": "./src/settings.ts",
|
||||
"import": "./src/settings.ts",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { KeybindingsConfig } from "@t3tools/contracts/keybindings";
|
||||
import { KeybindingsConfig } from "../../packages/contracts/src/keybindings.ts";
|
||||
import { buildJsonSchemaDocument, writeJsonSchemaArtifacts } from "./json-schema";
|
||||
|
||||
export const KEYBINDINGS_SCHEMA_RELATIVE_PATH = "apps/marketing/public/schemas/keybindings.json";
|
||||
|
||||
@@ -12,5 +12,9 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"include": ["**/*.ts"]
|
||||
"include": [
|
||||
"**/*.ts",
|
||||
"../packages/contracts/src/baseSchemas.ts",
|
||||
"../packages/contracts/src/keybindings.ts"
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user