-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproject.json
44 lines (44 loc) · 1.24 KB
/
project.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
{
"name": "contracts",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "plugins/contracts/src",
"projectType": "library",
"tags": ["plugin"],
"targets": {
"build": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/plugins/contracts",
"tsConfig": "plugins/contracts/tsconfig.lib.json",
"packageJson": "plugins/contracts/package.json",
"main": "plugins/contracts/src/index.ts",
"assets": ["plugins/contracts/*.md"]
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "plugins/contracts/jest.config.ts"
}
},
"publish": {
"executor": "nx:run-commands",
"options": {
"command": "node tools/scripts/publish.mjs contracts {args.registry} {args.ver} {args.tag}"
},
"dependsOn": ["build"]
},
"validator": {
"executor": "nx:run-commands",
"options": {
"cwd": "plugins/contracts",
"command": "ts-to-zod src/configuration.ts src/configuration.validator.ts"
}
}
}
}