Skip to content

Commit

Permalink
fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ryo-casper committed Apr 15, 2024
1 parent 2b21218 commit 121eb25
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages/api/.mocharc.json
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "run -T rollup -c",
"test": "run -T cross-env NODE_ENV=test TS_NODE_FILES=true mocha -r ts-node/register \"src/**/*.test.ts\"",
"test": "run -T cross-env NODE_ENV=test TS_NODE_FILES=true mocha",
"test:coverage": "run -T nyc --reporter=lcov yarn test",
"coverage": "run -T codecov"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { HTTPTransport } from '@open-rpc/client-js';
import { expect, should } from 'chai';
import sinon from 'sinon';

should();

import { BaseJsonRpc, ReturnType } from '../../BaseJsonRpc';
import { IGetPeersResult, infoGetPeers, Peer } from './info_get_peers';

Expand Down
1 change: 1 addition & 0 deletions packages/api/src/typings/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare const expect: Chai.ExpectStatic;
8 changes: 8 additions & 0 deletions packages/api/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./dist/"
},
"include": ["src"],
"exclude": ["*/**/*.test.ts"]
}
5 changes: 2 additions & 3 deletions packages/api/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./dist/",
"outDir": "./dist/"
},
"include": ["src"],
"exclude": ["*/**/*.test.ts"]
"include": ["src"]
}

0 comments on commit 121eb25

Please sign in to comment.