Fix TSLint rules
This commit is contained in:
@@ -158,6 +158,7 @@ export const postpublishUtils = {
|
||||
// HACK: tsconfig.json needs wildcard directory endings as `/**/*`
|
||||
// but TypeDoc needs it as `/**` in order to pick up files at the root
|
||||
if (_.endsWith(includePath, '/**/*')) {
|
||||
// tslint:disable-next-line:custom-no-magic-numbers
|
||||
includePath = includePath.slice(0, -2);
|
||||
}
|
||||
return includePath;
|
||||
|
@@ -285,8 +285,8 @@ function shouldAddNewChangelogEntry(currentVersion: string, changelogs: Changelo
|
||||
return true;
|
||||
}
|
||||
const lastEntry = changelogs[0];
|
||||
const lastEntryCurrentVersion = lastEntry.version === currentVersion;
|
||||
return lastEntryCurrentVersion;
|
||||
const isLastEntryCurrentVersion = lastEntry.version === currentVersion;
|
||||
return isLastEntryCurrentVersion;
|
||||
}
|
||||
|
||||
function generateChangelogMd(changelogs: Changelog[]): string {
|
||||
|
Reference in New Issue
Block a user