forked from mojaloop/central-ledger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
160 lines (160 loc) · 6.11 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{
"name": "@mojaloop/central-ledger",
"version": "17.0.3",
"description": "Central ledger hosted by a scheme to record and settle transfers",
"license": "Apache-2.0",
"author": "ModusBox",
"contributors": [
"Georgi Georgiev <georgi.georgiev@modusbox.com>",
"Georgi Logodazhki <georgi.logodazhki@modusbox.com>",
"Henk Kodde <henkkodde@modusbox.com>",
"Kevin Leyow <kevin.leyow@modusbox.com>",
"Lazola Lucas <lazola.lucas@modusbox.com>",
"Lewis Daly <lewisd@crosslaketech.com>",
"Miguel de Barros <miguel.debarros@modusbox.com>",
"Paweł Marzec <pawel.marzec@modusbox.com>",
"Rajiv Mothilal <rajiv.mothilal@modusbox.com>",
"Sam Kummary <sam@modusbox.com>",
"Shashikant Hirugade <shashikant.hirugade@modusbox.com>",
"Steven Oderayi <steven.oderayi@modusbox.com>",
"Valentin Genev <valentin.genev@modusbox.com>"
],
"repository": {
"type": "git",
"url": "git@github.com:mojaloop/central-ledger.git"
},
"engines": {
"node": "=16.x"
},
"imports": {
"#src/*": "./src/*.js",
"#test/*": "./test/*.js"
},
"pre-commit": [
"lint",
"dep:check",
"test"
],
"scripts": {
"start": "npm run start:api",
"start:api": "node src/api/index.js",
"watch:api": "npx nodemon src/api/index.js",
"start:handlers": "node src/handlers/index.js",
"dev": "npm run docker:stop && docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d",
"lint": "npx standard",
"lint:fix": "npx standard --fix",
"test": "npm run test:unit",
"test:unit": "npx tape 'test/unit/**/*.test.js' | tap-spec",
"test:xunit": "npx tape 'test/unit/**/**.test.js' | tap-xunit > ./test/results/xunit.xml",
"test:coverage": "npx nyc --reporter=lcov --reporter=text-summary tapes -- 'test/unit/**/**.test.js'",
"test:coverage-check": "npm run test:coverage && nyc check-coverage",
"test:int": "npm run migrate && npx tape 'test/integration/**/*.test.js' | tap-spec",
"test:int:skipMigrate": "npx tape 'test/integration/**/*.test.js' | tap-spec",
"migrate": "npm run migrate:latest && npm run seed:run",
"migrate:latest": "npx knex $npm_package_config_knex migrate:latest",
"migrate:create": "npx knex migrate:make $npm_package_config_knex",
"migrate:rollback": "npx knex migrate:rollback $npm_package_config_knex",
"migrate:current": "npx knex migrate:currentVersion $npm_package_config_knex",
"seed:run": "npx knex seed:run $npm_package_config_knex",
"docker:build": "npm run docker:build:test && npm run docker:build:api",
"docker:build:test": "docker build --no-cache -f test.Dockerfile -t $npm_package_config_images_api:test .",
"docker:build:api": "docker build --no-cache -f Dockerfile -t $npm_package_config_images_api:latest .",
"docker:up": "docker-compose -f docker-compose.yml up",
"docker:up:backend": "docker-compose up -d ml-api-adapter mysql mockserver kafka kowl temp_curl",
"docker:up:int": "docker compose up -d kafka init-kafka objstore mysql",
"docker:script:populateTestData": "sh ./test/util/scripts/populateTestData.sh",
"docker:stop": "docker-compose -f docker-compose.yml stop",
"docker:rm": "docker-compose -f docker-compose.yml rm -f -v",
"docker:down": "docker-compose -f docker-compose.yml down -v",
"docker:clean": "docker-compose -f docker-compose.yml down --rmi local",
"generate-docs": "npx jsdoc -c jsdoc.json",
"audit:fix": "npm audit fix",
"audit:check": "npx audit-ci --config ./audit-ci.jsonc",
"dep:check": "npx ncu -e 2",
"dep:update": "npx ncu -u",
"release": "npx standard-version --no-verify --releaseCommitMessageFormat 'chore(release): {{currentTag}} [skip ci]'",
"snapshot": "npx standard-version --no-verify --skip.changelog --prerelease snapshot --releaseCommitMessageFormat 'chore(snapshot): {{currentTag}}'",
"wait-4-docker": "node ./scripts/_wait4_all.js"
},
"dependencies": {
"@hapi/good": "9.0.1",
"@hapi/hapi": "21.3.1",
"@hapi/inert": "7.1.0",
"@hapi/joi": "17.1.1",
"@hapi/vision": "7.0.1",
"@mojaloop/central-services-database": "10.7.0",
"@mojaloop/central-services-error-handling": "12.0.5",
"@mojaloop/central-services-health": "14.0.1",
"@mojaloop/central-services-logger": "11.2.0",
"@mojaloop/central-services-metrics": "12.0.5",
"@mojaloop/central-services-shared": "17.5.1",
"@mojaloop/central-services-stream": "11.0.0",
"@mojaloop/event-sdk": "11.0.2",
"@mojaloop/ml-number": "11.2.1",
"@mojaloop/object-store-lib": "12.0.0",
"@now-ims/hapi-now-auth": "2.1.0",
"ajv": "8.12.0",
"ajv-keywords": "5.1.0",
"base64url": "3.0.1",
"blipp": "4.0.2",
"catbox-memory": "4.0.1",
"commander": "10.0.0",
"cron": "2.3.0",
"decimal.js": "10.4.3",
"docdash": "2.0.1",
"event-stream": "4.0.1",
"five-bells-condition": "5.0.1",
"glob": "8.1.0",
"hapi-auth-basic": "5.0.0",
"hapi-auth-bearer-token": "8.0.0",
"hapi-swagger": "16.0.1",
"ilp-packet": "2.2.0",
"knex": "2.4.2",
"lodash": "4.17.21",
"moment": "2.29.4",
"mongo-uri-builder": "^4.0.0",
"rc": "1.2.8",
"require-glob": "^4.1.0",
"uuid4": "2.0.3"
},
"optionalDependencies": {
"mysql": "2.18.1"
},
"devDependencies": {
"async-retry": "1.3.3",
"audit-ci": "^6.6.1",
"get-port": "5.1.1",
"jsdoc": "4.0.2",
"jsonpath": "1.1.1",
"nodemon": "2.0.22",
"npm-check-updates": "16.8.2",
"nyc": "15.1.0",
"pre-commit": "1.2.2",
"proxyquire": "2.1.3",
"replace": "^1.2.2",
"sinon": "15.0.3",
"standard": "17.0.0",
"standard-version": "^9.5.0",
"tap-spec": "^5.0.0",
"tap-xunit": "2.4.1",
"tape": "4.13.2",
"tapes": "4.1.0"
},
"config": {
"knex": "--knexfile ./config/knexfile.js",
"images": {
"api": "central-ledger",
"admin": "central-ledger-admin"
}
},
"standard": {
"ignore": [
"/migrations/**"
]
},
"standard-version": {
"scripts": {
"postchangelog": "replace '\\[mojaloop/#(\\d+)\\]\\(https://github.com/mojaloop/(.*)/issues/(\\d+)\\)' '[mojaloop/#$1](https://github.com/mojaloop/project/issues/$1)' CHANGELOG.md"
}
}
}