fixes for npm module

This commit is contained in:
Adrian Brzeziński 2022-10-18 17:26:43 +02:00
parent a5215078dd
commit 798f2edb5a
3 changed files with 13 additions and 24 deletions

View File

@ -1,8 +1,7 @@
{
"name": "@blockworks-foundation/mango-v3-reimbursement-lib",
"license": "MIT",
"version": "1.0.3",
"type": "module",
"version": "1.0.5",
"files": [
"dist/**/*"
],

View File

@ -30,11 +30,11 @@ const CLUSTER_URL =
const PAYER_KEYPAIR =
process.env.PAYER_KEYPAIR_OVERRIDE || process.env.MB_PAYER_KEYPAIR;
const GROUP_NUM = Number(process.env.GROUP_NUM || 5);
const CLUSTER: Cluster =
const CLUSTER: any =
(process.env.CLUSTER_OVERRIDE as Cluster) || "mainnet-beta";
const MANGO_V3_CLUSTER: Cluster =
(process.env.MANGO_V3_CLUSTER_OVERRIDE as Cluster) || "mainnet";
const MANGO_V3_GROUP_NAME: Cluster =
const MANGO_V3_GROUP_NAME: any =
(process.env.MANGO_V3_GROUP_NAME_OVERRIDE as Cluster) || "mainnet.1";
const options = AnchorProvider.defaultOptions();

View File

@ -1,26 +1,16 @@
{
"compilerOptions": {
"outDir": "./dist",
"noImplicitAny": false,
"sourceMap": true,
"target": "es6",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"types": ["mocha", "chai"],
"typeRoots": ["./node_modules/@types"]
"declaration": true,
"declarationMap": true,
"allowJs": true,
"outDir": "./dist",
"strict": false,
"esModuleInterop": true,
"skipLibCheck": true,
"downlevelIteration": true
},
"include": ["ts/client/src"],
"include": ["ts/client/src/*.ts"],
"exclude": ["node_modules"]
}