Skip to content

Commit

Permalink
chore: update to nx 20 (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammisuli authored Oct 24, 2024
1 parent dc1bd40 commit 2e6ae95
Show file tree
Hide file tree
Showing 7 changed files with 165 additions and 221 deletions.
8 changes: 4 additions & 4 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getJestProjects } from '@nx/jest';
import { getJestProjectsAsync } from '@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 @@ -62,5 +62,6 @@
"!{projectRoot}/.eslintrc.json",
"!{projectRoot}/src/test-setup.[jt]s"
]
}
},
"useLegacyCache": false
}
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@
"dependencies": {
"@ltd/j-toml": "1.38.0",
"@napi-rs/cli": "3.0.0-alpha.63",
"@nx/devkit": "19.8.3",
"@nx/js": "19.8.3",
"@nx/devkit": "20.0.1",
"@nx/js": "20.0.1",
"@swc/helpers": "0.5.13",
"chalk": "^4.1.2",
"tslib": "^2.0.0"
},
"devDependencies": {
"@commitlint/cli": "17.3.0",
"@commitlint/config-conventional": "17.3.0",
"@nx/eslint": "19.8.3",
"@nx/eslint-plugin": "19.8.3",
"@nx/jest": "19.8.3",
"@nx/node": "19.8.3",
"@nx/plugin": "19.8.3",
"@nx/workspace": "19.8.3",
"@nx/eslint": "20.0.1",
"@nx/eslint-plugin": "20.0.1",
"@nx/jest": "20.0.1",
"@nx/node": "20.0.1",
"@nx/plugin": "20.0.1",
"@nx/workspace": "20.0.1",
"@swc-node/register": "1.9.2",
"@swc/cli": "0.3.14",
"@swc/core": "1.5.7",
Expand All @@ -46,7 +46,7 @@
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jsonc-eslint-parser": "^2.1.0",
"nx": "19.8.3",
"nx": "20.0.1",
"prettier": "2.8.0",
"semver": "7.5.4",
"ts-jest": "29.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/rust/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"generators": "./generators.json",
"executors": "./executors.json",
"dependencies": {
"@nx/devkit": ">=19.8.0",
"@nx/devkit": ">= 19 < 21",
"@ltd/j-toml": "1.38.0",
"chalk": "^4.1.2",
"npm-run-path": "^4.0.1",
"nx": ">=19.8.0",
"nx": ">= 19 < 21",
"semver": "7.5.4",
"tslib": "^2.0.0"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/rust/src/utils/build-command.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ describe('build command', () => {
isVerbose: false,
root: '',
workspace: {} as any,
projectsConfigurations: {} as any,
nxJsonConfiguration: {} as any,
projectGraph: {} as any,
};

it('should build a command for cargo with no arguments', () => {
Expand Down
Loading

0 comments on commit 2e6ae95

Please sign in to comment.