From 121c9bc78a7b9506d2ce671a2563c97319fb251c Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Tue, 20 Apr 2021 13:32:43 +0200 Subject: [PATCH] fix: specify pbjs root --- package.json | 2 +- src/keys/keys.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f1b2caf4..9321ee04 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "scripts": { "lint": "aegir lint", "build": "npm run build:proto && aegir build --no-types", - "build:proto": "pbjs -t static-module -w commonjs --force-number --no-verify --no-delimited --no-create --no-beautify --no-defaults --lint eslint-disable -o src/keys/keys.js ./src/keys/keys.proto", + "build:proto": "pbjs -t static-module -w commonjs -r libp2p-crypto-keys --force-number --no-verify --no-delimited --no-create --no-beautify --no-defaults --lint eslint-disable -o src/keys/keys.js ./src/keys/keys.proto", "test": "aegir test", "test:node": "aegir test -t node", "test:browser": "aegir test -t browser -t webworker", diff --git a/src/keys/keys.js b/src/keys/keys.js index 33c368cc..557a15af 100644 --- a/src/keys/keys.js +++ b/src/keys/keys.js @@ -7,7 +7,7 @@ var $protobuf = require("protobufjs/minimal"); var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; // Exported root namespace -var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {}); +var $root = $protobuf.roots["libp2p-crypto-keys"] || ($protobuf.roots["libp2p-crypto-keys"] = {}); /** * KeyType enum.