DEV: update generator to check for changes in the meteor tool version

This commit is contained in:
Gabriel Grubba
2024-11-22 09:01:43 -03:00
parent ce5a8f126a
commit 2a7fd32e59
2 changed files with 8 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
---
meteor_version: 3.0.4
node_version: 20.18.0
npm_version: 10.8.2
meteor_version: 3.1.0
node_version: 22.11.0
npm_version: 10.9.0
---
# Meteor 3.0 Migration Guide

View File

@@ -9,7 +9,11 @@ const meteorToolLink =
const getMeteorVersionFromDevel = async () => {
const response = await fetch(meteorToolLink);
const text = await response.text();
const version = text.match(/version: '(.*)'/)[1];
const version = text
.match(/version: (.*)/)[1]
.replaceAll("'", "")
.replaceAll('"', "")
.replaceAll(",", "");
return version;
};