From 0c3b21c5bc6738424962517da28907a33e5bf763 Mon Sep 17 00:00:00 2001 From: Karan Kanwar Date: Wed, 12 Jul 2023 16:18:10 -0400 Subject: [PATCH] More changes to publish --- .github/workflows/Publish.yml | 1 + package.json | 8 ++++---- tsconfig.json | 3 ++- tsconfig.types.json | 13 ------------- 4 files changed, 7 insertions(+), 18 deletions(-) delete mode 100644 tsconfig.types.json diff --git a/.github/workflows/Publish.yml b/.github/workflows/Publish.yml index 9b67b46..ca24c9b 100644 --- a/.github/workflows/Publish.yml +++ b/.github/workflows/Publish.yml @@ -14,6 +14,7 @@ jobs: - name: Build run: | npm ci + npm run lint npm run build - name: Publish to NPM run: npm publish diff --git a/package.json b/package.json index 9a94d88..ccd9a08 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,11 @@ { "name": "@spresso-sdk/price_optimization", - "version": "2.0.4", + "version": "2.0.5", "description": "Spresso Price Optimization SDK for Node", "sideEffects": false, "private": false, "scripts": { "build": "npx tsc -p ./tsconfig.json", - "build:types": "tsc -p ./tsconfig.types.json", "lint": "npx eslint ./src" }, "author": "Spresso", @@ -25,9 +24,10 @@ "dependencies": { "axios": "^1.4.0" }, + "main": "dist/index.js", + "types": "dist/index.d.ts", "files": [ - "dist", - "dist-types" + "dist" ], "homepage": "", "repository": { diff --git a/tsconfig.json b/tsconfig.json index 0e8ce01..ce578af 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -27,7 +27,8 @@ "esModuleInterop": true, "removeComments": true, "outDir": "dist", - "rootDir": "src" + "rootDir": "src", + "declaration": true }, "include": ["src/"] } diff --git a/tsconfig.types.json b/tsconfig.types.json deleted file mode 100644 index 5553d6b..0000000 --- a/tsconfig.types.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": ".", - "declarationDir": "dist-types", - "rootDir": "src", - "declaration": true, - "emitDeclarationOnly": true, - "removeComments": false, - "strict": true - }, - "extends": "./tsconfig.json", - "include": ["src/"] -}