change gulp task name updatePluginVersion -> updatePluginVersions #2609

This commit is contained in:
Becky Gilbert 2022-05-06 12:15:28 -07:00
parent 257bd4544a
commit 2154423809
3 changed files with 7 additions and 3 deletions

View File

@ -1 +1,5 @@
export { createCoreDistArchive, updateUnpkgLinks, updatePluginVersion } from "@jspsych/config/gulp";
export {
createCoreDistArchive,
updateUnpkgLinks,
updatePluginVersions,
} from "@jspsych/config/gulp";

View File

@ -10,7 +10,7 @@
"build": "turbo run build",
"build:archive": "gulp createCoreDistArchive",
"update-unpkg-links": "gulp updateUnpkgLinks",
"update-plugin-version": "gulp updatePluginVersion",
"update-plugin-version": "gulp updatePluginVersions",
"prepare": "node -e 'process.exit(!process.env.CI)' || (husky install && npm run build)",
"tsc": "turbo tsc",
"changeset": "changeset",

View File

@ -134,7 +134,7 @@ export const updateUnpkgLinks = () => {
* Only considers `.md` files in `docs/plugins` folder.
* Gets the package name from the docs page title (i.e. following "# "), ignoring the string " plugin" in the title.
*/
export const updatePluginVersion = () => {
export const updatePluginVersions = () => {
const packageVersions = new Map(getAllPackages().map(({ name, version }) => [name, version]));
return src(["././docs/plugins/*.md"])