@dotcom-tool-kit/config 1.0.12 → 1.1.1
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/CHANGELOG.md +24 -0
- package/lib/index.d.ts +3 -8
- package/lib/index.d.ts.map +1 -1
- package/package.json +4 -5
- package/src/index.ts +1 -10
- package/tsconfig.json +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -74,6 +74,30 @@
|
|
|
74
74
|
* dependencies
|
|
75
75
|
* @dotcom-tool-kit/schemas bumped from ^1.8.0 to ^1.9.0
|
|
76
76
|
|
|
77
|
+
## [1.1.1](https://github.com/Financial-Times/dotcom-tool-kit/compare/config-v1.1.0...config-v1.1.1) (2025-05-06)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### Dependencies
|
|
81
|
+
|
|
82
|
+
* The following workspace dependencies were updated
|
|
83
|
+
* dependencies
|
|
84
|
+
* @dotcom-tool-kit/validated bumped from ^1.0.2 to ^1.0.3
|
|
85
|
+
|
|
86
|
+
## [1.1.0](https://github.com/Financial-Times/dotcom-tool-kit/compare/config-v1.0.12...config-v1.1.0) (2025-02-17)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Features
|
|
90
|
+
|
|
91
|
+
* allow option schemas to be loaded from plugins ([58310c8](https://github.com/Financial-Times/dotcom-tool-kit/commit/58310c88077e332473b36dacf142881f20700c2a))
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Dependencies
|
|
95
|
+
|
|
96
|
+
* The following workspace dependencies were updated
|
|
97
|
+
* dependencies
|
|
98
|
+
* @dotcom-tool-kit/conflict bumped from ^1.0.0 to ^1.0.1
|
|
99
|
+
* @dotcom-tool-kit/plugin bumped from ^1.0.0 to ^1.1.0
|
|
100
|
+
|
|
77
101
|
## 1.0.0 (2024-09-10)
|
|
78
102
|
|
|
79
103
|
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Validated } from '@dotcom-tool-kit/validated';
|
|
2
2
|
import type { CommandTask, EntryPoint, Plugin, OptionsForPlugin, OptionsForTask } from '@dotcom-tool-kit/plugin';
|
|
3
|
-
import type { PluginOptions } from '@dotcom-tool-kit/schemas';
|
|
4
3
|
import type { Conflict } from '@dotcom-tool-kit/conflict';
|
|
5
4
|
export interface RawConfig {
|
|
6
5
|
root: string;
|
|
@@ -36,12 +35,6 @@ export type ValidPluginsConfig = Omit<RawConfig, 'plugins'> & {
|
|
|
36
35
|
[id: string]: Plugin;
|
|
37
36
|
};
|
|
38
37
|
};
|
|
39
|
-
export type ValidOptionsForPlugin<Id extends keyof PluginOptions> = Omit<OptionsForPlugin, 'options'> & {
|
|
40
|
-
options: PluginOptions[Id];
|
|
41
|
-
};
|
|
42
|
-
export type ValidPluginOptions = {
|
|
43
|
-
[Id in keyof PluginOptions]: ValidOptionsForPlugin<Id>;
|
|
44
|
-
};
|
|
45
38
|
export type ValidConfig = Omit<ValidPluginsConfig, 'tasks' | 'commandTasks' | 'pluginOptions' | 'taskOptions' | 'hooks'> & {
|
|
46
39
|
tasks: {
|
|
47
40
|
[id: string]: EntryPoint;
|
|
@@ -49,7 +42,9 @@ export type ValidConfig = Omit<ValidPluginsConfig, 'tasks' | 'commandTasks' | 'p
|
|
|
49
42
|
commandTasks: {
|
|
50
43
|
[id: string]: CommandTask;
|
|
51
44
|
};
|
|
52
|
-
pluginOptions:
|
|
45
|
+
pluginOptions: {
|
|
46
|
+
[id: string]: OptionsForPlugin;
|
|
47
|
+
};
|
|
53
48
|
taskOptions: {
|
|
54
49
|
[id: string]: OptionsForTask;
|
|
55
50
|
};
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,MAAM,E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AAE;QAAE,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAA;KAAE,CAAA;IAC1D,KAAK,EAAE,UAAU,EAAE,CAAA;IACnB,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC9B;AAED,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,GAAG;IAC5D,OAAO,EAAE;QAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,kBAAkB,EAClB,OAAO,GAAG,cAAc,GAAG,eAAe,GAAG,aAAa,GAAG,OAAO,CACrE,GAAG;IACF,KAAK,EAAE;QAAE,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAA;IACnC,YAAY,EAAE;QAAE,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,CAAA;KAAE,CAAA;IAC3C,aAAa,EAAE;QAAE,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,CAAA;KAAE,CAAA;IACjD,WAAW,EAAE;QAAE,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,CAAA;KAAE,CAAA;IAC7C,KAAK,EAAE;QAAE,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAA;CACpC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcom-tool-kit/config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib",
|
|
6
6
|
"scripts": {
|
|
@@ -10,9 +10,8 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dotcom-tool-kit/conflict": "^1.0.
|
|
14
|
-
"@dotcom-tool-kit/plugin": "^1.
|
|
15
|
-
"@dotcom-tool-kit/
|
|
16
|
-
"@dotcom-tool-kit/validated": "^1.0.2"
|
|
13
|
+
"@dotcom-tool-kit/conflict": "^1.0.1",
|
|
14
|
+
"@dotcom-tool-kit/plugin": "^1.1.0",
|
|
15
|
+
"@dotcom-tool-kit/validated": "^1.0.3"
|
|
17
16
|
}
|
|
18
17
|
}
|
package/src/index.ts
CHANGED
|
@@ -6,7 +6,6 @@ import type {
|
|
|
6
6
|
OptionsForPlugin,
|
|
7
7
|
OptionsForTask
|
|
8
8
|
} from '@dotcom-tool-kit/plugin'
|
|
9
|
-
import type { PluginOptions } from '@dotcom-tool-kit/schemas'
|
|
10
9
|
import type { Conflict } from '@dotcom-tool-kit/conflict'
|
|
11
10
|
|
|
12
11
|
export interface RawConfig {
|
|
@@ -31,21 +30,13 @@ export type ValidPluginsConfig = Omit<RawConfig, 'plugins'> & {
|
|
|
31
30
|
plugins: { [id: string]: Plugin }
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
export type ValidOptionsForPlugin<Id extends keyof PluginOptions> = Omit<OptionsForPlugin, 'options'> & {
|
|
35
|
-
options: PluginOptions[Id]
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export type ValidPluginOptions = {
|
|
39
|
-
[Id in keyof PluginOptions]: ValidOptionsForPlugin<Id>
|
|
40
|
-
}
|
|
41
|
-
|
|
42
33
|
export type ValidConfig = Omit<
|
|
43
34
|
ValidPluginsConfig,
|
|
44
35
|
'tasks' | 'commandTasks' | 'pluginOptions' | 'taskOptions' | 'hooks'
|
|
45
36
|
> & {
|
|
46
37
|
tasks: { [id: string]: EntryPoint }
|
|
47
38
|
commandTasks: { [id: string]: CommandTask }
|
|
48
|
-
pluginOptions:
|
|
39
|
+
pluginOptions: { [id: string]: OptionsForPlugin }
|
|
49
40
|
taskOptions: { [id: string]: OptionsForTask }
|
|
50
41
|
hooks: { [id: string]: EntryPoint }
|
|
51
42
|
}
|