From dc3d4429e9d336c9cb8a1506ddd1866019d86779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Di=20Domenico?= Date: Tue, 23 Jan 2024 11:33:04 +0100 Subject: [PATCH 1/6] chore(pnpm-workspace): fix packages field to match pnpm 8 requirement --- pnpm-workspace.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 9186b10..dee51e9 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1 +1,2 @@ packages: + - "packages/*" From 2dad353450212ffa835663960dbf60a7508a987c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Di=20Domenico?= Date: Tue, 23 Jan 2024 11:33:59 +0100 Subject: [PATCH 2/6] chore(root): install nx & remove nrwl/cli --- package.json | 3 +- pnpm-lock.yaml | 358 +++++++++++++++++++++++++------------------------ 2 files changed, 185 insertions(+), 176 deletions(-) diff --git a/package.json b/package.json index 512387d..99e6e5f 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,6 @@ "devDependencies": { "@commitlint/cli": "^17.6.6", "@commitlint/config-conventional": "^17.6.6", - "@nrwl/cli": "^15.9.3", - "@nrwl/tao": "^16.4.1", "@nrwl/workspace": "^16.4.1", "@types/jest": "^29.5.2", "@typescript-eslint/eslint-plugin": "^5.60.1", @@ -47,6 +45,7 @@ "jest": "^29.5.0", "lint-staged": "^13.2.3", "npm-audit-resolver": "3.0.0-RC.0", + "nx": "^17.2.8", "prettier": "^2.8.8", "serverless-iam-roles-per-function": "^3.2.0", "syncpack": "^10.6.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 07cd94c..078a89d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,12 +14,6 @@ importers: '@commitlint/config-conventional': specifier: ^17.6.6 version: 17.6.6 - '@nrwl/cli': - specifier: ^15.9.3 - version: 15.9.3 - '@nrwl/tao': - specifier: ^16.4.1 - version: 16.4.1 '@nrwl/workspace': specifier: ^16.4.1 version: 16.4.1 @@ -68,6 +62,9 @@ importers: npm-audit-resolver: specifier: 3.0.0-RC.0 version: 3.0.0-RC.0 + nx: + specifier: ^17.2.8 + version: 17.2.8 prettier: specifier: ^2.8.8 version: 2.8.8 @@ -842,7 +839,7 @@ packages: '@babel/traverse': 7.22.8 '@babel/types': 7.22.5 convert-source-map: 1.9.0 - debug: 4.3.4(supports-color@8.1.1) + debug: 4.3.4 gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -1225,7 +1222,7 @@ packages: '@babel/helper-split-export-declaration': 7.22.6 '@babel/parser': 7.22.7 '@babel/types': 7.22.5 - debug: 4.3.4(supports-color@8.1.1) + debug: 4.3.4 globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -1848,7 +1845,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 - debug: 4.3.4(supports-color@8.1.1) + debug: 4.3.4 espree: 9.6.0 globals: 13.20.0 ignore: 5.2.4 @@ -1938,7 +1935,7 @@ packages: engines: {node: '>=10.10.0'} dependencies: '@humanwhocodes/object-schema': 1.2.1 - debug: 4.3.4(supports-color@8.1.1) + debug: 4.3.4 minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -2871,16 +2868,6 @@ packages: deprecated: this package has been deprecated, use `ci-info` instead dev: true - /@nrwl/cli@15.9.3: - resolution: {integrity: sha512-qiAKHkov3iBx6hroPTitUrkRSUZFQqVgNJiF9gXRFC6pNJe9RS4rlmcIaoUFOboi9CnH5jwblNJVcz8YSVYOvA==} - dependencies: - nx: 15.9.3 - transitivePeerDependencies: - - '@swc-node/register' - - '@swc/core' - - debug - dev: true - /@nrwl/devkit@16.4.1(nx@16.4.1): resolution: {integrity: sha512-kio+x1NonteK9Vxrgeai56+cDFkiWUl42YzLamNXORvICgVgGtcR7afdi9l7j9q2YPUuvtBos6T9YddS6YCb2g==} dependencies: @@ -2889,103 +2876,23 @@ packages: - nx dev: true - /@nrwl/nx-darwin-arm64@15.9.3: - resolution: {integrity: sha512-2htJzVa+S/uLg5tj4nbO/tRz2SRMQIpT6EeWMgDGuEKQdpuRLVj2ez9hMpkRn9tl1tBUwR05hbV28DnOLRESVA==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@nrwl/nx-darwin-x64@15.9.3: - resolution: {integrity: sha512-p+8UkfC6KTLOX4XRt7NSP8DoTzEgs73+SN0csoXT9VsNO35+F0Z5zMZxpEc7RVo5Wen/4PGh2OWA+8gtgntsJQ==} - engines: {node: '>= 10'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@nrwl/nx-linux-arm-gnueabihf@15.9.3: - resolution: {integrity: sha512-xwW7bZtggrxhFbYvvWWArtcSWwoxWzi/4wNgP3wPbcZFNZiraahVQSpIyJXrS9aajGbdvuDBM8cbDsMj9v7mwg==} - engines: {node: '>= 10'} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@nrwl/nx-linux-arm64-gnu@15.9.3: - resolution: {integrity: sha512-KNxDL2OAHxhFqztEjv2mNwXD6xrzoUury7NsYZYqlxJUNc3YYBfRSLEatnw491crvMBndbxfGVTWEO9S4YmRuw==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@nrwl/nx-linux-arm64-musl@15.9.3: - resolution: {integrity: sha512-AxoZzfsXH7ZqDE+WrQtRumufIcSIBw4U/LikiDLaWWoGtNpAfKLkD/PHirZiNxHIeGy1Toi4ccMUolXbafLVFw==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@nrwl/nx-linux-x64-gnu@15.9.3: - resolution: {integrity: sha512-P8AOPRufvV4a5cSczNsw84zFAI7NgAiEBTybYcyymdNJmo0iArJXEmvj/G4mB20O8VCsCkwqMYAu6nQEnES1Kw==} - engines: {node: '>= 10'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@nrwl/nx-linux-x64-musl@15.9.3: - resolution: {integrity: sha512-4ZYDp7T319+xbw7Z7KVtRefzaXJipZfgrM49r+Y1FAfYDc8y18zvKz3slK26wfWz+EUZwKsa/DfA2KmyRG3DvQ==} - engines: {node: '>= 10'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@nrwl/nx-win32-arm64-msvc@15.9.3: - resolution: {integrity: sha512-UhgxIPgTZBKN1oxlLPSklkSzVL3hA4lAiVc9A0Utumpbp0ob/Xx+2vHzg3cnmNH3jWkZ+9OsC2dKyeMB6gAbSw==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@nrwl/nx-win32-x64-msvc@15.9.3: - resolution: {integrity: sha512-gdnvqURKnu0EQGOFJ6NUKq6wSB+viNb7Z8qtKhzSmFwVjT8akOnLWn7ZhL9v28TAjLM7/s1Mwvmz/IMj1PGlcQ==} - engines: {node: '>= 10'} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@nrwl/tao@15.9.3: - resolution: {integrity: sha512-NcjFCbuMa53C3fBrK7qLUImUBySyr9EVwmiZuAv9sZZtm4eILK8w3qihjrB4FFUuLjPU/SViriYXi+hF2tbP4w==} + /@nrwl/tao@16.4.1: + resolution: {integrity: sha512-aJqYxgz+PzyeuFrKj7jei8Xwq05JYLmq5o+4/Und+lkMZboqvVWz1ezwiMj9pzGoXz4td8b3sN1B+nwmORm3ZQ==} hasBin: true dependencies: - nx: 15.9.3 + nx: 16.4.1 transitivePeerDependencies: - '@swc-node/register' - '@swc/core' - debug dev: true - /@nrwl/tao@16.4.1: - resolution: {integrity: sha512-aJqYxgz+PzyeuFrKj7jei8Xwq05JYLmq5o+4/Und+lkMZboqvVWz1ezwiMj9pzGoXz4td8b3sN1B+nwmORm3ZQ==} + /@nrwl/tao@17.2.8: + resolution: {integrity: sha512-Qpk5YKeJ+LppPL/wtoDyNGbJs2MsTi6qyX/RdRrEc8lc4bk6Cw3Oul1qTXCI6jT0KzTz+dZtd0zYD/G7okkzvg==} hasBin: true dependencies: - nx: 16.4.1 + nx: 17.2.8 + tslib: 2.6.0 transitivePeerDependencies: - '@swc-node/register' - '@swc/core' @@ -3025,6 +2932,15 @@ packages: dev: true optional: true + /@nx/nx-darwin-arm64@17.2.8: + resolution: {integrity: sha512-dMb0uxug4hM7tusISAU1TfkDK3ixYmzc1zhHSZwpR7yKJIyKLtUpBTbryt8nyso37AS1yH+dmfh2Fj2WxfBHTg==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + /@nx/nx-darwin-x64@16.4.1: resolution: {integrity: sha512-jMJz6wsCOl7n3x4lmiS7BbQZdGmKKsN1IUaLcJfxZjFN3YS8euO2bwO74trFkfNOdYG8KjFuw/+A62USYj4e+g==} engines: {node: '>= 10'} @@ -3034,6 +2950,15 @@ packages: dev: true optional: true + /@nx/nx-darwin-x64@17.2.8: + resolution: {integrity: sha512-0cXzp1tGr7/6lJel102QiLA4NkaLCkQJj6VzwbwuvmuCDxPbpmbz7HC1tUteijKBtOcdXit1/MEoEU007To8Bw==} + engines: {node: '>= 10'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + /@nx/nx-freebsd-x64@16.4.1: resolution: {integrity: sha512-8Ql2/g+WZOKnPC7x4IeW/vzIRi9K9BE6LvFGGMsTvqKJHurboGlPjBAAqo/wmgM+JPNivtzX+IsQQkcGQrFfLw==} engines: {node: '>= 10'} @@ -3043,6 +2968,15 @@ packages: dev: true optional: true + /@nx/nx-freebsd-x64@17.2.8: + resolution: {integrity: sha512-YFMgx5Qpp2btCgvaniDGdu7Ctj56bfFvbbaHQWmOeBPK1krNDp2mqp8HK6ZKOfEuDJGOYAp7HDtCLvdZKvJxzA==} + engines: {node: '>= 10'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + /@nx/nx-linux-arm-gnueabihf@16.4.1: resolution: {integrity: sha512-EyK/q86FXO78oGcubBXlqdzCsrMBx+CgEyndS2IlvpGFXN3v2s3jE8v/RXWbPskJ6zJZytRvyMjTjxAnzjxb+A==} engines: {node: '>= 10'} @@ -3052,6 +2986,15 @@ packages: dev: true optional: true + /@nx/nx-linux-arm-gnueabihf@17.2.8: + resolution: {integrity: sha512-iN2my6MrhLRkVDtdivQHugK8YmR7URo1wU9UDuHQ55z3tEcny7LV3W9NSsY9UYPK/FrxdDfevj0r2hgSSdhnzA==} + engines: {node: '>= 10'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@nx/nx-linux-arm64-gnu@16.4.1: resolution: {integrity: sha512-2YpmfnHahuFXD7DN4j/O+8hvV1P1oa+QxO+hxBfPdqU45YmOPSwbVEcTsjYmc++iG9xURpGaSu3hGmk5JR4OoQ==} engines: {node: '>= 10'} @@ -3061,6 +3004,15 @@ packages: dev: true optional: true + /@nx/nx-linux-arm64-gnu@17.2.8: + resolution: {integrity: sha512-Iy8BjoW6mOKrSMiTGujUcNdv+xSM1DALTH6y3iLvNDkGbjGK1Re6QNnJAzqcXyDpv32Q4Fc57PmuexyysZxIGg==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@nx/nx-linux-arm64-musl@16.4.1: resolution: {integrity: sha512-+xDP3/veLSPaLFrp1lItZTK2rqpMEftOC+2TsRPQ1BwivGxBegerQYWgZxe6nfuBGrRD2xj8+aY4on5UfmYBJw==} engines: {node: '>= 10'} @@ -3070,6 +3022,15 @@ packages: dev: true optional: true + /@nx/nx-linux-arm64-musl@17.2.8: + resolution: {integrity: sha512-9wkAxWzknjpzdofL1xjtU6qPFF1PHlvKCZI3hgEYJDo4mQiatGI+7Ttko+lx/ZMP6v4+Umjtgq7+qWrApeKamQ==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@nx/nx-linux-x64-gnu@16.4.1: resolution: {integrity: sha512-psbB+hTXffeeATO692To4zxz08XNUHNiHefZYVwT6hUWw+EsUAadnd3VimP9xoSzHyzvUk6raYPT783MySTzGg==} engines: {node: '>= 10'} @@ -3079,6 +3040,15 @@ packages: dev: true optional: true + /@nx/nx-linux-x64-gnu@17.2.8: + resolution: {integrity: sha512-sjG1bwGsjLxToasZ3lShildFsF0eyeGu+pOQZIp9+gjFbeIkd19cTlCnHrOV9hoF364GuKSXQyUlwtFYFR4VTQ==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@nx/nx-linux-x64-musl@16.4.1: resolution: {integrity: sha512-pztJGR64NRygp675p/tkQIF2clIc9mxRVpVAaeIc1DoQTEpyeagqi6bTPwTTUdhDhTleqV6r3wOTL/3ImUrpng==} engines: {node: '>= 10'} @@ -3088,6 +3058,15 @@ packages: dev: true optional: true + /@nx/nx-linux-x64-musl@17.2.8: + resolution: {integrity: sha512-QiakXZ1xBCIptmkGEouLHQbcM4klQkcr+kEaz2PlNwy/sW3gH1b/1c0Ed5J1AN9xgQxWspriAONpScYBRgxdhA==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@nx/nx-win32-arm64-msvc@16.4.1: resolution: {integrity: sha512-tmfVFZ5lKahYg16mUs7gwEJtlBkL9cEoc1Pf7cuFXHT+T7z5WhXoZ0q7VTyArf3gisK4fTmTAEEuUEK2MbQ2xA==} engines: {node: '>= 10'} @@ -3097,6 +3076,15 @@ packages: dev: true optional: true + /@nx/nx-win32-arm64-msvc@17.2.8: + resolution: {integrity: sha512-XBWUY/F/GU3vKN9CAxeI15gM4kr3GOBqnzFZzoZC4qJt2hKSSUEWsMgeZtsMgeqEClbi4ZyCCkY7YJgU32WUGA==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + /@nx/nx-win32-x64-msvc@16.4.1: resolution: {integrity: sha512-MAy719VC8hCPkYJ6j5Gl+s4pevWL0dxbzcXtQDstC0Y7XWPFmHS+CDgK8zHWfaN8mK6Sebv+nTQ+e/ptEu1+TA==} engines: {node: '>= 10'} @@ -3106,6 +3094,15 @@ packages: dev: true optional: true + /@nx/nx-win32-x64-msvc@17.2.8: + resolution: {integrity: sha512-HTqDv+JThlLzbcEm/3f+LbS5/wYQWzb5YDXbP1wi7nlCTihNZOLNqGOkEmwlrR5tAdNHPRpHSmkYg4305W0CtA==} + engines: {node: '>= 10'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + /@nx/workspace@16.4.1: resolution: {integrity: sha512-jwyfudk3WOfLYqqd/cmIlsJPeglr5ousrDC1taIUiIupk80Ed9LfduBP1igX//WNU9bnWI0Ovvv5xF6NTmWb+A==} dependencies: @@ -4254,7 +4251,7 @@ packages: '@typescript-eslint/scope-manager': 5.60.1 '@typescript-eslint/type-utils': 5.60.1(eslint@8.43.0)(typescript@5.1.6) '@typescript-eslint/utils': 5.60.1(eslint@8.43.0)(typescript@5.1.6) - debug: 4.3.4(supports-color@8.1.1) + debug: 4.3.4 eslint: 8.43.0 grapheme-splitter: 1.0.4 ignore: 5.2.4 @@ -4279,7 +4276,7 @@ packages: '@typescript-eslint/scope-manager': 5.60.1 '@typescript-eslint/types': 5.60.1 '@typescript-eslint/typescript-estree': 5.60.1(typescript@5.1.6) - debug: 4.3.4(supports-color@8.1.1) + debug: 4.3.4 eslint: 8.43.0 typescript: 5.1.6 transitivePeerDependencies: @@ -4314,7 +4311,7 @@ packages: dependencies: '@typescript-eslint/typescript-estree': 5.60.1(typescript@5.1.6) '@typescript-eslint/utils': 5.60.1(eslint@8.43.0)(typescript@5.1.6) - debug: 4.3.4(supports-color@8.1.1) + debug: 4.3.4 eslint: 8.43.0 tsutils: 3.21.0(typescript@5.1.6) typescript: 5.1.6 @@ -4343,7 +4340,7 @@ packages: dependencies: '@typescript-eslint/types': 5.60.1 '@typescript-eslint/visitor-keys': 5.60.1 - debug: 4.3.4(supports-color@8.1.1) + debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 semver: 7.5.3 @@ -4364,7 +4361,7 @@ packages: dependencies: '@typescript-eslint/types': 5.61.0 '@typescript-eslint/visitor-keys': 5.61.0 - debug: 4.3.4(supports-color@8.1.1) + debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 semver: 7.5.3 @@ -4462,13 +4459,6 @@ packages: tslib: 2.6.0 dev: true - /@yarnpkg/parsers@3.0.0-rc.48.1: - resolution: {integrity: sha512-qEewJouhRvaecGjbkjz9kMKn96UASbDodNrE5MYy2TrXkHcisIkbMxZdGBYfAq+s1dFtCSx/5H4k5bEkfakM+A==} - dependencies: - js-yaml: 3.14.1 - tslib: 2.6.0 - dev: true - /@zkochan/js-yaml@0.0.6: resolution: {integrity: sha512-nzvgl3VfhcELQ8LyVrYOru+UtAy1nrygk2+AGbTm8a5YcO6o8lSjAT+pfg3vJWxIoZKOUhrK6UU7xW/+00kQrg==} hasBin: true @@ -4836,7 +4826,7 @@ packages: /audit-resolve-core@3.0.0-3: resolution: {integrity: sha512-37Qkk1EerVIzSF824BytESWeEtUcbAmdWyTGA/MqnHgVzO+PnU9oNqOpZTMst54xLpJci70Jszq/sLogqfvHmQ==} dependencies: - debug: 4.3.4(supports-color@8.1.1) + debug: 4.3.4 djv: 2.1.4 yargs-parser: 21.1.1 transitivePeerDependencies: @@ -4937,10 +4927,10 @@ packages: - debug dev: false - /axios@1.4.0: - resolution: {integrity: sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==} + /axios@1.6.5: + resolution: {integrity: sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg==} dependencies: - follow-redirects: 1.15.2 + follow-redirects: 1.15.5 form-data: 4.0.0 proxy-from-env: 1.1.0 transitivePeerDependencies: @@ -6005,6 +5995,17 @@ packages: ms: 2.1.3 dev: true + /debug@4.3.4: + resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.2 + /debug@4.3.4(supports-color@8.1.1): resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} engines: {node: '>=6.0'} @@ -6016,6 +6017,7 @@ packages: dependencies: ms: 2.1.2 supports-color: 8.1.1 + dev: true /decamelize-keys@1.1.1: resolution: {integrity: sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==} @@ -6849,7 +6851,7 @@ packages: eslint: '*' eslint-plugin-import: '*' dependencies: - debug: 4.3.4(supports-color@8.1.1) + debug: 4.3.4 enhanced-resolve: 5.15.0 eslint: 8.43.0 eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.60.1)(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.43.0) @@ -7075,7 +7077,7 @@ packages: ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.3 - debug: 4.3.4(supports-color@8.1.1) + debug: 4.3.4 doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.0 @@ -7602,6 +7604,16 @@ packages: debug: optional: true + /follow-redirects@1.15.5: + resolution: {integrity: sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==} + engines: {node: '>=4.0'} + peerDependencies: + debug: '*' + peerDependenciesMeta: + debug: + optional: true + dev: true + /for-each@0.3.3: resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} dependencies: @@ -7851,7 +7863,7 @@ packages: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.0.5 + minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 dev: true @@ -8031,6 +8043,7 @@ packages: /has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} + dev: true /has-property-descriptors@1.0.0: resolution: {integrity: sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==} @@ -8829,7 +8842,7 @@ packages: resolution: {integrity: sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==} engines: {node: '>=10'} dependencies: - debug: 4.3.4(supports-color@8.1.1) + debug: 4.3.4 istanbul-lib-coverage: 3.2.0 source-map: 0.6.1 transitivePeerDependencies: @@ -10103,7 +10116,7 @@ packages: chalk: 5.2.0 cli-truncate: 3.1.0 commander: 10.0.1 - debug: 4.3.4(supports-color@8.1.1) + debug: 4.3.4 execa: 7.1.1 lilconfig: 2.1.0 listr2: 5.0.8 @@ -10840,6 +10853,10 @@ packages: resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==} dev: true + /node-machine-id@1.1.12: + resolution: {integrity: sha512-QNABxbrPa3qEIfrE6GOJ7BYIuignnJw7iQ2YPbc3Nla1HzRJjXzZOiikfF8m7eAMfichLt3M4VgLOetqgDmgGQ==} + dev: true + /node-releases@2.0.13: resolution: {integrity: sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==} @@ -10943,8 +10960,8 @@ packages: resolution: {integrity: sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==} dev: true - /nx@15.9.3: - resolution: {integrity: sha512-GLwbykfTABc7/UZjQEEnV1bQbTVC53W+Zj4xWY640/45I4iZf/TUqKMBCgtLZ9v89gEsKOM4zsx55CqHT3bekA==} + /nx@16.4.1: + resolution: {integrity: sha512-om1v2xu+e4/ibQ4PgnFfemwnfS4e9Biss3R0lx1d8GmaVRIJ/o4Ng0c6F5Uw9l/WMc0DyAnGBthKyrVAlHPs1A==} hasBin: true requiresBuild: true peerDependencies: @@ -10956,13 +10973,12 @@ packages: '@swc/core': optional: true dependencies: - '@nrwl/cli': 15.9.3 - '@nrwl/tao': 15.9.3 + '@nrwl/tao': 16.4.1 '@parcel/watcher': 2.0.4 '@yarnpkg/lockfile': 1.1.0 - '@yarnpkg/parsers': 3.0.0-rc.48.1 + '@yarnpkg/parsers': 3.0.0-rc.46 '@zkochan/js-yaml': 0.0.6 - axios: 1.4.0 + axios: 1.6.5 chalk: 4.1.2 cli-cursor: 3.1.0 cli-spinners: 2.6.1 @@ -10981,7 +10997,7 @@ packages: minimatch: 3.0.5 npm-run-path: 4.0.1 open: 8.4.2 - semver: 7.3.4 + semver: 7.5.3 string-width: 4.2.3 strong-log-transformer: 2.1.0 tar-stream: 2.2.0 @@ -10992,54 +11008,56 @@ packages: yargs: 17.7.2 yargs-parser: 21.1.1 optionalDependencies: - '@nrwl/nx-darwin-arm64': 15.9.3 - '@nrwl/nx-darwin-x64': 15.9.3 - '@nrwl/nx-linux-arm-gnueabihf': 15.9.3 - '@nrwl/nx-linux-arm64-gnu': 15.9.3 - '@nrwl/nx-linux-arm64-musl': 15.9.3 - '@nrwl/nx-linux-x64-gnu': 15.9.3 - '@nrwl/nx-linux-x64-musl': 15.9.3 - '@nrwl/nx-win32-arm64-msvc': 15.9.3 - '@nrwl/nx-win32-x64-msvc': 15.9.3 + '@nx/nx-darwin-arm64': 16.4.1 + '@nx/nx-darwin-x64': 16.4.1 + '@nx/nx-freebsd-x64': 16.4.1 + '@nx/nx-linux-arm-gnueabihf': 16.4.1 + '@nx/nx-linux-arm64-gnu': 16.4.1 + '@nx/nx-linux-arm64-musl': 16.4.1 + '@nx/nx-linux-x64-gnu': 16.4.1 + '@nx/nx-linux-x64-musl': 16.4.1 + '@nx/nx-win32-arm64-msvc': 16.4.1 + '@nx/nx-win32-x64-msvc': 16.4.1 transitivePeerDependencies: - debug dev: true - /nx@16.4.1: - resolution: {integrity: sha512-om1v2xu+e4/ibQ4PgnFfemwnfS4e9Biss3R0lx1d8GmaVRIJ/o4Ng0c6F5Uw9l/WMc0DyAnGBthKyrVAlHPs1A==} + /nx@17.2.8: + resolution: {integrity: sha512-rM5zXbuXLEuqQqcjVjClyvHwRJwt+NVImR2A6KFNG40Z60HP6X12wAxxeLHF5kXXTDRU0PFhf/yACibrpbPrAw==} hasBin: true requiresBuild: true peerDependencies: - '@swc-node/register': ^1.4.2 - '@swc/core': ^1.2.173 + '@swc-node/register': ^1.6.7 + '@swc/core': ^1.3.85 peerDependenciesMeta: '@swc-node/register': optional: true '@swc/core': optional: true dependencies: - '@nrwl/tao': 16.4.1 - '@parcel/watcher': 2.0.4 + '@nrwl/tao': 17.2.8 '@yarnpkg/lockfile': 1.1.0 '@yarnpkg/parsers': 3.0.0-rc.46 '@zkochan/js-yaml': 0.0.6 - axios: 1.4.0 + axios: 1.6.5 chalk: 4.1.2 cli-cursor: 3.1.0 cli-spinners: 2.6.1 - cliui: 7.0.4 - dotenv: 10.0.0 + cliui: 8.0.1 + dotenv: 16.3.1 + dotenv-expand: 10.0.0 enquirer: 2.3.6 - fast-glob: 3.2.7 figures: 3.2.0 flat: 5.0.2 fs-extra: 11.1.1 glob: 7.1.4 ignore: 5.2.4 + jest-diff: 29.6.1 js-yaml: 4.1.0 jsonc-parser: 3.2.0 lines-and-columns: 2.0.3 minimatch: 3.0.5 + node-machine-id: 1.1.12 npm-run-path: 4.0.1 open: 8.4.2 semver: 7.5.3 @@ -11049,20 +11067,19 @@ packages: tmp: 0.2.1 tsconfig-paths: 4.2.0 tslib: 2.6.0 - v8-compile-cache: 2.3.0 yargs: 17.7.2 yargs-parser: 21.1.1 optionalDependencies: - '@nx/nx-darwin-arm64': 16.4.1 - '@nx/nx-darwin-x64': 16.4.1 - '@nx/nx-freebsd-x64': 16.4.1 - '@nx/nx-linux-arm-gnueabihf': 16.4.1 - '@nx/nx-linux-arm64-gnu': 16.4.1 - '@nx/nx-linux-arm64-musl': 16.4.1 - '@nx/nx-linux-x64-gnu': 16.4.1 - '@nx/nx-linux-x64-musl': 16.4.1 - '@nx/nx-win32-arm64-msvc': 16.4.1 - '@nx/nx-win32-x64-msvc': 16.4.1 + '@nx/nx-darwin-arm64': 17.2.8 + '@nx/nx-darwin-x64': 17.2.8 + '@nx/nx-freebsd-x64': 17.2.8 + '@nx/nx-linux-arm-gnueabihf': 17.2.8 + '@nx/nx-linux-arm64-gnu': 17.2.8 + '@nx/nx-linux-arm64-musl': 17.2.8 + '@nx/nx-linux-x64-gnu': 17.2.8 + '@nx/nx-linux-x64-musl': 17.2.8 + '@nx/nx-win32-arm64-msvc': 17.2.8 + '@nx/nx-win32-x64-msvc': 17.2.8 transitivePeerDependencies: - debug dev: true @@ -12488,14 +12505,6 @@ packages: resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} hasBin: true - /semver@7.3.4: - resolution: {integrity: sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==} - engines: {node: '>=10'} - hasBin: true - dependencies: - lru-cache: 6.0.0 - dev: true - /semver@7.5.2: resolution: {integrity: sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ==} engines: {node: '>=10'} @@ -13376,7 +13385,7 @@ packages: mime: 2.6.0 qs: 6.11.2 readable-stream: 3.6.2 - semver: 7.5.3 + semver: 7.5.4 transitivePeerDependencies: - supports-color dev: true @@ -13406,6 +13415,7 @@ packages: engines: {node: '>=10'} dependencies: has-flag: 4.0.0 + dev: true /supports-hyperlinks@2.3.0: resolution: {integrity: sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==} From 4a50501d2d40d9d230143bafabcd9351c745022e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Di=20Domenico?= Date: Tue, 23 Jan 2024 11:34:28 +0100 Subject: [PATCH 3/6] chore(nx): fix workspace --- packages/backend/project.json | 3 ++- packages/frontend/project.json | 3 ++- workspace.json | 7 ------- 3 files changed, 4 insertions(+), 9 deletions(-) delete mode 100644 workspace.json diff --git a/packages/backend/project.json b/packages/backend/project.json index 269f752..92e7912 100644 --- a/packages/backend/project.json +++ b/packages/backend/project.json @@ -1,5 +1,6 @@ { - "root": "packages/backend", + "name": "backend", + "$schema": "../../node_modules/nx/schemas/project-schema.json", "projectType": "application", "tags": [], "implicitDependencies": [] diff --git a/packages/frontend/project.json b/packages/frontend/project.json index 586f953..f3746ae 100644 --- a/packages/frontend/project.json +++ b/packages/frontend/project.json @@ -1,5 +1,6 @@ { - "root": "packages/frontend", + "name": "frontend", + "$schema": "../../node_modules/nx/schemas/project-schema.json", "projectType": "library", "tags": [], "implicitDependencies": [] diff --git a/workspace.json b/workspace.json deleted file mode 100644 index a8c29a7..0000000 --- a/workspace.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 2, - "projects": { - "backend": "packages/backend", - "frontend": "packages/frontend" - } -} From b9baf231a8246440f02b5c9ef00357a5b58e8fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Di=20Domenico?= Date: Tue, 23 Jan 2024 11:34:51 +0100 Subject: [PATCH 4/6] chore(nx): update nx.json to match v17 format --- nx.json | 75 +++++++++++++++++---------------------------------------- 1 file changed, 22 insertions(+), 53 deletions(-) diff --git a/nx.json b/nx.json index f0b1e9e..cb564a1 100644 --- a/nx.json +++ b/nx.json @@ -1,9 +1,7 @@ { - "extends": "@nrwl/workspace/presets/npm.json", "npmScope": "keiko-serverless", "tasksRunnerOptions": { "default": { - "runner": "@nrwl/workspace/tasks-runners/default", "options": { "cacheableOperations": [ "build", @@ -20,57 +18,28 @@ } } }, - "targetDependencies": { - "build": [ - { - "target": "package", - "projects": "dependencies" - } - ], - "deploy": [ - { - "target": "package", - "projects": "dependencies" - }, - { - "target": "build", - "projects": "dependencies" - }, - { - "target": "deploy", - "projects": "dependencies" - } - ], - "package": [ - { - "target": "package", - "projects": "dependencies" - } - ], - "test": [ - { - "target": "package", - "projects": "dependencies" - } - ], - "test-linter": [ - { - "target": "package", - "projects": "dependencies" - } - ], - "test-type": [ - { - "target": "package", - "projects": "dependencies" - } - ], - "test-unit": [ - { - "target": "package", - "projects": "dependencies" - } - ] + "targetDefaults": { + "build": { + "dependsOn": ["package"] + }, + "deploy": { + "dependsOn": ["package", "build", "deploy"] + }, + "package": { + "dependsOn": ["package"] + }, + "test": { + "dependsOn": ["package"] + }, + "test-linter": { + "dependsOn": ["package"] + }, + "test-type": { + "dependsOn": ["package"] + }, + "test-unit": { + "dependsOn": ["package"] + } }, "affected": { "defaultBase": "main" From 5041ace64192e7ae873cdf3579fbe025bb9e18e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Di=20Domenico?= Date: Wed, 24 Jan 2024 09:39:00 +0100 Subject: [PATCH 5/6] chore(package): add remove script target --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 99e6e5f..9c8c023 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "check-audit": "check-audit --yarn", "deploy": "nx run-many --target=deploy --all --parallel=4", "deploy-affected": "nx affected --target=deploy", + "remove": "nx run-many --target=remove --all --parallel=4", "graph": "nx dep-graph", "info": "nx run-many --target=sls-info --all --parallel=4", "lint-fix": "yarn linter-base-config --fix", From aca67b0bdb6caff947d829d915ec91247f624cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Di=20Domenico?= Date: Wed, 24 Jan 2024 10:15:06 +0100 Subject: [PATCH 6/6] chore(nx.json): fix target cache option --- .gitignore | 2 +- nx.json | 44 ++++++++++++++++++++------------------------ 2 files changed, 21 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index d170ac0..c88d63c 100644 --- a/.gitignore +++ b/.gitignore @@ -43,7 +43,7 @@ yarn-error.log* event.json # Nx caching -nx-cache +.nx/cache # yarn .pnp.* diff --git a/nx.json b/nx.json index cb564a1..f71557f 100644 --- a/nx.json +++ b/nx.json @@ -1,44 +1,40 @@ { "npmScope": "keiko-serverless", - "tasksRunnerOptions": { - "default": { - "options": { - "cacheableOperations": [ - "build", - "package", - "test", - "test-all", - "test-type", - "test-linter", - "test-stylelint", - "test-unit" - ], - "cacheDirectory": "nx-cache", - "useDaemonProcess": false - } - } - }, + "extends": "nx/presets/npm.json", + "useDaemonProcess": false, "targetDefaults": { "build": { - "dependsOn": ["package"] + "dependsOn": ["package"], + "cache": true }, "deploy": { "dependsOn": ["package", "build", "deploy"] }, "package": { - "dependsOn": ["package"] + "dependsOn": ["package"], + "cache": true }, "test": { - "dependsOn": ["package"] + "dependsOn": ["package"], + "cache": true }, "test-linter": { - "dependsOn": ["package"] + "dependsOn": ["package"], + "cache": true }, "test-type": { - "dependsOn": ["package"] + "dependsOn": ["package"], + "cache": true }, "test-unit": { - "dependsOn": ["package"] + "dependsOn": ["package"], + "cache": true + }, + "test-all": { + "cache": true + }, + "test-stylelint": { + "cache": true } }, "affected": {