tsconfig path fix #2

This commit is contained in:
Ralfs 2021-05-24 23:15:46 +03:00
parent 80f7e5c826
commit 68be4694a9
3 changed files with 9 additions and 10 deletions

View File

@ -16,12 +16,12 @@
"node": ">=10" "node": ">=10"
}, },
"scripts": { "scripts": {
"build": "tsc --project ./tsconfig.production.json", "build": "tsc",
"start": "ts-node src/tests.ts", "start": "ts-node src/index.ts",
"clean": "rm -rf lib", "clean": "rm -rf lib",
"prepare": "run-s clean build", "prepare": "run-s clean build",
"shell": "node -e \"$(< shell)\" -i --experimental-repl-await", "shell": "node -e \"$(< shell)\" -i --experimental-repl-await",
"test": "mocha -r ts-node/register tests/Stateless.test.ts --timeout 0", "test": "mocha -r ts-node/register tests/**/*.test.ts --timeout 100000 --project tsconfig.production.json",
"test:build": "run-s build", "test:build": "run-s build",
"test:lint": "eslint src", "test:lint": "eslint src",
"test:unit": "jest", "test:unit": "jest",
@ -30,17 +30,18 @@
"devDependencies": { "devDependencies": {
"@tsconfig/node10": "^1.0.0", "@tsconfig/node10": "^1.0.0",
"@types/bn.js": "^4.11.6", "@types/bn.js": "^4.11.6",
"@types/chai": "^4.2.14", "@types/chai": "^4.2.17",
"@types/jest": "^26.0.9", "@types/jest": "^26.0.9",
"@types/mocha": "^8.2.2", "@types/mocha": "^8.2.2",
"@typescript-eslint/eslint-plugin": "^4.6.0", "@typescript-eslint/eslint-plugin": "^4.6.0",
"@typescript-eslint/parser": "^4.6.0", "@typescript-eslint/parser": "^4.6.0",
"babel-eslint": "^10.0.3", "babel-eslint": "^10.0.3",
"chai": "^4.2.0", "chai": "^4.3.4",
"cross-env": "^7.0.2", "cross-env": "^7.0.2",
"eslint": "^7.6.0", "eslint": "^7.6.0",
"eslint-config-prettier": "^6.11.0", "eslint-config-prettier": "^6.11.0",
"jest": "^26.6.3", "jest": "^26.6.3",
"mocha": "^8.3.2",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"prettier": "^2.0.5", "prettier": "^2.0.5",
"ts-jest": "^26.2.0", "ts-jest": "^26.2.0",
@ -59,12 +60,10 @@
"@project-serum/serum": "^0.13.20", "@project-serum/serum": "^0.13.20",
"@project-serum/sol-wallet-adapter": "^0.1.4", "@project-serum/sol-wallet-adapter": "^0.1.4",
"@solana/spl-token": "0.0.13", "@solana/spl-token": "0.0.13",
"@solana/web3.js": "^0.95.0", "@solana/web3.js": "^0.90.0",
"bn.js": "^5.1.2", "bn.js": "^5.1.2",
"borsh": "https://github.com/defactojob/borsh-js#field-mapper", "borsh": "https://github.com/defactojob/borsh-js#field-mapper",
"buffer-layout": "^1.2.0", "buffer-layout": "^1.2.0"
"dotenv": "^10.0.0",
"mocha": "^8.4.0"
}, },
"browserslist": [ "browserslist": [
">0.2%", ">0.2%",

View File

@ -4,7 +4,7 @@ import { Market, TokenInstructions, OpenOrders, Orderbook } from '@project-serum
import { token } from '@project-serum/common'; import { token } from '@project-serum/common';
import { u64, NATIVE_MINT } from "@solana/spl-token"; import { u64, NATIVE_MINT } from "@solana/spl-token";
import { sleep } from '../src/utils'; import { sleep } from '../src/utils';
import fs from 'fs';
console.log = function () {}; // NOTE: Disable all unnecessary logging console.log = function () {}; // NOTE: Disable all unnecessary logging
const FAUCET_PROGRAM_ID = new PublicKey( const FAUCET_PROGRAM_ID = new PublicKey(