40 lines
1.1 KiB
JSON
40 lines
1.1 KiB
JSON
{
|
|
"name": "shared",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "packages/shared/src",
|
|
"projectType": "library",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/js:tsc",
|
|
"outputs": ["{options.outputPath}"],
|
|
"options": {
|
|
"outputPath": "dist/packages/shared",
|
|
"main": "packages/shared/src/index.ts",
|
|
"tsConfig": "packages/shared/tsconfig.lib.json",
|
|
"assets": ["packages/shared/*.md"],
|
|
"buildableProjectDepsInPackageJsonType": "dependencies",
|
|
"updateBuildableProjectDepsInPackageJson": true
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nx/jest:jest",
|
|
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
"options": {
|
|
"jestConfig": "packages/shared/jest.config.ts"
|
|
}
|
|
},
|
|
"publish": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "node tools/scripts/publish.mjs shared {args.ver} {args.tag}"
|
|
},
|
|
"dependsOn": ["build"]
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint",
|
|
"outputs": ["{options.outputFile}"]
|
|
}
|
|
},
|
|
"tags": []
|
|
}
|