diff --git a/scripts/semantic-release-create-version.js b/scripts/semantic-release-create-version.js
index <HASH>..<HASH> 100644
--- a/scripts/semantic-release-create-version.js
+++ b/scripts/semantic-release-create-version.js
@@ -1,12 +1,12 @@
 const fs = require("fs");
+const glob = require("glob");
 const { version } = require("../package.json");
 
 module.exports = {
   prepare() {
-    const content = fs.readFileSync("lib/version.js", "utf8");
-    fs.writeFileSync(
-      "lib/version.js",
-      content.replace("0.0.0-development", version)
-    );
+    glob.sync("*/*.js").forEach(file => {
+      const content = fs.readFileSync(file, "utf8");
+      fs.writeFileSync(file, content.replace("0.0.0-development", version));
+    });
   }
 };
ci(semantic-release): add current version to all distributions in ./pkg