src.nth.io/

summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'package.json')
-rw-r--r--package.json39
1 files changed, 39 insertions, 0 deletions
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..a60f08e
--- /dev/null
+++ b/package.json
@@ -0,0 +1,39 @@
+{
+ "name": "mattertimesync",
+ "version": "0.1.0",
+ "description": "CLI Matter controller that synchronizes the clocks of Matter devices via the standard Time Synchronization cluster",
+ "type": "module",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20"
+ },
+ "bin": {
+ "mattertimesync": "dist/cli.js"
+ },
+ "files": [
+ "dist"
+ ],
+ "scripts": {
+ "build": "tsc",
+ "bundle": "npm run clean && npm run build && esbuild dist/cli.js --bundle --platform=node --target=node20 --format=esm --external:bun:sqlite --external:*/BunSqlite.js --banner:js=\"import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);\" --outfile=mattertimesync.mjs",
+ "prepack": "npm run clean && npm run build",
+ "clean": "rm -rf dist",
+ "test": "vitest run",
+ "test:watch": "vitest",
+ "lint": "oxlint src test",
+ "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"*.json\" \"*.md\"",
+ "format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\" \"*.json\" \"*.md\""
+ },
+ "dependencies": {
+ "@matter/main": "^0.17.6",
+ "@project-chip/matter.js": "^0.17.6"
+ },
+ "devDependencies": {
+ "@types/node": "^26.1.1",
+ "esbuild": "^0.28.1",
+ "oxlint": "^1.0.0",
+ "prettier": "^3.6.0",
+ "typescript": "^7.0.2",
+ "vitest": "^4.1.10"
+ }
+}