@krate/core 0.4.0-rc.4 → 0.4.0-rc.5
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/bin/krate +2 -2
- package/dist/cli.js +1 -1
- package/dist/config.d.ts +7 -7
- package/dist/config.js +2 -2
- package/install.js +1 -1
- package/package.json +9 -9
package/bin/krate
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/bin/krate
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 35430665 bytes
|
|
4
|
+
sha256: 8cd36c27a3ed69f8739e983adf4961963f1acfc93e5cf2756266ffd1ef88c101
|
package/dist/cli.js
CHANGED
|
@@ -47,7 +47,7 @@ async function main() {
|
|
|
47
47
|
const cmd = args[0];
|
|
48
48
|
// Commands handled by the JS wrapper itself (cross-platform scaffolding) or
|
|
49
49
|
// that need no Go binary. Everything else is forwarded to the native binary so
|
|
50
|
-
// the two command lists cannot drift
|
|
50
|
+
// the two command lists cannot drift - a missing entry here was previously
|
|
51
51
|
// swallowing `krate types` and `krate check`.
|
|
52
52
|
switch (cmd) {
|
|
53
53
|
case 'init':
|
package/dist/config.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Typed configuration helpers for Krate.
|
|
3
3
|
*
|
|
4
4
|
* Use `defineConfig` in `krate.config.ts` to get full type-checking of every
|
|
5
|
-
* supported config key
|
|
5
|
+
* supported config key - unknown or misspelled keys will fail to compile.
|
|
6
6
|
*
|
|
7
7
|
* ```ts
|
|
8
8
|
* import { defineConfig, sitemap, docs } from '@krate/core';
|
|
@@ -155,9 +155,9 @@ export interface DocsPluginOptions {
|
|
|
155
155
|
*/
|
|
156
156
|
layout?: string;
|
|
157
157
|
/**
|
|
158
|
-
* Docs theme
|
|
158
|
+
* Docs theme - the component every generated docs page is rendered through.
|
|
159
159
|
* Like {@link layout}: a root-relative file path (`./` or `/`) or an npm
|
|
160
|
-
* package name (a docs theme installed from a registry)
|
|
160
|
+
* package name (a docs theme installed from a registry) - or a theme
|
|
161
161
|
* descriptor returned by a theme factory (bare object). `theme` and
|
|
162
162
|
* `layout` are aliases: set only one unless both resolve to the same
|
|
163
163
|
* component.
|
|
@@ -221,8 +221,8 @@ export interface KrateConfig {
|
|
|
221
221
|
};
|
|
222
222
|
/**
|
|
223
223
|
* Multi-language docs. Locales live in subdirectories of the docs content dir
|
|
224
|
-
* (`src/content/docs/<locale
|
|
225
|
-
* (`/docs
|
|
224
|
+
* (`src/content/docs/<locale>/...`); the default locale is unprefixed
|
|
225
|
+
* (`/docs/...`) and others are path-prefixed (`/fr/docs/...`).
|
|
226
226
|
*/
|
|
227
227
|
i18n?: {
|
|
228
228
|
defaultLocale?: string;
|
|
@@ -231,7 +231,7 @@ export interface KrateConfig {
|
|
|
231
231
|
};
|
|
232
232
|
/**
|
|
233
233
|
* Versioned docs. Versions live in subdirectories
|
|
234
|
-
* (`src/content/docs/<version
|
|
234
|
+
* (`src/content/docs/<version>/...`); the current version is unprefixed.
|
|
235
235
|
*/
|
|
236
236
|
versions?: {
|
|
237
237
|
current?: string;
|
|
@@ -347,7 +347,7 @@ export interface ContentCollection {
|
|
|
347
347
|
/** The shape passed to {@link defineContent}. */
|
|
348
348
|
export type ContentConfig = Record<string, ContentCollection>;
|
|
349
349
|
/**
|
|
350
|
-
* Define typed content collections. Optional identity helper
|
|
350
|
+
* Define typed content collections. Optional identity helper - you can also
|
|
351
351
|
* pass a plain object to `defineConfig({ content: {...} })`; it exists purely
|
|
352
352
|
* for type-checking and editor assistance.
|
|
353
353
|
*
|
package/dist/config.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Typed configuration helpers for Krate.
|
|
3
3
|
*
|
|
4
4
|
* Use `defineConfig` in `krate.config.ts` to get full type-checking of every
|
|
5
|
-
* supported config key
|
|
5
|
+
* supported config key - unknown or misspelled keys will fail to compile.
|
|
6
6
|
*
|
|
7
7
|
* ```ts
|
|
8
8
|
* import { defineConfig, sitemap, docs } from '@krate/core';
|
|
@@ -45,7 +45,7 @@ export function docs(options = {}) {
|
|
|
45
45
|
return { name: "docs", order: 10, options };
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
* Define typed content collections. Optional identity helper
|
|
48
|
+
* Define typed content collections. Optional identity helper - you can also
|
|
49
49
|
* pass a plain object to `defineConfig({ content: {...} })`; it exists purely
|
|
50
50
|
* for type-checking and editor assistance.
|
|
51
51
|
*
|
package/install.js
CHANGED
|
@@ -19,7 +19,7 @@ function resolveBinary() {
|
|
|
19
19
|
const binary = join(pkgPath, 'bin', binaryName);
|
|
20
20
|
if (existsSync(binary)) return binary;
|
|
21
21
|
} catch {
|
|
22
|
-
// Platform package not installed
|
|
22
|
+
// Platform package not installed - fall through to local binary.
|
|
23
23
|
}
|
|
24
24
|
const local = join(binDir, binaryName);
|
|
25
25
|
if (existsSync(local)) return local;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krate/core",
|
|
3
|
-
"version": "0.4.0-rc.
|
|
3
|
+
"version": "0.4.0-rc.5",
|
|
4
4
|
"description": "The Krate CLI — a Go-native static site generator with signal-based reactivity.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -37,20 +37,20 @@
|
|
|
37
37
|
"install.js"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@krate/plugin": "0.4.0-rc.
|
|
40
|
+
"@krate/plugin": "0.4.0-rc.5"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^20.19.43",
|
|
44
44
|
"typescript": "^5.5.0"
|
|
45
45
|
},
|
|
46
46
|
"optionalDependencies": {
|
|
47
|
-
"@krate/core-darwin-arm64": "0.4.0-rc.
|
|
48
|
-
"@krate/core-darwin-x64": "0.4.0-rc.
|
|
49
|
-
"@krate/core-linux-arm64": "0.4.0-rc.
|
|
50
|
-
"@krate/core-linux-x64": "0.4.0-rc.
|
|
51
|
-
"@krate/core-linux-x64-musl": "0.4.0-rc.
|
|
52
|
-
"@krate/core-win32-arm64": "0.4.0-rc.
|
|
53
|
-
"@krate/core-win32-x64": "0.4.0-rc.
|
|
47
|
+
"@krate/core-darwin-arm64": "0.4.0-rc.5",
|
|
48
|
+
"@krate/core-darwin-x64": "0.4.0-rc.5",
|
|
49
|
+
"@krate/core-linux-arm64": "0.4.0-rc.5",
|
|
50
|
+
"@krate/core-linux-x64": "0.4.0-rc.5",
|
|
51
|
+
"@krate/core-linux-x64-musl": "0.4.0-rc.5",
|
|
52
|
+
"@krate/core-win32-arm64": "0.4.0-rc.5",
|
|
53
|
+
"@krate/core-win32-x64": "0.4.0-rc.5"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "tsc",
|