From b271cddc2541465abe3d9c4b1e9427dfde6ec233 Mon Sep 17 00:00:00 2001 From: praveen-mohan-cs Date: Tue, 27 Aug 2024 14:11:52 +0530 Subject: [PATCH] Updated NPM config --- .github/workflows/npm-publish-github-packages.yml | 2 +- .github/workflows/npm-publish.yml | 2 +- .npmignore | 7 ++++++- package.json | 10 ++++++++-- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index eed9d39..973782a 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -8,7 +8,7 @@ on: types: [created] jobs: - build: + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 509f154..5aef18b 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -8,7 +8,7 @@ on: types: [created] jobs: - build: + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.npmignore b/.npmignore index b7aecb8..a109d5e 100644 --- a/.npmignore +++ b/.npmignore @@ -1,8 +1,13 @@ /src /node_modules +/tests .env .DS_Store +.github tsconfig.json -tsup.config.ts \ No newline at end of file +tsup.config.ts +jest.config.js + +CODEOWNERS diff --git a/package.json b/package.json index f30d9a7..79ad58f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@contentstack/types-generator", - "version": "1.0.2", + "version": "1.0.3", "description": "Contentstack type definition generation library", "private": false, "author": "Contentstack", @@ -8,6 +8,7 @@ "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "scripts": { + "prepare": "npm run build", "build": "tsup", "test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=tests" }, @@ -46,5 +47,10 @@ "axios": "^1.7.4", "lodash": "^4.17.21", "prettier": "^3.3.3" - } + }, + "files": [ + "dist", + "package.json", + "README.md" + ] }