Skip to content

Commit 4c2815d

Browse files
committed
Added yarn link:setup to help set up linked deps for development
1 parent 3b6bf6e commit 4c2815d

4 files changed

Lines changed: 12 additions & 18 deletions

File tree

jest.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ module.exports = {
4242
// bump this back up to 80% when we have more tests
4343
coverageThreshold: {
4444
global: {
45-
branches: 28.15,
45+
branches: 28.3,
4646
functions: 22.72,
47-
lines: 32.91,
48-
statements: 32.77,
47+
lines: 33.74,
48+
statements: 33.6,
4949
},
5050
},
5151

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"build": "tsc --project tsconfig.build.json && cp src/theme/OpenRPCDocMethod.css dist/theme/OpenRPCDocMethod.css",
1717
"build:clean": "rimraf dist && yarn build",
1818
"build:watch": "yarn build && tsc --project tsconfig.build.json --watch",
19+
"link:setup": "rm -rf ./node_modules/@docusaurus/theme-common",
1920
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn lint:dependencies && yarn lint:changelog",
2021
"lint:changelog": "auto-changelog validate",
2122
"lint:dependencies": "depcheck",
@@ -113,6 +114,7 @@
113114
}
114115
},
115116
"resolutions": {
116-
"@metamask/open-rpc-docs-react": "portal:/Users/shanejonas/code/metamask/openrpc-docs-react"
117+
"@metamask/open-rpc-docs-react": "portal:/Users/shanejonas/code/metamask/openrpc-docs-react",
118+
"joi": "17.6.0"
117119
}
118120
}

src/theme/OpenRPCDocMethod.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
Sidebar,
55
} from "@docusaurus/plugin-content-docs/src/sidebars/types";
66
import Layout from '@theme/Layout';
7-
const {useDocRouteMetadata} = require('@docusaurus/theme-common/internal');
87
import {ExamplePairingObject, MethodObject, ContentDescriptorObject} from '@open-rpc/meta-schema';
98
import { InteractiveMethod, Method} from '@metamask/open-rpc-docs-react';
109
import { join } from 'path';

yarn.lock

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2856,13 +2856,6 @@ __metadata:
28562856
languageName: node
28572857
linkType: hard
28582858

2859-
"@json-rpc-specification/meta-schema@npm:^1.0.6":
2860-
version: 1.0.6
2861-
resolution: "@json-rpc-specification/meta-schema@npm:1.0.6"
2862-
checksum: 2eb9c6c6c73bb38350c7180d1ad3c5b8462406926cae753741895b457d7b1b9f0b74148daf3462bb167cef39efdd1d9090308edf4d4938956863acb643c146eb
2863-
languageName: node
2864-
linkType: hard
2865-
28662859
"@json-schema-spec/json-pointer@npm:^0.1.2":
28672860
version: 0.1.2
28682861
resolution: "@json-schema-spec/json-pointer@npm:0.1.2"
@@ -3586,7 +3579,7 @@ __metadata:
35863579
languageName: node
35873580
linkType: hard
35883581

3589-
"@sideway/formula@npm:^3.0.1":
3582+
"@sideway/formula@npm:^3.0.0":
35903583
version: 3.0.1
35913584
resolution: "@sideway/formula@npm:3.0.1"
35923585
checksum: e4beeebc9dbe2ff4ef0def15cec0165e00d1612e3d7cea0bc9ce5175c3263fc2c818b679bd558957f49400ee7be9d4e5ac90487e1625b4932e15c4aa7919c57a
@@ -10959,16 +10952,16 @@ __metadata:
1095910952
languageName: node
1096010953
linkType: hard
1096110954

10962-
"joi@npm:^17.6.0":
10963-
version: 17.11.0
10964-
resolution: "joi@npm:17.11.0"
10955+
"joi@npm:17.6.0":
10956+
version: 17.6.0
10957+
resolution: "joi@npm:17.6.0"
1096510958
dependencies:
1096610959
"@hapi/hoek": ^9.0.0
1096710960
"@hapi/topo": ^5.0.0
1096810961
"@sideway/address": ^4.1.3
10969-
"@sideway/formula": ^3.0.1
10962+
"@sideway/formula": ^3.0.0
1097010963
"@sideway/pinpoint": ^2.0.0
10971-
checksum: 3a4e9ecba345cdafe585e7ed8270a44b39718e11dff3749aa27e0001a63d578b75100c062be28e6f48f960b594864034e7a13833f33fbd7ad56d5ce6b617f9bf
10964+
checksum: eaf62f6c02f2edb1042f1ab04fc23a5918a2cb8f54bec84c6e1033624d8a462c10ae9518af55a3ba84f1793960450d58094eda308e7ef93c17edd4e3c8ef31d5
1097210965
languageName: node
1097310966
linkType: hard
1097410967

0 commit comments

Comments
 (0)