generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpackage.json
21 lines (21 loc) · 1.57 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"name": "@hmcts/nfdiv-case-definition",
"version": "0.0.52",
"description": "Utility to help creating CCD config definitions",
"main": "build/ts/index.d.ts",
"types": "build/ts/index.d.ts",
"repository": "[email protected]:hmcts/nfdiv-case-api.git",
"license": "MIT",
"private": false,
"engines": {
"node": ">=12.0.0"
},
"scripts": {
"prepublishOnly": "npm run genCaseTypeConsts && npm run genCitizenEventNameConsts && npm run genCommonEventNameConsts && npm run genSystemEventNameConsts && npm run genCourtLabelConsts",
"genCaseTypeConsts": "grep -rh \"public static final String\" ./src/main/java/uk/gov/hmcts/divorce/divorcecase/NoFaultDivorce.java | sed \"s/ public static final String/export const/\" >> ./build/ts/index.ts",
"genCitizenEventNameConsts": "grep -rh \"public static final String\" ./src/main/java/uk/gov/hmcts/divorce/citizen/event | sed \"s/ public static final String/export const/\" >> ./build/ts/index.ts",
"genCommonEventNameConsts": "grep -rh \"public static final String\" ./src/main/java/uk/gov/hmcts/divorce/common/event | sed \"s/ public static final String/export const/\" >> ./build/ts/index.ts",
"genSystemEventNameConsts": "grep -rh \"public static final String\" ./src/main/java/uk/gov/hmcts/divorce/systemupdate/event | sed \"s/ public static final String/export const/\" >> ./build/ts/index.ts",
"genCourtLabelConsts": "grep -rh \"public static final String\" ./src/main/java/uk/gov/hmcts/divorce/divorcecase/constant | sed \"s/ public static final String/export const/\" >> ./build/ts/index.ts"
}
}