@monodeploy/io
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -11,2 +11,8 @@ "use strict"; | ||
const patchPackageJsons = async (config, context, workspaces, registryTags) => { | ||
const reloadWorkspace = async workspace => { | ||
const data = {}; | ||
workspace.manifest.exportTo(data); | ||
workspace.manifest.raw = data; | ||
}; | ||
const patchWorkspace = async workspace => { | ||
@@ -39,13 +45,9 @@ const ident = workspace.manifest.name; | ||
await workspace.persistManifest(); | ||
}; | ||
await workspace.persistManifest(); // publishing uses `workspace.manifest.raw` which persistManifest does not update, | ||
// so we need to reload the manifest object | ||
const reloadWorkspace = async workspace => { | ||
await workspace.setup(); | ||
await reloadWorkspace(workspace); | ||
}; | ||
await Promise.all([...workspaces].map(patchWorkspace)); // publishing uses `workspace.manifest.raw` which persistManifest does not update, | ||
// so we need to reload the manifest object | ||
await Promise.all([...workspaces].map(reloadWorkspace)); | ||
await Promise.all([...workspaces].map(patchWorkspace)); | ||
}; | ||
@@ -52,0 +54,0 @@ |
{ | ||
"name": "@monodeploy/io", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"repository": "git@github.com:tophat/monodeploy.git", | ||
@@ -5,0 +5,0 @@ "author": "Top Hat Monocle Corp. <opensource@tophat.com>", |
15554
322