feat: add ESLint configuration, update package.json scripts, and create example files for Bun integration

This commit is contained in:
2025-08-20 13:20:59 -04:00
parent 15a6f1ac81
commit b12aef225a
24 changed files with 464 additions and 128 deletions

View File

@@ -10,6 +10,9 @@
"test:watch": "bun test --watch",
"test:coverage": "bun test --coverage",
"prebuild": "bun run clean",
"prelint": "bun install",
"lint": "eslint src/**/*.ts",
"lint:fix": "eslint src/**/*.ts --fix",
"build": "bun run build:node && bun run build:browser && bun run build:types",
"build:node": "bun build src/index.ts --outdir dist/node --target node --format esm --production",
"build:browser": "bun build src/index.ts --outdir dist/browser --target browser --format esm --production",
@@ -19,16 +22,22 @@
"build:types:dev": "tsc --emitDeclarationOnly --outDir dist/types",
"prebuild:dev": "bun run clean",
"build:dev": "bun run build:node:dev && bun run build:browser:dev && bun run build:types:dev",
"postclean": "bun run lint",
"clean": "rm -rf dist"
},
"devDependencies": {
"@eslint/js": "9.33.0",
"@types/bun": "latest",
"@types/node": "24.3.0",
"chai": "5.3.1",
"chai-as-promised": "8.0.1",
"eslint": "9.33.0",
"globals": "16.3.0",
"jiti": "2.5.1",
"mocha": "11.7.1",
"prettier": "3.6.2",
"typescript": "5.9.2"
"typescript": "5.9.2",
"typescript-eslint": "8.40.0"
},
"dependencies": {
"phenix-edge-auth": "1.2.7"
@@ -50,4 +59,4 @@
"files": [
"dist"
]
}
}