Update package version to 1.0.1, enhance ESLint configuration to ignore specific directories and files, and refine .gitignore to include dist directory.
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -3,7 +3,7 @@ node_modules
|
|||||||
|
|
||||||
# output
|
# output
|
||||||
out
|
out
|
||||||
dist
|
dist/
|
||||||
*.tgz
|
*.tgz
|
||||||
|
|
||||||
# code coverage
|
# code coverage
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ import css from "@eslint/css";
|
|||||||
import { defineConfig } from "eslint/config";
|
import { defineConfig } from "eslint/config";
|
||||||
|
|
||||||
export default defineConfig([
|
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 } },
|
{ files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], plugins: { js }, extends: ["js/recommended"], languageOptions: { globals: globals.node } },
|
||||||
tseslint.configs.recommended,
|
tseslint.configs.recommended,
|
||||||
{ files: ["**/*.json"], plugins: { json }, language: "json/json", extends: ["json/recommended"] },
|
{ files: ["**/*.json"], plugins: { json }, language: "json/json", extends: ["json/recommended"] },
|
||||||
|
|||||||
21
package.json
21
package.json
@@ -1,11 +1,26 @@
|
|||||||
{
|
{
|
||||||
"name": "@techniker-me/hash-map",
|
"name": "@techniker-me/hash-map",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "A robust HashMap implementation following OOP SOLID principles",
|
"description": "A robust HashMap implementation following OOP SOLID principles",
|
||||||
"module": "src/index.ts",
|
"module": "src/index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"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": {
|
"scripts": {
|
||||||
"ci-install": "bun install",
|
"ci-install": "bun install",
|
||||||
"ci-test": "bun test",
|
"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: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:types": "bunx tsc -p tsconfig.d.json",
|
||||||
"build:prepare-package-json": "bash scripts/prepare-package-json.sh"
|
"build:prepare-package-json": "bash scripts/prepare-package-json.sh"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"hashmap",
|
"hashmap",
|
||||||
"hash-map",
|
"hash-map",
|
||||||
|
|||||||
Reference in New Issue
Block a user