You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fe0da50
Browse filesBrowse the repository at this point in the historyBrowse files
fix(dts-generator): add @types discovery to generate check-compile path
TS6 no longer auto-includes @types packages when the compiler is invoked
programmatically. The previous fix (631f1de) only addressed runCheck.ts
but the generation path in generate.ts has the same problem — causing
"Cannot find namespace 'THREE'" errors for sap.ui.vk in the legacy-free
build.
Extracted the @types discovery logic into a shared utility
(utils/discover-types.ts) and applied it to both generate.ts and
runCheck.ts. Also aligned generate.ts module settings to ESNext +
Bundler to prevent bare-specifier rejection of ambient declare module
declarations.
"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"+
23
-
" 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"+
24
-
" application team, then it usually depends on the OpenUI5 types because those define the base classes like Control. Setting this has the effect"+
25
-
" 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"+
26
-
" are no longer considered. Only needed for the check.",
22
+
"[DEPRECATED: @types packages are now auto-discovered from the nearest package.json] "+
23
+
"Comma-separated list of additional @types package names to include in the TS compilation check."+
24
+
" Typically no longer needed — declared @types/* dependencies are discovered automatically.",
27
25
});
28
26
parser.add_argument("--directivesPath",{
29
27
help: "Directory where the .dtsgenrc files for the libraries (current and dependencies) are located.",
0 commit comments