Skip to content

Commit

Permalink
fix: 確保 updatePlugins.xml 是最新版
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Jul 28, 2022
1 parent 789a8db commit ea06f36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/git/update-publish-tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function updatePublishTags()
return outputJSON(__file_publish_tags_json, tags, {
spaces: 2,
EOL: LF,
})
}).then(() => tags)
})
;
}
3 changes: 2 additions & 1 deletion scripts/jetbrains/create-jetbrains-update-plugins-xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { LF } from 'crlf-normalize';
import { _getVersionInfoBySeries, _getVersionInfoByVersion } from '../../lib/util/version-map';
import { array_unique, array_unique_overwrite } from 'array-hyper-unique';
import { __file_publish_tags_json } from '../../lib/const';
import { updatePublishTags } from '../../lib/git/update-publish-tags';

/**
* @see https://plugins.jetbrains.com/docs/intellij/update-plugins-format.html#format-of-updatepluginsxml-file
Expand All @@ -15,7 +16,7 @@ import { __file_publish_tags_json } from '../../lib/const';
export default Bluebird.resolve()
.then(async () =>
{
const tags = await readJSON(__file_publish_tags_json).catch(e => []) as string[];
const tags = await updatePublishTags();

const { __plugin_zh_cn_version } = await import('../../lib/const/link-of-zh-cn');

Expand Down

0 comments on commit ea06f36

Please sign in to comment.