Skip to content

Commit

Permalink
docs: add more docu for dependenciesTypePackagesForCheck option
Browse files Browse the repository at this point in the history
  • Loading branch information
akudev committed Apr 29, 2024
1 parent 2b2259b commit 60c8025
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
8 changes: 6 additions & 2 deletions packages/dts-generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ With:
--dependenciesApiPath PATH
Directory where the api.json files are located for the libraries on which the currently to-be-built library depends.
--dependenciesDTSPathForCheck PATH
Directory where the d.ts files are located of the libraries on which the currently to-be-built library depends. Only needed for the
check.
Directory where the d.ts files are located of the libraries on which the currently to-be-built library depends. Typically used for
other UI5 libraries for which types are being generated in the same build run. Only needed for the check.
--dependenciesTypePackagesForCheck
The names of type packages on which the currently to-be-built library depends. Typically used for other UI5 libraries being
developed separately. E.g. for @types/openui5 when the current build is for a library developed outside the UI5 teams. Only needed
for the check.
--directivesPath PATH
Directory where the .dtsgenrc files for the libraries (current and dependencies) are located.
--targetFile FILE
Expand Down
2 changes: 1 addition & 1 deletion packages/dts-generator/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async function main() {
dependenciesApiPath,
directivesPath,
dependenciesDTSPathForCheck: dependenciesDTSPathForCheckForGlobals,
dependenciesTypePackagesForCheck,
dependenciesTypePackagesForCheck, // would actually need to be a separate config for globals, but as they are deprecated we don't want to extend the API
targetFile: targetFileForGlobals,
runCheckCompile,
verbose,
Expand Down
6 changes: 4 additions & 2 deletions packages/dts-generator/src/utils/arguments-index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ export const args = (() => {
help: "Directory where the api.json files are located for the libraries on which the currently to-be-built library depends.",
});
parser.add_argument("--dependenciesDTSPathForCheck", {
help: "Directory where the d.ts files are located of the libraries on which the currently to-be-built library depends. Only needed for the check.",
help:
"Directory where the d.ts files are located of the libraries on which the currently to-be-built library depends. Typically used for" +
" other UI5 libraries for which types are being generated in the same build run. Only needed for the check.",
});
parser.add_argument("--dependenciesTypePackagesForCheck", {
help:
"Comma-separated list of package names of the libraries on which the currently to-be-built types depends. This is meant for entire npm packages" +
" developed separately (often by others), not sibling libraries built in the same batch. E.g. when a custom UI5 control library is built by an" +
" developed separately (often by others), not sibling libraries built in the same generation run. E.g. when a custom UI5 control library is built by an" +
" application team, then it usually depends on the OpenUI5 types because those define the base classes like Control. Setting this has the effect" +
" that for the TS compilation check, the `types` field of the package.json file will be set to the respective package names and any other type packages" +
" are no longer considered. Only needed for the check.",
Expand Down

0 comments on commit 60c8025

Please sign in to comment.