From 22b467aec5e5323d050e6846fbf1ca5ca38dc0dc Mon Sep 17 00:00:00 2001 From: Andre Meyer Date: Thu, 5 Oct 2023 14:06:28 +0200 Subject: [PATCH] fix build --- package.json | 5 ++--- tsconfig.json | 1 - use-defi/package.json | 1 - use-defi/tsconfig.json | 5 ++--- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 121f9a3..5d08943 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,8 @@ "postinstall": "pnpm generate", "lint": "pnpm eslint .", "test": "pnpm vitest run --root ./use-defi/test --config ./vitest.config.ts", - "generate": "npx openapi-typescript https://api.enso.finance/api-json -o use-defi/src/generated/api.d.ts", - "build": "pnpm generate && pnpm build:setup && cd use-defi && rollup -c", - "build:setup": "pnpm gts clean && cd use-defi && mkdir dist && jq 'del(.scripts) | del(.devDependencies) | del(.private) | del(.pnpm)' package.json > dist/package.json && cp README.md dist/README.md", + "generate": "cd use-defi && pnpm generate", + "build": "cd use-defi && pnpm build", "dev": "cd playground && vite dev" }, "keywords": [], diff --git a/tsconfig.json b/tsconfig.json index 79513d9..2ac6e45 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,7 +21,6 @@ "noUnusedLocals": true, "emitDeclarationOnly": true, "allowJs": true, - "composite": true, "forceConsistentCasingInFileNames": true, "isolatedModules": true, "outDir": "./dist", diff --git a/use-defi/package.json b/use-defi/package.json index 6171d84..1fa1c9c 100644 --- a/use-defi/package.json +++ b/use-defi/package.json @@ -15,7 +15,6 @@ "scripts": { "preinstall": "npx only-allow pnpm", "postinstall": "pnpm generate", - "lint": "pnpm eslint src/*", "test": "pnpm vitest run --root ./test --config ./vitest.config.ts", "generate": "npx openapi-typescript https://api.enso.finance/api-json -o src/generated/api.d.ts", "build": "pnpm generate && pnpm build:setup && rollup -c", diff --git a/use-defi/tsconfig.json b/use-defi/tsconfig.json index 4a5a177..fe589a3 100644 --- a/use-defi/tsconfig.json +++ b/use-defi/tsconfig.json @@ -8,9 +8,8 @@ } }, "include": [ - "src/**/*.ts", - "src/**/*.tsx", - "test/**/*.ts", + "src/**/*", + "test/**/*", "vitest.config.ts" ] } \ No newline at end of file