feat: set up quality gates for CCS TypeScript package

- Migrate package manager from npm to bun
- Add ESLint configuration with TypeScript support
- Add Prettier configuration and .prettierignore
- Format all TypeScript source files
- Update CLAUDE.md with bun instructions
- Verify 39 tests passing
This commit is contained in:
kaitranntt committed 2025-11-26 20:43:21 -05:00
1 parent 49150dc24f
commit 0139333146
44 files changed
+1389 -2171

No files matched your search

+20 -7
View File
@@ -39,8 +39,10 @@
"LICENSE"
],
"engines": {
"node": ">=14.0.0"
"node": ">=14.0.0",
"bun": ">=1.0.0"
},
"packageManager": "bun@1.2.21",
"os": [
"darwin",
"linux",
@@ -51,14 +53,20 @@
"build": "tsc && node scripts/add-shebang.js",
"build:watch": "tsc --watch",
"prebuild": "rm -rf dist tsconfig.tsbuildinfo",
"test": "npm run build && npm run test:all",
"test:all": "npm run test:unit && npm run test:npm",
"test:unit": "npx mocha tests/shared/unit/**/*.test.js --timeout 5000",
"test:npm": "npx mocha tests/npm/**/*.test.js --timeout 10000",
"typecheck": "tsc --noEmit",
"lint": "eslint src/",
"lint:fix": "eslint src/ --fix",
"format": "prettier --write src/",
"format:check": "prettier --check src/",
"validate": "bun run typecheck && bun run lint && bun run format:check && bun run test",
"test": "bun run build && bun run test:all",
"test:all": "bun run test:unit && bun run test:npm",
"test:unit": "mocha tests/shared/unit/**/*.test.js --timeout 5000",
"test:npm": "mocha tests/npm/**/*.test.js --timeout 10000",
"test:native": "bash tests/native/unix/edge-cases.sh",
"test:edge-cases": "bash tests/edge-cases.sh",
"prepublishOnly": "npm run build && node scripts/sync-version.js",
"prepack": "npm run build && node scripts/sync-version.js",
"prepublishOnly": "npm run validate && node scripts/sync-version.js",
"prepack": "npm run validate && node scripts/sync-version.js",
"prepare": "node scripts/check-executables.js",
"postinstall": "node scripts/postinstall.js"
},
@@ -68,7 +76,12 @@
},
"devDependencies": {
"@types/node": "^20.19.25",
"@typescript-eslint/eslint-plugin": "^8.48.0",
"@typescript-eslint/parser": "^8.48.0",
"eslint": "^9.39.1",
"eslint-config-prettier": "^10.1.8",
"mocha": "^11.7.5",
"prettier": "^3.6.2",
"typescript": "5.3"
}
}