Skip to content

Commit

Permalink
chore: migrate to latest version of Nx
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoslig committed Oct 24, 2024
1 parent c63739a commit a882d6c
Show file tree
Hide file tree
Showing 5 changed files with 1,290 additions and 884 deletions.
4 changes: 2 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const { getJestProjects } = require('@nx/jest');
const { getJestProjectsAsync } = require('@nx/jest');

export default { projects: getJestProjects() };
export default async () => ({ projects: await getJestProjectsAsync() });
27 changes: 27 additions & 0 deletions migrations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"migrations": [
{
"version": "20.0.0-beta.7",
"description": "Migration for v20.0.0-beta.7",
"implementation": "./src/migrations/update-20-0-0/move-use-daemon-process",
"package": "nx",
"name": "move-use-daemon-process"
},
{
"version": "20.0.1",
"description": "Set `useLegacyCache` to true for migrating workspaces",
"implementation": "./src/migrations/update-20-0-1/use-legacy-cache",
"x-repair-skip": true,
"package": "nx",
"name": "use-legacy-cache"
},
{
"cli": "nx",
"version": "20.0.0-beta.5",
"description": "replace getJestProjects with getJestProjectsAsync",
"implementation": "./src/migrations/update-20-0-0/replace-getJestProjects-with-getJestProjectsAsync",
"package": "@nx/jest",
"name": "replace-getJestProjects-with-getJestProjectsAsync"
}
]
}
3 changes: 2 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@
]
},
"parallel": 3,
"defaultBase": "main"
"defaultBase": "main",
"useLegacyCache": true
}
Loading

0 comments on commit a882d6c

Please sign in to comment.