@nivinjoseph/n-data
Version:
Data access library for Postgres based on Knex
72 lines (71 loc) • 3.15 kB
JSON
{
"name": "@nivinjoseph/n-data",
"version": "3.0.2",
"description": "Data access library for Postgres based on Knex",
"packageManager": "yarn@4.0.2",
"type": "module",
"exports": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"ts-compile": "tsc -p .",
"ts-lint": "eslint . --ext .ts",
"ts-build": "yarn ts-compile && yarn ts-lint",
"ts-build-dist": "yarn ts-build && tsc -p ./dist",
"clean-src": "find ./src -name '*.js' -delete -o -name '*.map' -delete",
"clean-test": "find ./test -name '*.js' -delete -o -name '*.map' -delete",
"clean-dist": "find ./dist -name '*.js' -delete -o -name '*.map' -delete -o -name '*.ts' -delete",
"clean-all": "yarn clean-src && yarn clean-test && yarn clean-dist",
"setup-db-server": "docker run --name test-postgres -p 5432:5432 -e POSTGRES_PASSWORD=p@ssw0rd -d postgres:12.2 && yarn setup-redis-server && sleep 5",
"setup-db": "docker run -it --rm -e PGPASSWORD=p@ssw0rd postgres:12.2 psql -h 172.17.0.1 -U postgres -c 'create database testdb;'",
"setup-redis-server": "docker run --name test-redis -p 6379:6379 -d redis:7.0",
"setup-test-env": "yarn ts-build && yarn setup-db-server && yarn setup-db",
"test": "yarn setup-test-env && node --test --enable-source-maps ./test/*.test.js || true && yarn teardown-test-env",
"teardown-test-env": "docker stop test-postgres && docker rm test-postgres && docker stop test-redis && docker rm test-redis",
"publish-package": "yarn ts-build-dist && git add . && git commit -m 'preparing to publish new version' && npm version patch && git push && npm publish --access=public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/nivinjoseph/n-data.git"
},
"keywords": [
"data"
],
"author": "NiviN",
"license": "MIT",
"bugs": {
"url": "https://github.com/nivinjoseph/n-data/issues"
},
"homepage": "https://github.com/nivinjoseph/n-data#readme",
"devDependencies": {
"@nivinjoseph/n-config": "^2.0.1",
"@types/mime-types": "^2.1.4",
"@types/node": "^20.10",
"@types/pg": "^8.6.5",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"eslint": "^8.56.0",
"eslint-plugin-require-extensions": "^0.1.3",
"typescript": "^5.3.3"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.499.0",
"@aws-sdk/s3-request-presigner": "^3.499.0",
"@nivinjoseph/n-defensive": "^2.0.1",
"@nivinjoseph/n-domain": "^3.0.1",
"@nivinjoseph/n-exception": "^2.0.1",
"@nivinjoseph/n-ext": "^2.0.1",
"@nivinjoseph/n-ject": "^3.0.2",
"@nivinjoseph/n-log": "^3.0.1",
"@nivinjoseph/n-sec": "^6.0.1",
"@nivinjoseph/n-util": "^2.0.1",
"knex": "^3.1.0",
"mime-types": "^2.1.35",
"pg": "^8.11.3",
"redis": "^4.6.12",
"treeize": "^2.1.2"
},
"engineStrict": true,
"engines": {
"node": ">=20.10"
}
}