From f3a6d889c07f0176a6f565c38720d2434a89aa32 Mon Sep 17 00:00:00 2001 From: KathrynSheenaMedina Date: Wed, 13 Mar 2024 17:11:46 +0800 Subject: [PATCH] build: set files in package.json --- README.md | 2 +- package.json | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fdfeb14..6601d91 100644 --- a/README.md +++ b/README.md @@ -134,4 +134,4 @@ console.log(isValid); // output: true 1. Update `version` in `package.json` 2. Update `CHANGELOG.md` 3. Commit and push the changes -4. Run `npm run publish` +4. Run `npm run release` diff --git a/package.json b/package.json index fec48b4..4aba4dc 100644 --- a/package.json +++ b/package.json @@ -9,13 +9,14 @@ "dev": "nodemon --exec ts-node index.ts --watch src", "test": "jest --verbose", "coverage": "jest --coverage", - "publish": "git tag v$npm_package_version && git push --tags" + "release": "git tag v$npm_package_version && git push --tags" }, "keywords": [ "onify", "javascript", "script", - "functions" + "functions", + "typescript" ], "author": { "name": "Onify", @@ -36,5 +37,8 @@ "repository": { "type": "git", "url": "git+https://github.com/onify/script-functions.git" - } + }, + "files": [ + "dist" + ] }