Fix process.env.version
in browser-bundles (#206)
* Fix `process.env.version` in browser-bundles - also fix tsdoc warns in mjs files Co-authored-by: Fülöp Kovács <kovacs.fulop@gmail.com> Co-authored-by: Cole Lawrence <cole@colelawrence.com> * Change to `process.env.THEATRE_VERSION` Co-authored-by: Fülöp Kovács <kovacs.fulop@gmail.com> Co-authored-by: Cole Lawrence <cole@colelawrence.com>
This commit is contained in:
parent
d7fc381137
commit
bebf281517
13 changed files with 39 additions and 24 deletions
|
@ -109,7 +109,7 @@ const packagesToPublish = [
|
|||
* @param {string} hash - Hash of the latest commit (or any other string)
|
||||
* @returns {Promise<() => void>} - An async function that restores the package.json files to their original version
|
||||
*/
|
||||
async function assignVersions(workspacesListObjects, hash) {
|
||||
async function writeVersionsToPackageJSONs(workspacesListObjects, hash) {
|
||||
/**
|
||||
* An array of functions each of which restores a certain package.json to its original state
|
||||
* @type {Array<() => void>}
|
||||
|
@ -181,7 +181,10 @@ async function releaseToVerdaccio() {
|
|||
.filter(Boolean)
|
||||
.map((x) => JSON.parse(x))
|
||||
|
||||
const restorePackages = await assignVersions(workspacesListObjects, version)
|
||||
const restorePackages = await writeVersionsToPackageJSONs(
|
||||
workspacesListObjects,
|
||||
version,
|
||||
)
|
||||
|
||||
process.on('SIGINT', async function cleanup(a) {
|
||||
restorePackages()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue