Skip to content

Commit

Permalink
update to nx 19 (#61)
Browse files Browse the repository at this point in the history
* chore(repo): update to nx 19

* fix(rust): fix e2e

* chore(repo): repo fixes
  • Loading branch information
Cammisuli authored Oct 3, 2024
1 parent b6abe3e commit 3d909f4
Show file tree
Hide file tree
Showing 9 changed files with 705 additions and 496 deletions.
9 changes: 7 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,18 @@
"extends": ["plugin:@nx/typescript"],
"rules": {
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": "warn"
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
"rules": {
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
},
{
"files": "*.json",
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ Thumbs.db

/target

.nx/cache
.nx/cache
.nx/workspace-data
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/dist
/coverage

/.nx/cache
/.nx/cache
/.nx/workspace-data
2 changes: 1 addition & 1 deletion e2e/rust-e2e/src/rust.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('rust', () => {

const projectGraph: ProjectGraph = JSON.parse(
readFileSync(
join(projectDirectory, '.nx/cache/project-graph.json')
join(projectDirectory, '.nx/workspace-data/project-graph.json')
).toString()
);

Expand Down
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,41 +15,42 @@
"packageManager": "[email protected]",
"dependencies": {
"@ltd/j-toml": "1.38.0",
"@nx/devkit": "18.2.1",
"@nx/js": "18.2.1",
"@swc/helpers": "~0.5.2",
"@nx/devkit": "19.8.3",
"@nx/js": "19.8.3",
"@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": "18.2.1",
"@nx/eslint-plugin": "18.2.1",
"@nx/jest": "18.2.1",
"@nx/node": "18.2.1",
"@nx/plugin": "18.2.1",
"@nx/workspace": "18.2.1",
"@swc-node/register": "1.8.0",
"@swc/cli": "~0.1.62",
"@swc/core": "1.3.96",
"@types/jest": "29.4.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",
"@swc-node/register": "1.9.2",
"@swc/cli": "0.3.14",
"@swc/core": "1.5.7",
"@types/jest": "29.5.13",
"@types/node": "18.19.11",
"@typescript-eslint/eslint-plugin": "7.5.0",
"@typescript-eslint/parser": "7.5.0",
"@types/semver": "^7.5.8",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"dotenv": "~10.0.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.0.0",
"husky": "^8.0.0",
"jest": "29.4.3",
"jest-environment-jsdom": "^29.4.1",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jsonc-eslint-parser": "^2.1.0",
"nx": "18.2.1",
"nx": "19.8.3",
"prettier": "2.8.0",
"semver": "7.5.4",
"ts-jest": "29.1.0",
"ts-node": "10.9.1",
"typescript": "5.4.3",
"typescript": "5.5.4",
"verdaccio": "^5.25.0"
},
"volta": {
Expand All @@ -60,4 +61,3 @@
"includedScripts": []
}
}

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": ">=18.1.1",
"@nx/devkit": ">=19.8.0",
"@ltd/j-toml": "1.38.0",
"chalk": "^4.1.2",
"npm-run-path": "^4.0.1",
"nx": ">=18.1.1",
"nx": ">=19.8.0",
"semver": "7.5.4",
"tslib": "^2.0.0"
}
Expand Down
3 changes: 2 additions & 1 deletion project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"local-registry": {
"executor": "@nx/js:verdaccio",
"options": {
"config": ".verdaccio/config.yml"
"config": ".verdaccio/config.yml",
"port": 3889
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/start-local-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default async () => {
(global as any).stopLocalRegistry = await startLocalRegistry({
localRegistryTarget,
storage,
verbose: false,
verbose: true,
});

await releaseVersion({
Expand Down
Loading

0 comments on commit 3d909f4

Please sign in to comment.