Repository navigation
[api-extractor] Improved model for rollup *.d.ts target folder configuration - #582
Merged
Merged
Conversation
…rs, with trimming now being optional
…ng an option "dtsRollupTrimming" for its schema
| this._monitoredLogger.logError('The "mainDtsRollupPath" setting was not specified.' | ||
| + ' In this case, the package.json "typings" field must point to a file under' | ||
| + ' the "publishFolder": ' + dtsRollup.publishFolder!); | ||
| return false; |
Collaborator
Author
There was a problem hiding this comment.
return false; [](start = 11, length = 14)
This is not right #Resolved
| if (!path.isAbsolute(mainDtsRollupPath)) { | ||
| this._monitoredLogger.logError('The "mainDtsRollupPath" setting must be a relative path' | ||
| + ' that can be combined with "publishFolderForInternal", "publishFolderForBeta", ' | ||
| + 'or "publishFolderForPublic".'); |
Collaborator
Author
There was a problem hiding this comment.
What about untrimmed? #Resolved
… getting mixed into the middle of the rollup *.d.ts file
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR tunes up the api-extractor.json config file settings to prepare for initial release of the *.d.ts rollup feature.
trimmingsettingtypingsfield in package.jsonThe earlier design assumed that we would modify the
typingsfield in package.json to point immediately prior to publishing, to point to one of the *.d.ts files. We realized that this won't work for multiple entry points (where the *.d.ts filename must match the *.js filename.) Also, different release types often have other differences besides just the typings. Overall it's a better design for each release target to be built into its own folder.