From 96a3865ce5404e0fd3bf5a6471eb5a653e579d33 Mon Sep 17 00:00:00 2001 From: aldousalvarez Date: Tue, 11 Jun 2024 17:37:04 +0800 Subject: [PATCH] fix(ci): deprecationWarning in yarn_custom_checks Primary Changes ---------------- 1. Updated the main field to use index.js to fix the Deprecation Warning Peter's Fixes: ---------------- 1. I fixed the file paths in the require statements to match the new location after we've remapped the bundle location in the package.json files. Fixes #2956 Co-Authored-by: Peter Somogyvari Signed-off-by: aldousalvarez Signed-off-by: Peter Somogyvari --- weaver/sdks/besu/node/index.js | 4 ++-- weaver/sdks/besu/node/package.json | 2 +- .../sdks/fabric/interoperation-node-sdk/index.js | 14 +++++++------- .../fabric/interoperation-node-sdk/package.json | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/weaver/sdks/besu/node/index.js b/weaver/sdks/besu/node/index.js index b75c67972f..5cf4826662 100644 --- a/weaver/sdks/besu/node/index.js +++ b/weaver/sdks/besu/node/index.js @@ -12,5 +12,5 @@ // because jsdoc3 generator seems to not able to find them in the api.js module // likely due to that module containing multiple classes -module.exports.AssetManager = require("./src/AssetManager.js"); -module.exports.HashFunctions = require("./src/HashFunctions.js"); +module.exports.AssetManager = require("./build/src/AssetManager.js"); +module.exports.HashFunctions = require("./build/src/HashFunctions.js"); diff --git a/weaver/sdks/besu/node/package.json b/weaver/sdks/besu/node/package.json index 9a5caa309f..7153c61930 100644 --- a/weaver/sdks/besu/node/package.json +++ b/weaver/sdks/besu/node/package.json @@ -8,7 +8,7 @@ }, "license": "Apache-2.0", "author": "", - "main": "build/index.js", + "main": "index.js", "scripts": { "build": "tsc", "test": "echo \"Error: no test specified\" && exit 1" diff --git a/weaver/sdks/fabric/interoperation-node-sdk/index.js b/weaver/sdks/fabric/interoperation-node-sdk/index.js index 53d21b5455..cc3862b72d 100644 --- a/weaver/sdks/fabric/interoperation-node-sdk/index.js +++ b/weaver/sdks/fabric/interoperation-node-sdk/index.js @@ -12,10 +12,10 @@ // because jsdoc3 generator seems to not able to find them in the api.js module // likely due to that module containing multiple classes -module.exports.RelayHelper = require("./src/Relay.js"); -module.exports.InteroperableHelper = require("./src/InteroperableHelper.js"); -module.exports.AssetManager = require("./src/AssetManager.js"); -module.exports.SatpAssetManager = require("./src/SatpAssetManager.js"); -module.exports.HashFunctions = require("./src/HashFunctions.js"); -module.exports.EventsManager = require("./src/EventsManager.js"); -module.exports.MembershipManager = require("./src/MembershipManager.js"); +module.exports.RelayHelper = require("./build/src/Relay.js"); +module.exports.InteroperableHelper = require("./build/src/InteroperableHelper.js"); +module.exports.AssetManager = require("./build/src/AssetManager.js"); +module.exports.SatpAssetManager = require("./build/src/SatpAssetManager.js"); +module.exports.HashFunctions = require("./build/src/HashFunctions.js"); +module.exports.EventsManager = require("./build/src/EventsManager.js"); +module.exports.MembershipManager = require("./build/src/MembershipManager.js"); diff --git a/weaver/sdks/fabric/interoperation-node-sdk/package.json b/weaver/sdks/fabric/interoperation-node-sdk/package.json index f52a89f118..135085963c 100644 --- a/weaver/sdks/fabric/interoperation-node-sdk/package.json +++ b/weaver/sdks/fabric/interoperation-node-sdk/package.json @@ -13,7 +13,7 @@ }, "license": "Apache-2.0", "author": "V. Ramakrishna", - "main": "build/index.js", + "main": "index.js", "types": "./types/index.d.ts", "scripts": { "build": "tsc",