-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
92 lines (92 loc) · 3.31 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
{
"name": "@mojaloop/repo-name",
"version": "0.1.0",
"description": "Typescript Mojaloop project template",
"repository": {
"type": "git",
"url": "git+https://github.com/mojaloop/<repo-name>.git"
},
"keywords": [
"mojaloop",
"services",
"<repo-name>"
],
"author": "lewisdaly",
"contributors": [
"Lewis Daly <[email protected]>",
"Miguel de Barros <[email protected]>"
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/mojaloop/<repo-name>/issues"
},
"homepage": "https://github.com/mojaloop/<repo-name>#readme",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"dist"
],
"engines": {
"node": ">=18.x"
},
"scripts": {
"prepare": "husky || true",
"prepublishOnly": "npm run build",
"lint": "eslint ./src/**/*.ts ./test/**/*.ts",
"lint:fix": "npm run lint -- --fix",
"build": "tsc",
"watch": "tsc -w",
"start": "npm run start:no-build",
"start:no-build": "node dist/index.js",
"start:build": "npm run build && npm run start:no-build",
"start:dev": "ts-node -r tsconfig-paths/register -P ./tsconfig.json src/index.ts",
"test": "npm run test:unit",
"test:unit": "jest --testMatch='**/unit/**/*.test.ts'",
"test:xunit": "JEST_JUNIT_OUTPUT_DIR=./test/reports/ JEST_JUNIT_OUTPUT_NAME=xunit.xml npm run test:unit -- --reporters=jest-junit",
"test:coverage": "npm run test:unit -- --coverage --coverageThreshold='{}'",
"test:coverage-check": "npm run test:unit -- --coverage",
"test:int": "jest --testMatch='**/test/integration/**/*.test.ts'",
"test:functional": "echo \"ACTION: Add functional test here, or remove this script. Also check CI configs to comment out the necessary job'\"",
"warn-pre-commit": "echo \"pre commit tasks running. build and test\"",
"audit:resolve": "npx resolve-audit --production",
"audit:check": "npx check-audit --production",
"dep:check": "npx --no-install ncu -e 2",
"dep:update": "npx --no-install ncu -u",
"release": "npx standard-version --no-verify --releaseCommitMessageFormat 'ci(release): {{currentTag}} [skip ci]'",
"snapshot": "npx standard-version --no-verify --skip.changelog --prerelease snapshot --releaseCommitMessageFormat 'ci(snapshot): {{currentTag}}'"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.1",
"@typescript-eslint/eslint-plugin": "7.12.0",
"@typescript-eslint/parser": "7.12.0",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"husky": "^9.0.11",
"jest": "^29.7.0",
"jest-junit": "^16.0.0",
"lint-staged": "^15.2.5",
"npm-audit-resolver": "3.0.0-RC.0",
"npm-check-updates": "16.14.20",
"prettier": "3.3.0",
"replace": "^1.2.2",
"standard-version": "^9.5.0",
"ts-jest": "29.1.4",
"ts-node": "10.9.2",
"typescript": "5.4.5"
},
"standard-version": {
"scripts": {
"postchangelog": "replace '\\[mojaloop/#(\\d+)\\]\\(https://github.com/mojaloop/(.*)/issues/(\\d+)\\)' '[mojaloop/#$1](https://github.com/mojaloop/project/issues/$1)' CHANGELOG.md"
}
},
"lint-staged": {
"./src/*.ts": [
"eslint --fix",
"prettier --write --ignore-unknown"
]
}
}