mirror of
https://github.com/mozilla/fxa.git
synced 2025-12-13 20:36:41 +01:00
Because: - Nx is on 19 currently and we want to support the new Nx caching features This commit: - Updates Nx from 19 to 21 - Bumps eslint to 8 across all packages and disables some rules that we do not respect - Some resources needed to be bumped since many of the build steps have been cached, but when run without cache they consume more RAM than available - Several version numbers have been consolidated across packages, but not necessarily upgraded outside of Nx itself. Closes FXA-10981
55 lines
1.5 KiB
JSON
55 lines
1.5 KiB
JSON
{
|
|
"name": "payments-eligibility",
|
|
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "libs/payments/eligibility/src",
|
|
"projectType": "library",
|
|
"tags": ["scope:shared:lib:payments"],
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/esbuild:esbuild",
|
|
"outputs": ["{options.outputPath}"],
|
|
"defaultConfiguration": "production",
|
|
"options": {
|
|
"main": "libs/payments/eligibility/src/index.ts",
|
|
"outputPath": "dist/libs/payments/eligibility",
|
|
"outputFileName": "main.js",
|
|
"tsConfig": "libs/payments/eligibility/tsconfig.lib.json",
|
|
"declaration": true,
|
|
"assets": [
|
|
{
|
|
"glob": "libs/payments/eligibility/README.md",
|
|
"input": ".",
|
|
"output": "."
|
|
}
|
|
],
|
|
"platform": "node"
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"minify": false
|
|
},
|
|
"production": {
|
|
"minify": true
|
|
}
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint",
|
|
"outputs": ["{options.outputFile}"],
|
|
"options": {
|
|
"lintFilePatterns": [
|
|
"libs/payments/eligibility/**/*.ts",
|
|
"libs/payments/eligibility/package.json"
|
|
]
|
|
}
|
|
},
|
|
"test-unit": {
|
|
"executor": "@nx/jest:jest",
|
|
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
"options": {
|
|
"jestConfig": "libs/payments/eligibility/jest.config.ts"
|
|
}
|
|
}
|
|
}
|
|
}
|