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
60 lines
1.6 KiB
JSON
60 lines
1.6 KiB
JSON
{
|
|
"name": "payments-paypal",
|
|
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "libs/payments/paypal/src",
|
|
"projectType": "library",
|
|
"tags": ["scope:shared:lib:payments"],
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/esbuild:esbuild",
|
|
"outputs": ["{options.outputPath}"],
|
|
"defaultConfiguration": "production",
|
|
"options": {
|
|
"main": "libs/payments/paypal/src/index.ts",
|
|
"outputPath": "dist/libs/payments/paypal",
|
|
"outputFileName": "main.js",
|
|
"tsConfig": "libs/payments/paypal/tsconfig.lib.json",
|
|
"assets": [
|
|
{
|
|
"glob": "libs/payments/paypal/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/paypal/**/*.ts"]
|
|
}
|
|
},
|
|
"test-unit": {
|
|
"executor": "@nx/jest:jest",
|
|
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
"options": {
|
|
"jestConfig": "libs/payments/paypal/jest.config.ts",
|
|
"testPathPattern": ["^(?!.*\\.in\\.spec\\.ts$).*$"]
|
|
}
|
|
},
|
|
"test-integration": {
|
|
"executor": "@nx/jest:jest",
|
|
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
"options": {
|
|
"jestConfig": "libs/payments/paypal/jest.config.ts",
|
|
"testPathPattern": ["\\.in\\.spec\\.ts$"]
|
|
}
|
|
}
|
|
}
|
|
}
|