- Refactored delta creation in test files to use createDelta() pattern - Replaced direct Delta instantiations with fluent builder API - Updated relationship deltas to use setProperty with proper entity context - Ensured all tests pass with the new delta creation approach This is part of the ongoing effort to standardize on the DeltaBuilder API across the codebase for better consistency and maintainability.
85 lines
2.2 KiB
JSON
85 lines
2.2 KiB
JSON
{
|
|
"name": "rhizome-node",
|
|
"version": "0.1.0",
|
|
"description": "Rhizomatic database engine node",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"build:watch": "tsc --watch",
|
|
"lint": "eslint",
|
|
"test": "jest",
|
|
"coverage": "./scripts/coverage.sh",
|
|
"coverage-report": "npm run test -- --coverage --coverageDirectory=coverage",
|
|
"example-app": "node dist/examples/app.js",
|
|
"stop-all": "docker ps -a --filter \"name=^/rhizome-node-\" --format {{.Names}} | xargs -r docker stop",
|
|
"build-test-image": "docker build -t rhizome-node-test -f Dockerfile.test ."
|
|
},
|
|
"jest": {
|
|
"testEnvironment": "node",
|
|
"preset": "ts-jest/presets/default",
|
|
"roots": [
|
|
"./__tests__/"
|
|
],
|
|
"testMatch": [
|
|
"**/__tests__/**/*"
|
|
],
|
|
"setupFilesAfterEnv": [
|
|
"<rootDir>/__tests__/jest-setup.ts"
|
|
],
|
|
"transform": {
|
|
"^\\.tsx?$": [
|
|
"ts-jest",
|
|
{
|
|
"tsconfig": "tsconfig.json"
|
|
}
|
|
]
|
|
},
|
|
"detectOpenHandles": true,
|
|
"forceExit": true,
|
|
"verbose": true,
|
|
"testEnvironmentOptions": {
|
|
"NODE_ENV": "test"
|
|
}
|
|
},
|
|
"author": "Lentil <lentil@laddhoffman.com>",
|
|
"license": "Unlicense",
|
|
"dependencies": {
|
|
"@types/dockerode": "^3.3.40",
|
|
"debug": "^4.4.0",
|
|
"dockerode": "^4.0.7",
|
|
"express": "^4.21.2",
|
|
"json-logic-js": "^2.0.5",
|
|
"level": "^9.0.0",
|
|
"libp2p": "^2.4.2",
|
|
"microtime": "^3.1.1",
|
|
"object-hash": "^3.0.0",
|
|
"showdown": "^2.1.0",
|
|
"util": "./util/",
|
|
"uuid": "^9.0.0",
|
|
"zeromq": "^6.1.2"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.17.0",
|
|
"@types/bluebird": "^3.5.42",
|
|
"@types/debug": "^4.1.12",
|
|
"@types/express": "^5.0.0",
|
|
"@types/jest": "^29.5.14",
|
|
"@types/json-logic-js": "^2.0.8",
|
|
"@types/microtime": "^2.1.2",
|
|
"@types/node": "^22.15.31",
|
|
"@types/node-fetch": "^2.6.12",
|
|
"@types/object-hash": "^3.0.6",
|
|
"@types/showdown": "^2.0.6",
|
|
"@types/tar-fs": "^2.0.4",
|
|
"@types/uuid": "^10.0.0",
|
|
"eslint": "^9.17.0",
|
|
"eslint-config-airbnb-base-typescript": "^1.1.0",
|
|
"jest": "^29.7.0",
|
|
"node-fetch": "^2.7.0",
|
|
"ts-jest": "^29.2.5",
|
|
"ts-node": "^10.9.2",
|
|
"tsc-alias": "^1.8.10",
|
|
"typescript": "^5.7.2",
|
|
"typescript-eslint": "^8.18.0"
|
|
}
|
|
}
|