1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 04:39:01 +00:00

Move to setup.cfg and config for build-system (#11484)

This commit is contained in:
Marc Mueller
2022-01-29 06:18:17 +01:00
committed by GitHub
parent 730e9b144d
commit ce0ced0b6a
8 changed files with 38 additions and 22 deletions

View File

@@ -26,11 +26,11 @@ module.exports = {
},
version() {
const version = fs
.readFileSync(path.resolve(paths.polymer_dir, "setup.py"), "utf8")
.match(/\d{8}\.\d+/);
.readFileSync(path.resolve(paths.polymer_dir, "setup.cfg"), "utf8")
.match(/version\W+=\W(\d{8}\.\d)/);
if (!version) {
throw Error("Version not found");
}
return version[0];
return version[1];
},
};