1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00
metamask-extension/development/lib
Mark Stacey 75a8aedc32
Derive version suffix from build type and version (#13895)
The version of a build is now derived from both the `version` field in
`package.json` and the requested build type and version. The build type
and version are added onto the manifest version as a suffix, according
to the SemVer prerelease format.

We already have support in the extension for versions of this format,
but to apply a Flask or Beta version required manual updates to
`package.json`. Now it can be done just with build arguments.

A `get-version` module was created to make it easier to generate the
version in the various places we do that during the build. It was
created in the `development/lib` directory because it will be used by
other non-build development scripts in a future PR.

The `BuildType` constant was extracted to its own module as well, and
moved to the `development/lib` directory. This was to make it clear
that it's used by various different development scripts, not just the
build.
2022-03-10 12:31:50 -03:30
..
build-type.js Derive version suffix from build type and version (#13895) 2022-03-10 12:31:50 -03:30
create-segment-server.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
exit-with-error.js Add run-e2e-test.js script (#11301) 2021-06-15 15:21:25 -02:30
get-version.js Derive version suffix from build type and version (#13895) 2022-03-10 12:31:50 -03:30
locales.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
parse-port.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
retry.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
run-command.js Show Sentry CLI output when uploading artifacts (#11100) 2021-05-19 14:54:45 -02:30