fact-kit-facts 0.9.0 → 0.9.1-alpha.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/dist/index.json +145 -9
- package/package.json +1 -1
package/dist/index.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"entry": ".",
|
|
6
6
|
"component": "fact-kit-facts.npm",
|
|
7
7
|
"describes": {
|
|
8
|
-
"fact-kit-js": "0.14.
|
|
8
|
+
"fact-kit-js": "0.14.1-alpha.1"
|
|
9
9
|
},
|
|
10
10
|
"publish": {
|
|
11
11
|
"target": "npm",
|
|
@@ -5962,6 +5962,67 @@
|
|
|
5962
5962
|
}
|
|
5963
5963
|
}
|
|
5964
5964
|
}
|
|
5965
|
+
},
|
|
5966
|
+
{
|
|
5967
|
+
"since": "0.14.1-alpha.1",
|
|
5968
|
+
"content": {
|
|
5969
|
+
"value": {
|
|
5970
|
+
"config": {
|
|
5971
|
+
"aggregate": {
|
|
5972
|
+
".": "<component package>",
|
|
5973
|
+
"<sub-path>": "<component package>"
|
|
5974
|
+
}
|
|
5975
|
+
},
|
|
5976
|
+
"componentPackage": {
|
|
5977
|
+
"name": "<publish name without @<org>/>-facts, e.g. `promptex-macos-facts`, but a publish name that already ends in `-facts` is used as it is, e.g. `blueprint-facts`. When that is also the base of another component package or of the aggregate in the repository, every one of them adds `.<publish target>`, e.g. `fact-kit-facts.npm` and `fact-kit-facts.go`. `@<scope>/` is added to every one of these names when the access of the unit that publishes the aggregate package is restricted, whatever the access of the unit a component describes",
|
|
5978
|
+
"private": true,
|
|
5979
|
+
"dependedOnBy": "devDependencies of the aggregate, \"workspace:*\""
|
|
5980
|
+
},
|
|
5981
|
+
"placement": [
|
|
5982
|
+
{
|
|
5983
|
+
"component": "root, one entry",
|
|
5984
|
+
"dir": ".",
|
|
5985
|
+
"spec": "<aggregate>"
|
|
5986
|
+
},
|
|
5987
|
+
{
|
|
5988
|
+
"component": "root, several entries",
|
|
5989
|
+
"dir": "<entry>",
|
|
5990
|
+
"spec": "<aggregate>/<entry>",
|
|
5991
|
+
"conflict": "the entry has the name of another sub-path"
|
|
5992
|
+
},
|
|
5993
|
+
{
|
|
5994
|
+
"component": "sub-path, one entry",
|
|
5995
|
+
"dir": "<sub-path>",
|
|
5996
|
+
"spec": "<aggregate>/<sub-path>"
|
|
5997
|
+
},
|
|
5998
|
+
{
|
|
5999
|
+
"component": "sub-path, several entries",
|
|
6000
|
+
"dir": "<sub-path>/<entry>",
|
|
6001
|
+
"spec": "<aggregate>/<sub-path>/<entry>"
|
|
6002
|
+
}
|
|
6003
|
+
],
|
|
6004
|
+
"exports": [
|
|
6005
|
+
"./<dir>/index.json",
|
|
6006
|
+
"./<dir>/schemas/*",
|
|
6007
|
+
"./<sub-path>/examples.json (`./examples.json` for the root), for each component that built examples"
|
|
6008
|
+
],
|
|
6009
|
+
"rewrittenInIndex": {
|
|
6010
|
+
"package": "the aggregate package name",
|
|
6011
|
+
"entry": "the path of <dir>, `.` for the root",
|
|
6012
|
+
"component": "the component package name"
|
|
6013
|
+
},
|
|
6014
|
+
"rewrittenInFacts": "derivedFrom and movedTo that name a component package become the published spec",
|
|
6015
|
+
"examples": {
|
|
6016
|
+
"file": "examples.json",
|
|
6017
|
+
"dir": "<sub-path> (empty for the root), whatever number of entries the component has",
|
|
6018
|
+
"spec": "<aggregate>/<sub-path>, which is what `diff --impact` prints as `spec` of an example",
|
|
6019
|
+
"rewritten": {
|
|
6020
|
+
"package": "the aggregate package name"
|
|
6021
|
+
},
|
|
6022
|
+
"copied": "the groups as built by the component, unchanged"
|
|
6023
|
+
}
|
|
6024
|
+
}
|
|
6025
|
+
}
|
|
5965
6026
|
}
|
|
5966
6027
|
],
|
|
5967
6028
|
"tool": "fact-kit",
|
|
@@ -5977,7 +6038,7 @@
|
|
|
5977
6038
|
}
|
|
5978
6039
|
},
|
|
5979
6040
|
"componentPackage": {
|
|
5980
|
-
"name": "<publish name without @<org>/>-facts, e.g. `promptex-macos-facts`. When that is also the base of another component package or of the aggregate in the repository, every one of them adds `.<publish target>`, e.g. `fact-kit-facts.npm` and `fact-kit-facts.go`. `@<scope>/` is added to every one of these names when the access of the unit that publishes the aggregate package is restricted, whatever the access of the unit a component describes",
|
|
6041
|
+
"name": "<publish name without @<org>/>-facts, e.g. `promptex-macos-facts`, but a publish name that already ends in `-facts` is used as it is, e.g. `blueprint-facts`. When that is also the base of another component package or of the aggregate in the repository, every one of them adds `.<publish target>`, e.g. `fact-kit-facts.npm` and `fact-kit-facts.go`. `@<scope>/` is added to every one of these names when the access of the unit that publishes the aggregate package is restricted, whatever the access of the unit a component describes",
|
|
5981
6042
|
"private": true,
|
|
5982
6043
|
"dependedOnBy": "devDependencies of the aggregate, \"workspace:*\""
|
|
5983
6044
|
},
|
|
@@ -6040,8 +6101,82 @@
|
|
|
6040
6101
|
"description": {
|
|
6041
6102
|
"en": "What `check` expects the package names of an aggregate and its component packages to be, and the two problem codes it reports. The names are `<base>`, with a publish target suffix when the base is shared and `@<scope>/` in front when the aggregate unit is restricted."
|
|
6042
6103
|
},
|
|
6043
|
-
"
|
|
6044
|
-
|
|
6104
|
+
"variants": [
|
|
6105
|
+
{
|
|
6106
|
+
"since": "0.11.0",
|
|
6107
|
+
"content": {
|
|
6108
|
+
"value": {
|
|
6109
|
+
"policy": {
|
|
6110
|
+
"file": "`release-policy.json` at `repoRoot`. A repository without it gets neither `policy-scope` nor `facts-name`.",
|
|
6111
|
+
"access": "`public` or `restricted`, at the top and, to override it, in a unit. `restricted` means the package is non-public once published.",
|
|
6112
|
+
"scope": "Top-level, such as `@carlos-space`. Required when the top or any unit is `restricted`, and `check` reports `policy-scope` when it is missing."
|
|
6113
|
+
},
|
|
6114
|
+
"checkedIn": "The aggregate package, the one whose config has `aggregate`. `check` reads its own name and every component package it can find: in node_modules under the aggregate, else in a directory that the `packages` patterns of `pnpm-workspace.yaml` at `repoRoot` match and whose package.json has that name. The sources are read from the `factsDir` of the component's own config. A component that is not found, whose facts do not load, or whose facts name no unit is not checked, and `check` prints a warning with code `facts-name` that says why, so the name is not skipped silently.",
|
|
6115
|
+
"aggregateUnit": "The `component` that `release-please-config.json` gives to the directory of the aggregate package, else the unit named like the aggregate package without its scope. When the policy `units` has neither, the access of the repository applies.",
|
|
6116
|
+
"base": {
|
|
6117
|
+
"aggregate": "<name without @<scope>/>, which must end in `-facts`: `<RepoName>-facts` in a product repository, `<SourceTypeName>-facts` in a facts repository.",
|
|
6118
|
+
"component": "<publish.name without @<org>/>-facts when the entry has `publish`, else <the one key of describes>-facts, else <the sub-path of the component in `aggregate`>-facts. The component at the root sub-path `.` that has none of the three gets a warning and is not checked."
|
|
6119
|
+
},
|
|
6120
|
+
"prefix": "`@<scope>/` on the aggregate and on every component when the access of the aggregate unit is `restricted`, and none when it is `public`. The access of the unit a component describes is not read, whether or not the policy lists that unit.",
|
|
6121
|
+
"suffix": "`.<publish.target>` on every component whose base name is also the base name of the aggregate or of another component, the npm one included. A shared base name with no publish target is reported, and the unit has to be renamed.",
|
|
6122
|
+
"examples": {
|
|
6123
|
+
"fact-kit (public)": [
|
|
6124
|
+
"fact-kit-facts",
|
|
6125
|
+
"fact-kit-facts.npm",
|
|
6126
|
+
"fact-kit-facts.pypi",
|
|
6127
|
+
"fact-kit-facts.go"
|
|
6128
|
+
],
|
|
6129
|
+
"restricted, scope @carlos-space": [
|
|
6130
|
+
"@carlos-space/demo-facts",
|
|
6131
|
+
"@carlos-space/demo-facts.npm",
|
|
6132
|
+
"@carlos-space/other-facts"
|
|
6133
|
+
]
|
|
6134
|
+
}
|
|
6135
|
+
}
|
|
6136
|
+
}
|
|
6137
|
+
},
|
|
6138
|
+
{
|
|
6139
|
+
"since": "0.14.1-alpha.1",
|
|
6140
|
+
"content": {
|
|
6141
|
+
"value": {
|
|
6142
|
+
"policy": {
|
|
6143
|
+
"file": "`release-policy.json` at `repoRoot`. A repository without it gets neither `policy-scope` nor `facts-name`.",
|
|
6144
|
+
"access": "`public` or `restricted`, at the top and, to override it, in a unit. `restricted` means the package is non-public once published.",
|
|
6145
|
+
"scope": "Top-level, such as `@carlos-space`. Required when the top or any unit is `restricted`, and `check` reports `policy-scope` when it is missing."
|
|
6146
|
+
},
|
|
6147
|
+
"checkedIn": "The aggregate package, the one whose config has `aggregate`. `check` reads its own name and every component package it can find: in node_modules under the aggregate, else in a directory that the `packages` patterns of `pnpm-workspace.yaml` at `repoRoot` match and whose package.json has that name. The sources are read from the `factsDir` of the component's own config. A component that is not found, whose facts do not load, or whose facts name no unit is not checked, and `check` prints a warning with code `facts-name` that says why, so the name is not skipped silently.",
|
|
6148
|
+
"aggregateUnit": "The `component` that `release-please-config.json` gives to the directory of the aggregate package, else the unit named like the aggregate package without its scope. When the policy `units` has neither, the access of the repository applies.",
|
|
6149
|
+
"base": {
|
|
6150
|
+
"aggregate": "<name without @<scope>/>, which must end in `-facts`: `<RepoName>-facts` in a product repository, `<SourceTypeName>-facts` in a facts repository.",
|
|
6151
|
+
"component": "<the unit name>-facts, where the unit name is <publish.name without @<org>/> when the entry has `publish`, else <the one key of describes>, else <the sub-path of the component in `aggregate`>. A unit name that already ends in `-facts` is the base as it is and gets no second `-facts`, so the unit `blueprint-facts` has the base `blueprint-facts`, the same as an aggregate package of that name. The component at the root sub-path `.` that has none of the three gets a warning and is not checked."
|
|
6152
|
+
},
|
|
6153
|
+
"prefix": "`@<scope>/` on the aggregate and on every component when the access of the aggregate unit is `restricted`, and none when it is `public`. The access of the unit a component describes is not read, whether or not the policy lists that unit.",
|
|
6154
|
+
"suffix": "`.<publish.target>` on every component whose base name is also the base name of the aggregate or of another component, the npm one included. A shared base name with no publish target is reported, and the unit has to be renamed.",
|
|
6155
|
+
"examples": {
|
|
6156
|
+
"fact-kit (public)": [
|
|
6157
|
+
"fact-kit-facts",
|
|
6158
|
+
"fact-kit-facts.npm",
|
|
6159
|
+
"fact-kit-facts.pypi",
|
|
6160
|
+
"fact-kit-facts.go"
|
|
6161
|
+
],
|
|
6162
|
+
"restricted, scope @carlos-space": [
|
|
6163
|
+
"@carlos-space/demo-facts",
|
|
6164
|
+
"@carlos-space/demo-facts.npm",
|
|
6165
|
+
"@carlos-space/other-facts"
|
|
6166
|
+
],
|
|
6167
|
+
"unit that already ends in -facts": [
|
|
6168
|
+
"blueprint-facts",
|
|
6169
|
+
"blueprint-facts.npm",
|
|
6170
|
+
"blueprint-facts.go"
|
|
6171
|
+
]
|
|
6172
|
+
}
|
|
6173
|
+
}
|
|
6174
|
+
}
|
|
6175
|
+
}
|
|
6176
|
+
],
|
|
6177
|
+
"tool": "fact-kit",
|
|
6178
|
+
"source": {
|
|
6179
|
+
"kind": "published"
|
|
6045
6180
|
},
|
|
6046
6181
|
"content": {
|
|
6047
6182
|
"value": {
|
|
@@ -6054,7 +6189,7 @@
|
|
|
6054
6189
|
"aggregateUnit": "The `component` that `release-please-config.json` gives to the directory of the aggregate package, else the unit named like the aggregate package without its scope. When the policy `units` has neither, the access of the repository applies.",
|
|
6055
6190
|
"base": {
|
|
6056
6191
|
"aggregate": "<name without @<scope>/>, which must end in `-facts`: `<RepoName>-facts` in a product repository, `<SourceTypeName>-facts` in a facts repository.",
|
|
6057
|
-
"component": "<publish.name without @<org
|
|
6192
|
+
"component": "<the unit name>-facts, where the unit name is <publish.name without @<org>/> when the entry has `publish`, else <the one key of describes>, else <the sub-path of the component in `aggregate`>. A unit name that already ends in `-facts` is the base as it is and gets no second `-facts`, so the unit `blueprint-facts` has the base `blueprint-facts`, the same as an aggregate package of that name. The component at the root sub-path `.` that has none of the three gets a warning and is not checked."
|
|
6058
6193
|
},
|
|
6059
6194
|
"prefix": "`@<scope>/` on the aggregate and on every component when the access of the aggregate unit is `restricted`, and none when it is `public`. The access of the unit a component describes is not read, whether or not the policy lists that unit.",
|
|
6060
6195
|
"suffix": "`.<publish.target>` on every component whose base name is also the base name of the aggregate or of another component, the npm one included. A shared base name with no publish target is reported, and the unit has to be renamed.",
|
|
@@ -6069,13 +6204,14 @@
|
|
|
6069
6204
|
"@carlos-space/demo-facts",
|
|
6070
6205
|
"@carlos-space/demo-facts.npm",
|
|
6071
6206
|
"@carlos-space/other-facts"
|
|
6207
|
+
],
|
|
6208
|
+
"unit that already ends in -facts": [
|
|
6209
|
+
"blueprint-facts",
|
|
6210
|
+
"blueprint-facts.npm",
|
|
6211
|
+
"blueprint-facts.go"
|
|
6072
6212
|
]
|
|
6073
6213
|
}
|
|
6074
6214
|
}
|
|
6075
|
-
},
|
|
6076
|
-
"tool": "fact-kit",
|
|
6077
|
-
"source": {
|
|
6078
|
-
"kind": "published"
|
|
6079
6215
|
}
|
|
6080
6216
|
},
|
|
6081
6217
|
{
|