@dotcom-tool-kit/config 2.0.0-beta.0 → 2.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/CHANGELOG.md +144 -0
- package/lib/index.d.ts +3 -8
- package/lib/index.d.ts.map +1 -1
- package/package.json +7 -5
- package/src/index.ts +1 -10
- package/tsconfig.json +0 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
### Dependencies
|
|
4
|
+
|
|
5
|
+
* The following workspace dependencies were updated
|
|
6
|
+
* dependencies
|
|
7
|
+
* @dotcom-tool-kit/schemas bumped from ^1.0.0 to ^1.1.0
|
|
8
|
+
|
|
9
|
+
### Dependencies
|
|
10
|
+
|
|
11
|
+
* The following workspace dependencies were updated
|
|
12
|
+
* dependencies
|
|
13
|
+
* @dotcom-tool-kit/schemas bumped from ^1.1.0 to ^1.1.1
|
|
14
|
+
|
|
15
|
+
### Dependencies
|
|
16
|
+
|
|
17
|
+
* The following workspace dependencies were updated
|
|
18
|
+
* dependencies
|
|
19
|
+
* @dotcom-tool-kit/schemas bumped from ^1.1.1 to ^1.2.0
|
|
20
|
+
* @dotcom-tool-kit/validated bumped from ^1.0.0 to ^1.0.1
|
|
21
|
+
|
|
22
|
+
### Dependencies
|
|
23
|
+
|
|
24
|
+
* The following workspace dependencies were updated
|
|
25
|
+
* dependencies
|
|
26
|
+
* @dotcom-tool-kit/schemas bumped from ^1.2.0 to ^1.3.0
|
|
27
|
+
|
|
28
|
+
### Dependencies
|
|
29
|
+
|
|
30
|
+
* The following workspace dependencies were updated
|
|
31
|
+
* dependencies
|
|
32
|
+
* @dotcom-tool-kit/schemas bumped from ^1.3.0 to ^1.4.0
|
|
33
|
+
* @dotcom-tool-kit/validated bumped from ^1.0.1 to ^1.0.2
|
|
34
|
+
|
|
35
|
+
### Dependencies
|
|
36
|
+
|
|
37
|
+
* The following workspace dependencies were updated
|
|
38
|
+
* dependencies
|
|
39
|
+
* @dotcom-tool-kit/schemas bumped from ^1.4.0 to ^1.5.0
|
|
40
|
+
|
|
41
|
+
### Dependencies
|
|
42
|
+
|
|
43
|
+
* The following workspace dependencies were updated
|
|
44
|
+
* dependencies
|
|
45
|
+
* @dotcom-tool-kit/schemas bumped from ^1.5.0 to ^1.6.0
|
|
46
|
+
|
|
47
|
+
### Dependencies
|
|
48
|
+
|
|
49
|
+
* The following workspace dependencies were updated
|
|
50
|
+
* dependencies
|
|
51
|
+
* @dotcom-tool-kit/schemas bumped from ^1.6.0 to ^1.6.1
|
|
52
|
+
|
|
53
|
+
### Dependencies
|
|
54
|
+
|
|
55
|
+
* The following workspace dependencies were updated
|
|
56
|
+
* dependencies
|
|
57
|
+
* @dotcom-tool-kit/schemas bumped from ^1.6.1 to ^1.6.2
|
|
58
|
+
|
|
59
|
+
### Dependencies
|
|
60
|
+
|
|
61
|
+
* The following workspace dependencies were updated
|
|
62
|
+
* dependencies
|
|
63
|
+
* @dotcom-tool-kit/schemas bumped from ^1.6.2 to ^1.7.0
|
|
64
|
+
|
|
65
|
+
### Dependencies
|
|
66
|
+
|
|
67
|
+
* The following workspace dependencies were updated
|
|
68
|
+
* dependencies
|
|
69
|
+
* @dotcom-tool-kit/schemas bumped from ^1.7.0 to ^1.8.0
|
|
70
|
+
|
|
71
|
+
### Dependencies
|
|
72
|
+
|
|
73
|
+
* The following workspace dependencies were updated
|
|
74
|
+
* dependencies
|
|
75
|
+
* @dotcom-tool-kit/schemas bumped from ^1.8.0 to ^1.9.0
|
|
76
|
+
|
|
77
|
+
## [2.0.0](https://github.com/Financial-Times/dotcom-tool-kit/compare/config-v1.1.1...config-v2.0.0) (2025-10-28)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### ⚠ BREAKING CHANGES
|
|
81
|
+
|
|
82
|
+
* declare Node engines in all libraries
|
|
83
|
+
|
|
84
|
+
### Features
|
|
85
|
+
|
|
86
|
+
* declare Node engines in all libraries ([648d4d0](https://github.com/Financial-Times/dotcom-tool-kit/commit/648d4d0267d329655056ad38614b6659c80f5409))
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Dependencies
|
|
90
|
+
|
|
91
|
+
* The following workspace dependencies were updated
|
|
92
|
+
* dependencies
|
|
93
|
+
* @dotcom-tool-kit/conflict bumped from ^1.0.1 to ^2.0.0
|
|
94
|
+
* @dotcom-tool-kit/plugin bumped from ^1.1.0 to ^2.0.0
|
|
95
|
+
* @dotcom-tool-kit/validated bumped from ^1.0.3 to ^2.0.0
|
|
96
|
+
|
|
97
|
+
## [1.1.1](https://github.com/Financial-Times/dotcom-tool-kit/compare/config-v1.1.0...config-v1.1.1) (2025-05-06)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### Dependencies
|
|
101
|
+
|
|
102
|
+
* The following workspace dependencies were updated
|
|
103
|
+
* dependencies
|
|
104
|
+
* @dotcom-tool-kit/validated bumped from ^1.0.2 to ^1.0.3
|
|
105
|
+
|
|
106
|
+
## [1.1.0](https://github.com/Financial-Times/dotcom-tool-kit/compare/config-v1.0.12...config-v1.1.0) (2025-02-17)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### Features
|
|
110
|
+
|
|
111
|
+
* allow option schemas to be loaded from plugins ([58310c8](https://github.com/Financial-Times/dotcom-tool-kit/commit/58310c88077e332473b36dacf142881f20700c2a))
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
### Dependencies
|
|
115
|
+
|
|
116
|
+
* The following workspace dependencies were updated
|
|
117
|
+
* dependencies
|
|
118
|
+
* @dotcom-tool-kit/conflict bumped from ^1.0.0 to ^1.0.1
|
|
119
|
+
* @dotcom-tool-kit/plugin bumped from ^1.0.0 to ^1.1.0
|
|
120
|
+
|
|
121
|
+
## 1.0.0 (2024-09-10)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### ⚠ BREAKING CHANGES
|
|
125
|
+
|
|
126
|
+
* rename SchemaOptions to PluginOptions
|
|
127
|
+
|
|
128
|
+
### Features
|
|
129
|
+
|
|
130
|
+
* **cli:** add support for tags in config that resolve based on options ([8df97b9](https://github.com/Financial-Times/dotcom-tool-kit/commit/8df97b9e6d595740d4b94f34fe5a3f0dccef0994))
|
|
131
|
+
* collect and store the hook-managed files in config ([190afc5](https://github.com/Financial-Times/dotcom-tool-kit/commit/190afc50bdbded129d3e090ebb0e041ba8443b27))
|
|
132
|
+
* load plugin rcfile task options into config ([3f1b1b1](https://github.com/Financial-Times/dotcom-tool-kit/commit/3f1b1b149e9e5c9c0d00b7f85697469b0ece472a))
|
|
133
|
+
* split remaining bits of types into config and plugins packages ([6cde9b9](https://github.com/Financial-Times/dotcom-tool-kit/commit/6cde9b90d4cd02383ae1b18ca38e0843e6c3d3ab))
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
### Bug Fixes
|
|
137
|
+
|
|
138
|
+
* **cli:** avoid hook installation conflicts between niblings ([1d70759](https://github.com/Financial-Times/dotcom-tool-kit/commit/1d70759a8139dca5c4d45f6833828914a47e96f0))
|
|
139
|
+
* remove conflicts from task options in valid config type ([5c8a1e0](https://github.com/Financial-Times/dotcom-tool-kit/commit/5c8a1e0845eac058d76512d86702bf9805572f55))
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
### Code Refactoring
|
|
143
|
+
|
|
144
|
+
* rename SchemaOptions to PluginOptions ([0ce24db](https://github.com/Financial-Times/dotcom-tool-kit/commit/0ce24db808d077a0e4647d3bef9eaf55223a1cdf))
|
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,EACN,gBAAgB,EAChB,cAAc,EACf,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,
|
|
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,E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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": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib",
|
|
6
6
|
"scripts": {
|
|
@@ -10,9 +10,11 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dotcom-tool-kit/conflict": "2.0.0
|
|
14
|
-
"@dotcom-tool-kit/plugin": "2.0.0
|
|
15
|
-
"@dotcom-tool-kit/
|
|
16
|
-
|
|
13
|
+
"@dotcom-tool-kit/conflict": "^2.0.0",
|
|
14
|
+
"@dotcom-tool-kit/plugin": "^2.0.0",
|
|
15
|
+
"@dotcom-tool-kit/validated": "^2.0.0"
|
|
16
|
+
},
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=20.x"
|
|
17
19
|
}
|
|
18
20
|
}
|
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
|
}
|