From cf04e28c38ecb50ac6fee7fb0872f0c1a7939314 Mon Sep 17 00:00:00 2001 From: Alexander Zinn Date: Sat, 22 Nov 2025 21:26:31 -0500 Subject: [PATCH] Update package version to 1.0.1, enhance ESLint configuration to ignore specific directories and files, and refine .gitignore to include dist directory. --- .gitignore | 2 +- eslint.config.ts | 3 +++ package.json | 21 ++++++++++++++++++--- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index a14702c..0aa2b42 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,7 @@ node_modules # output out -dist +dist/ *.tgz # code coverage diff --git a/eslint.config.ts b/eslint.config.ts index f5e9c78..c5ced9a 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -7,6 +7,9 @@ import css from "@eslint/css"; import { defineConfig } from "eslint/config"; export default defineConfig([ + { + ignores: ["dist/**", "node_modules/**", "*.min.js"] + }, { files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], plugins: { js }, extends: ["js/recommended"], languageOptions: { globals: globals.node } }, tseslint.configs.recommended, { files: ["**/*.json"], plugins: { json }, language: "json/json", extends: ["json/recommended"] }, diff --git a/package.json b/package.json index f04aa3d..6f764c9 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,26 @@ { "name": "@techniker-me/hash-map", - "version": "1.0.0", + "version": "1.0.1", "description": "A robust HashMap implementation following OOP SOLID principles", "module": "src/index.ts", "type": "module", "main": "src/index.ts", - "types": "src/index.ts", + "types": "types/index.d.ts", + "exports": { + ".": { + "node": "./node/index.js", + "browser": "./browser/index.js" + }, + "./types": "./types/index.d.ts" + }, + "files": [ + "node", + "browser", + "types" + ], + "publishConfig": { + "access": "public" + }, "scripts": { "ci-install": "bun install", "ci-test": "bun test", @@ -22,7 +37,7 @@ "build:browser": "bun build ./src/index.ts --target=browser --sourcemap=none --format=esm --splitting --minify --outdir=dist/browser", "build:types": "bunx tsc -p tsconfig.d.json", "build:prepare-package-json": "bash scripts/prepare-package-json.sh" - }, + }, "keywords": [ "hashmap", "hash-map",