diff --git a/gulpfile.js b/gulpfile.js index 88a18bbb..1d4db157 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1 +1,5 @@ -export { createCoreDistArchive, updateUnpkgLinks, updatePluginVersion } from "@jspsych/config/gulp"; +export { + createCoreDistArchive, + updateUnpkgLinks, + updatePluginVersions, +} from "@jspsych/config/gulp"; diff --git a/package.json b/package.json index 7960210c..cb0fccb3 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/config/gulp.js b/packages/config/gulp.js index 464faacd..0bf5dc23 100644 --- a/packages/config/gulp.js +++ b/packages/config/gulp.js @@ -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"])