forked from hmcts/sptribs-dss-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
20 lines (20 loc) · 1.35 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"name": "@hmcts/edge-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": "git@github.com:hmcts/sptribs-dss-backend.git",
"license": "MIT",
"private": false,
"engines": {
"node": ">=12.0.0"
},
"scripts": {
"prepublishOnly": "npm run genCaseTypeConsts && npm run genCitizenEventNameConsts && npm run genCommonEventNameConsts && npm run genSystemEventNameConsts",
"genCaseTypeConsts": "grep -rh \"public static final String\" ./src/main/java/uk/gov/hmcts/reform/cosapi/edgecase/cosapi.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/reform/cosapi/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/reform/cosapi/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/reform/cosapi/systemupdate/event | sed \"s/ public static final String/export const/\" >> ./build/ts/index.ts"
}
}