Skip to content

Commit

Permalink
fix(governance): export buildParamManager from index.js (#3952)
Browse files Browse the repository at this point in the history
- change main from paramManager.js to index.js
 - include exportes.js in files

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
dckc and mergify[bot] authored Oct 12, 2021
1 parent 18807af commit 868964e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/governance/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@agoric/governance",
"version": "0.2.3",
"version": "0.2.4",
"description": "Core governance support",
"type": "module",
"main": "src/paramManager.js",
"main": "src/index.js",
"engines": {
"node": ">=14.15.0"
},
Expand Down Expand Up @@ -52,6 +52,7 @@
},
"files": [
"src/",
"exported.js",
"NEWS.md"
],
"ava": {
Expand Down
4 changes: 3 additions & 1 deletion packages/governance/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// @ts-check

import './types.js';

export {
ChoiceMethod,
ElectionType,
Expand All @@ -23,7 +25,7 @@ export {
assertBallotConcernsQuestion,
} from './governParam.js';

export { ParamType, assertType } from './paramManager.js';
export { ParamType, buildParamManager, assertType } from './paramManager.js';

export {
assertContractGovernance,
Expand Down

0 comments on commit 868964e

Please sign in to comment.