@cloudcannon/configuration-types 0.0.15 → 0.0.17
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 +7 -37
- package/{build/cloudcannon-config.json → dist/cloudcannon-config.schema.json} +1056 -1208
- package/package.json +13 -14
- package/src/build-coupled.d.ts +6 -6
- package/src/configuration.d.ts +330 -244
- package/src/markdown.d.ts +98 -0
- package/build/cloudcannon-config-eleventy.json +0 -8734
- package/build/cloudcannon-config-hugo.json +0 -8736
- package/build/cloudcannon-config-jekyll.json +0 -8729
- package/build/cloudcannon-config-reader.json +0 -8775
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcannon/configuration-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "Contains TypeScript declarations and generates JSONSchema files for the CloudCannon configuration file.",
|
|
5
5
|
"author": "CloudCannon <support@cloudcannon.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,13 +18,12 @@
|
|
|
18
18
|
"email": "support@cloudcannon.com"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
|
-
"
|
|
22
|
-
"build
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"prebuild": "mkdir -p build && rimraf --glob 'build/*.json'",
|
|
21
|
+
"prebuild": "rimraf dist && mkdir -p dist",
|
|
22
|
+
"build": "ts-json-schema-generator --no-top-ref --markdown-description --path src/index.d.ts --type Configuration --out dist/cloudcannon-config.schema.json --id 'https://schema.cloudcannon.com/cloudcannon-config.schema.json'",
|
|
23
|
+
"lint": "npm run lint:tsc && npm run lint:format",
|
|
24
|
+
"lint:tsc": "tsc --noEmit",
|
|
25
|
+
"lint:format": "prettier -c src",
|
|
26
|
+
"format": "prettier -w src",
|
|
28
27
|
"test": "exit 0"
|
|
29
28
|
},
|
|
30
29
|
"main": "./src/index.d.ts",
|
|
@@ -34,17 +33,17 @@
|
|
|
34
33
|
},
|
|
35
34
|
"files": [
|
|
36
35
|
"src/**/*",
|
|
37
|
-
"
|
|
36
|
+
"dist/**/*"
|
|
38
37
|
],
|
|
39
38
|
"dependencies": {
|
|
40
|
-
"@cloudcannon/snippet-types": "^1.1.
|
|
39
|
+
"@cloudcannon/snippet-types": "^1.1.12",
|
|
41
40
|
"ts-json-schema-generator": "^2.2.0"
|
|
42
41
|
},
|
|
43
42
|
"devDependencies": {
|
|
44
|
-
"@types/node": "^
|
|
45
|
-
"
|
|
46
|
-
"prettier": "^3.2.5",
|
|
43
|
+
"@types/node": "^22.9.1",
|
|
44
|
+
"prettier": "^3.3.3",
|
|
47
45
|
"prettier-plugin-jsdoc": "^1.3.0",
|
|
48
|
-
"rimraf": "^
|
|
46
|
+
"rimraf": "^6.0.1",
|
|
47
|
+
"typescript": "^5.6.3"
|
|
49
48
|
}
|
|
50
49
|
}
|
package/src/build-coupled.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollectionConfig, Configuration, DataConfigEntry, Paths } from './configuration';
|
|
1
|
+
import type { CollectionConfig, Configuration, DataConfigEntry, Paths } from './configuration';
|
|
2
2
|
|
|
3
3
|
export interface BuildCoupledPaths extends Paths {
|
|
4
4
|
/**
|
|
@@ -145,15 +145,15 @@ interface ParsedCollectionItem {
|
|
|
145
145
|
/**
|
|
146
146
|
* The path to the file this was parsed from.
|
|
147
147
|
*/
|
|
148
|
-
path:
|
|
148
|
+
path: string;
|
|
149
149
|
/**
|
|
150
150
|
* The collection key this is assigned to. Matches keys in `collections_config`.
|
|
151
151
|
*/
|
|
152
|
-
collection:
|
|
152
|
+
collection: string;
|
|
153
153
|
/**
|
|
154
154
|
* The URL this file is served at once built.
|
|
155
155
|
*/
|
|
156
|
-
url?:
|
|
156
|
+
url?: string;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
interface WithIntegrationOutput {
|
|
@@ -191,7 +191,7 @@ interface WithIntegrationOutput {
|
|
|
191
191
|
/**
|
|
192
192
|
* Map of collection keys to parsed collection files. Keys match keys in `collections_config`.
|
|
193
193
|
*/
|
|
194
|
-
collections?: Record<string, ParsedCollectionItem>;
|
|
194
|
+
collections?: Record<string, ParsedCollectionItem[]>;
|
|
195
195
|
/**
|
|
196
196
|
* Map of build file paths to MD5s.
|
|
197
197
|
*/
|
|
@@ -215,7 +215,7 @@ export interface JekyllIntegrationOutput extends JekyllConfiguration, WithIntegr
|
|
|
215
215
|
/**
|
|
216
216
|
* @deprecated Do not use.
|
|
217
217
|
*/
|
|
218
|
-
defaults:
|
|
218
|
+
defaults: unknown;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
/**
|