Skip to content

Commit

Permalink
fix: monorepo config
Browse files Browse the repository at this point in the history
  • Loading branch information
00xSam committed Dec 4, 2024
1 parent 92a69e6 commit 58491eb
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 46 deletions.
4 changes: 3 additions & 1 deletion ts-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"scripts": {
"postclone": "pnpm rm @meteora-ag/config && pnpm install @meteora-ag/config",
"postclone": "pnpm rm @meteora-ag/config && pnpm i @meteora-ag/config",
"dev": "rm -rf dist && tsc -p tsconfig.dev.json --watch",
"build": "rm -rf dist && tsc -p tsconfig.build.json && tsc -p tsconfig.esm.json",
"test": "jest ./src/vault/tests/*.test.ts --runInBand",
"test-affiliate": "jest ./src/vault/tests/affiliate.test.ts --runInBand"
Expand All @@ -22,6 +23,7 @@
"@types/chai": "^4.3.1",
"@types/jest": "^27.5.1",
"@types/mocha": "^9.1.1",
"@types/node": "^22.10.1",
"chai": "^4.3.6",
"jest": "^28.1.0",
"mocha": "^10.0.0",
Expand Down
89 changes: 46 additions & 43 deletions ts-client/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions ts-client/tsconfig.dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": "./tsconfig.json",
"compileOnSave": true,
"compilerOptions": {
"outDir": "./dist/cjs/",
"moduleResolution": "node",
"noEmit": false,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"noImplicitAny": false,
"skipLibCheck": true
},
"exclude": ["./src/vault/tests/**/*", "./dist/**/*"]
}
5 changes: 3 additions & 2 deletions ts-client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"extends": "@meteora-ag/config/typescript/react-library",
"extends": "@meteora-ag/config/typescript/sdk",
"compilerOptions": {
"outDir": "dist",
"types": ["jest", "mocha", "chai"],
"typeRoots": ["./node_modules/@types"],
"module": "commonjs",
"target": "es6",
"moduleResolution": "node",
"noImplicitAny": false
"noImplicitAny": false,
"preserveSymlinks": true
}
}

0 comments on commit 58491eb

Please sign in to comment.