@eui/tools 4.17.1 → 4.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -377,6 +377,29 @@ const storePipelineMetadata = module.exports.storePipelineMetadata = (pkgMetadat
377
377
  }
378
378
 
379
379
 
380
+ module.exports.storeMetadataAssets = (pkg, pkgCompositeDeps) => {
381
+ return Promise.resolve()
382
+ .then(() => {
383
+ const pkgMetadataFile = path.join(pkg.paths.pkgBuild, 'package-metadata.json');
384
+
385
+ const pkgMetadata = {
386
+ dependencies: pkgCompositeDeps
387
+ };
388
+
389
+ tools.logInfo(`Creating ${pkgMetadataFile}`);
390
+ console.log(pkgMetadata);
391
+
392
+ if (!dryRun) {
393
+ return tools.writeJsonFileSync(pkgMetadataFile, pkgMetadata);
394
+ }
395
+ })
396
+
397
+ .catch((e) => {
398
+ throw e;
399
+ })
400
+ }
401
+
402
+
380
403
  module.exports.getPackageVersionsJson = (pkg) => {
381
404
  if (!pkg) {
382
405
  tools.logWarning('provided pkg is empty...skipping');
@@ -259,6 +259,19 @@ module.exports.postBuild = (pkg, version) => {
259
259
  }
260
260
 
261
261
 
262
+ module.exports.storeMetadataAssets = (pkg, pkgCompositeDeps) => {
263
+ return Promise.resolve()
264
+ .then(() => {
265
+ if (pkg.remote) {
266
+ return metadataUtils.package.storeMetadataAssets(pkg, pkgCompositeDeps);
267
+ }
268
+ })
269
+
270
+ .catch((e) => {
271
+ throw e;
272
+ })
273
+ }
274
+
262
275
  module.exports.runGitOperations = (pkg, version) => {
263
276
 
264
277
  const branches = this.getBranches();
@@ -133,6 +133,12 @@ module.exports.run = () => {
133
133
  })
134
134
 
135
135
 
136
+ // STORING METADATA ASSETS
137
+ .then(() => {
138
+ return innerCommon.storeMetadataAssets(pkg, pkgCompositeDeps);
139
+ })
140
+
141
+
136
142
  // PUBLISH PACKAGE
137
143
  .then(() => {
138
144
  return utils.publish.publish(pkg);