Merge branch 'ts-client' into dev

This commit is contained in:
microwavedcola1 2023-03-14 16:38:23 +01:00
commit 02bd1c639f
4 changed files with 23 additions and 15 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@blockworks-foundation/mango-v4",
"version": "0.9.2",
"version": "0.9.5",
"description": "Typescript Client for mango-v4 program.",
"repository": "https://github.com/blockworks-foundation/mango-v4",
"author": {
@ -16,7 +16,10 @@
"dist"
],
"scripts": {
"build": "tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json && tsc -p tsconfig.types.json",
"build": "rimraf dist && yarn build:browser && yarn build:node && yarn build:types",
"build:node": " tsc -p tsconfig.cjs.json --noEmit false",
"build:browser": "tsc -p tsconfig.esm.json --noEmit false",
"build:types": "tsc -p tsconfig.types.json --noEmit false",
"test": "ts-mocha ts/client/**/*.spec.ts --timeout 300000",
"example1-user": "ts-node ts/client/src/scripts/example1-user.ts",
"example1-admin": "ts-node ts/client/src/scripts/example1-admin.ts",

View File

@ -1,11 +1,14 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"module": "commonjs",
"outDir": "dist/cjs",
"declaration": true,
"declarationMap": false,
"module": "commonjs",
"outDir": "dist/cjs",
"sourceMap": false
},
"include": ["ts/client/src", "ts/client/scripts"]
"include": [
"ts/client/src",
"ts/client/scripts"
]
}

View File

@ -3,8 +3,8 @@
"compilerOptions": {
"declaration": false,
"declarationMap": false,
"sourceMap": false,
"module": "esnext",
"outDir": "./dist/esm"
"outDir": "dist/esm",
"sourceMap": false,
}
}

View File

@ -1,14 +1,14 @@
{
"compilerOptions": {
"target": "esnext",
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"esModuleInterop": true,
"resolveJsonModule": true,
"noEmit": true,
"noImplicitAny": false,
"resolveJsonModule": true,
"skipLibCheck": true,
"strictNullChecks": true,
"noEmit": true
"target": "esnext",
},
"ts-node": {
// these options are overrides used only by ts-node
@ -17,5 +17,7 @@
"module": "commonjs"
}
},
"include": ["ts/client/src"]
"include": [
"ts/client/src"
]
}