Skip to content

Commit

Permalink
fix(ci): deprecationWarning in yarn_custom_checks
Browse files Browse the repository at this point in the history
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 <[email protected]>

Signed-off-by: aldousalvarez <[email protected]>
Signed-off-by: Peter Somogyvari <[email protected]>
  • Loading branch information
aldousalvarez authored and petermetz committed Jul 5, 2024
1 parent 66e3139 commit 96a3865
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions weaver/sdks/besu/node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
2 changes: 1 addition & 1 deletion weaver/sdks/besu/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
14 changes: 7 additions & 7 deletions weaver/sdks/fabric/interoperation-node-sdk/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
2 changes: 1 addition & 1 deletion weaver/sdks/fabric/interoperation-node-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 96a3865

Please sign in to comment.