From 63fb2c2684ef5ef86b5cb756033b8e711d5bf7ab Mon Sep 17 00:00:00 2001 From: Victor Quinn Date: Wed, 29 May 2024 20:46:19 -0400 Subject: [PATCH] Add the dist/ folder --- .github/workflows/publish.yml | 6 ++++-- package.json | 7 +++++-- tsconfig.json | 4 ++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f6b7932..8199000 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,6 +29,9 @@ jobs: - name: Run tests run: npm test + - name: Build it + run: npm run build + - name: Get current version id: get_version run: echo "version=$(jq -r .version package.json)" >> $GITHUB_ENV @@ -52,5 +55,4 @@ jobs: - name: Publish to npm if: env.new_version == 'true' - run: | - npm publish \ No newline at end of file + run: npm publish diff --git a/package.json b/package.json index f280df9..6cef9e2 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "weather-plus", - "version": "0.0.6", + "version": "0.0.8", "description": "Weather Plus is a powerful wrapper around various Weather APIs that simplifies adding weather data to your application", - "main": "./dist", + "main": "./dist/index.js", "repository": "git@github.com:TextureHQ/weather-plus.git", "author": "Victor Quinn ", "license": "MIT", @@ -15,6 +15,9 @@ "test:watch": "jest --watch", "prebuild": "rimraf ./dist" }, + "files": [ + "dist" + ], "dependencies": { "axios": "^1.6.8", "ngeohash": "^0.6.3", diff --git a/tsconfig.json b/tsconfig.json index b09e247..16c265d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,6 +7,6 @@ "strict": true, "esModuleInterop": true, "skipLibCheck": true - } + }, + "exclude": ["node_modules", "jest.config.ts"] } - \ No newline at end of file