2023-02-28 18:56:29 +00:00
|
|
|
{
|
2023-07-04 11:01:25 +00:00
|
|
|
"name": "utils",
|
2023-02-28 18:56:29 +00:00
|
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
|
|
"sourceRoot": "libs/utils/src",
|
|
|
|
"projectType": "library",
|
|
|
|
"targets": {
|
|
|
|
"build": {
|
2023-09-08 20:43:54 +00:00
|
|
|
"executor": "@nx/js:swc",
|
2023-02-28 18:56:29 +00:00
|
|
|
"outputs": ["{options.outputPath}"],
|
2023-04-21 14:28:18 +00:00
|
|
|
"format": ["esm", "cjs"],
|
2023-02-28 18:56:29 +00:00
|
|
|
"options": {
|
|
|
|
"outputPath": "dist/libs/utils",
|
|
|
|
"main": "libs/utils/src/index.ts",
|
|
|
|
"tsConfig": "libs/utils/tsconfig.lib.json",
|
2023-09-07 05:12:21 +00:00
|
|
|
"assets": ["libs/utils/*.md"]
|
2023-02-28 18:56:29 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"publish": {
|
2023-07-04 11:01:25 +00:00
|
|
|
"executor": "nx:run-commands",
|
2023-02-28 18:56:29 +00:00
|
|
|
"options": {
|
|
|
|
"command": "node tools/scripts/publish.mjs utils {args.ver} {args.tag}"
|
|
|
|
},
|
|
|
|
"dependsOn": [
|
|
|
|
{
|
|
|
|
"target": "build"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"lint": {
|
2023-11-14 14:25:29 +00:00
|
|
|
"executor": "@nx/eslint:lint",
|
2023-02-28 18:56:29 +00:00
|
|
|
"outputs": ["{options.outputFile}"],
|
|
|
|
"options": {
|
|
|
|
"lintFilePatterns": ["libs/utils/**/*.ts"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"test": {
|
2023-07-04 11:01:25 +00:00
|
|
|
"executor": "@nx/jest:jest",
|
|
|
|
"outputs": ["{workspaceRoot}/coverage/libs/utils"],
|
2023-02-28 18:56:29 +00:00
|
|
|
"options": {
|
2023-11-14 14:25:29 +00:00
|
|
|
"jestConfig": "libs/utils/jest.config.ts"
|
2023-02-28 18:56:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
}
|