chore(core): estabiliza monorepo en node 18 y actualiza docs#57
Open
agustin1996ra wants to merge 2 commits into
Open
chore(core): estabiliza monorepo en node 18 y actualiza docs#57agustin1996ra wants to merge 2 commits into
agustin1996ra wants to merge 2 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumen
Se continuó la actualización del monorepo para dejarlo estable sobre Node 18.20.8 y Yarn 1.22.x.
Además de alinear la configuración general del repo, se ajustaron los tests que dependen de Mongo en memoria para que vuelvan a correr correctamente en este baseline y se actualizó la documentación con el flujo validado.
Cambios principales
.nvmrccon18.20.8.package.jsonraíz los engines de:node: 18.20.8yarn: 1.22.xcimg/node:18.20.8.mongodb-memory-server-global@8.16.1en:coreservicesmongoose-plugin-auditmongoose-token-searchMongoMemoryServer.create(...)7.0.24storageEngine: 'wiredTiger'TextEncoder/TextDecoderen Node 18awaitdonde correspondía)fuentes-autenticasensrc/__snapshots__/.Cómo se puede probar
nvm install
nvm use
npm install -g yarn@1.22
yarn install
yarn prepare
yarn lint
yarn test
Pruebas puntuales validadas
cd api-tool && yarn test --runInBand src/index.spec.ts
cd api-tool && yarn test --runInBand src/bootstrap/index.spec.ts
cd core && yarn test --runInBand src/query-builder/select.spec.ts
cd core && yarn test --runInBand src/model-builder/index.spec.ts
cd mongoose-plugin-audit && yarn test --runInBand src/index.spec.ts
cd mongoose-token-search && yarn test --runInBand src/index.spec.ts
cd services && yarn test --runInBand src/index.spec.ts
Pruebas por workspace
yarn test --scope=@andes/api-tool
yarn test --scope=@andes/mongoose-plugin-audit
yarn test --scope=@andes/mongoose-token-search
yarn test --scope=@andes/core
yarn test --scope=@andes/services
yarn test --scope=@andes/event-bus
Note
El objetivo de este cambio es dejar estabilizado el monorepo en Node 18.
Según lo documentado en el repo, yarn install, yarn prepare, yarn lint y yarn test ya funcionan con este baseline.
Siguen existiendo algunos warnings de dependencias legacy durante los tests, pero actualmente no bloquean el build ni la suite completa.
Warning
Quedan warnings conocidos de dependencias legacy, pero no bloquean el build ni la suite de tests. ```