53 lines
1.2 KiB
JSON
53 lines
1.2 KiB
JSON
{
|
|
"name": "i18n",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "libs/i18n/src",
|
|
"projectType": "library",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/js:tsc",
|
|
"outputs": ["{options.outputPath}"],
|
|
"format": ["esm", "cjs"],
|
|
"options": {
|
|
"outputPath": "dist/libs/i18n",
|
|
"main": "libs/i18n/src/index.ts",
|
|
"tsConfig": "libs/i18n/tsconfig.lib.json",
|
|
"assets": ["libs/i18n/*.md"]
|
|
}
|
|
},
|
|
"publish": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "node tools/scripts/publish.mjs i18n {args.ver} {args.tag}"
|
|
},
|
|
"dependsOn": [
|
|
{
|
|
"target": "build"
|
|
}
|
|
]
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/linter:eslint",
|
|
"outputs": ["{options.outputFile}"],
|
|
"options": {
|
|
"lintFilePatterns": ["libs/i18n/**/*.ts"]
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nx/jest:jest",
|
|
"outputs": ["{workspaceRoot}/coverage/libs/i18n"],
|
|
"options": {
|
|
"jestConfig": "libs/i18n/jest.config.ts",
|
|
"passWithNoTests": true
|
|
},
|
|
"configurations": {
|
|
"ci": {
|
|
"ci": true,
|
|
"codeCoverage": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": []
|
|
}
|