From d84cbe7188ee7f43e183314d775347546f0cdbea Mon Sep 17 00:00:00 2001 From: Astitv Singh Date: Sat, 9 Nov 2024 09:57:39 +0530 Subject: [PATCH] `Commit Message Title` `Summary` A brief one-line summary of the changes made in this commit. `Description` A detailed description of the changes introduced by this commit. Include information about why the changes were made, how they address specific issues or requirements, and any relevant context or considerations. `Type` Specify the type of change represented by this commit. Choose only one of the following options: - Feature: A new feature or enhancement added to the project. - Fix: A bug fix or resolution to an issue. - Refactor: Code refactoring or restructuring without changing behavior. - Documentation: Updates or additions to documentation files. - Test: Additions or modifications to tests. - Chore: Routine maintenance tasks, such as dependency updates or code cleanup. `Impact` Describe the impact of this change on the project. Consider factors such as functionality, performance, compatibility, and user experience. `Related Issues` List any related issues or tickets addressed by this commit. Use GitHub issue numbers or links to reference specific issues. `Dependencies` Specify any dependencies or requirements associated with this commit. Include information about libraries, frameworks, or other components affected by the changes. `Testing` Describe the testing approach or strategy used to validate this change. Include details about test cases, scenarios, or environments used for testing. `Notes` Add any additional notes, comments, or considerations relevant to this commit. This may include warnings, caveats, or follow-up tasks for future work. `Commit Checklist`: - [ ] The commit message follows the established format and guidelines. - [ ] The changes introduced by the commit have been thoroughly reviewed and tested. - [ ] Any related issues or tickets have been appropriately linked or referenced. - [ ] Documentation has been updated to reflect the changes introduced by the commit. - [ ] The commit does not introduce any new linting errors, warnings, or regressions. `Branch` On branch `Changes` Changes to be committed: --- package.json | 20 +++++++++++++++++--- tsconfig.cjs.json | 1 + tsconfig.esm.json | 1 + 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f35974a..54c7bf8 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,27 @@ { "name": "casinojs", "version": "0.1.0-alpha", - "description": "A Casino Js Library.", + "description": "A comprehensive JavaScript library for building and managing casino game functionalities, including poker seat management, event handling, and custom middleware.", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", + "types": "dist/esm/index.d.ts", "type": "module", "directories": { "doc": "docs" }, + "exports": { + ".": { + "require": "./dist/cjs/index.js", + "import": "./dist/esm/index.js", + "types": "./dist/esm/index.d.ts" + } + }, "scripts": { "build": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json", "test": "jest --coverage", - "docify": "typedoc --entryPointStrategy expand src --out docs/site" + "docify": "typedoc --entryPointStrategy expand src --out docs/site", + "prepublishOnly": "npm run build && npm test && npm run docify", + "prepublish": "npm run build && npm test && npm run docify" }, "repository": { "type": "git", @@ -22,7 +32,11 @@ "casino", "pokerjs", "poker", - "lib" + "casino library", + "game management", + "event handling", + "middleware", + "typescript" ], "author": "Astitv Singh ", "license": "SEE LICENSE IN LICENSE", diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json index 3fe621e..40f7e9a 100644 --- a/tsconfig.cjs.json +++ b/tsconfig.cjs.json @@ -4,6 +4,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "module": "CommonJS", + "declaration": true, "outDir": "./dist/cjs" } } diff --git a/tsconfig.esm.json b/tsconfig.esm.json index b6f33e8..728e798 100644 --- a/tsconfig.esm.json +++ b/tsconfig.esm.json @@ -4,6 +4,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "module": "ESNext", + "declaration": true, "outDir": "./dist/esm" } }