Skip to content

Commit

Permalink
deps(repo): Bump 2022-12-19 (#209)
Browse files Browse the repository at this point in the history
## Summary
Updates our dependencies to the latest versions, with some exceptions

## Implementation Notes
* Lerna upgrade to v6: No relevant major changes
* Vite upgrade to v4/rollup to v3: No relevant major changes
* Cypress update to v12: No relevant major changes (but fixes HMR with
stylesheets)
* TypeScript update to v4.9: No relevant major changes
* Vitest update to v0.26: No relevant major changes
* Nx upgrade to v15: Three migrations handled, no other relevant major
changes
* Replace implicitDependencies with namedInputs + target inputs
(implicit dependencies are deprecated in favor of targetDefaults, and nx
handles package.json and nx.json itself so we can just remove our
previous implicit dependencies)
* Prefix outputs with {workspaceRoot}/{projectRoot} if needed (cypress
outputs have been changed to be relative to the project directory)
* Set project names in project.json files (we don’t use them, so nothing
to do)

Note that rollup-plugin-typescript2 has been pinned to 0.33.0. See
vitejs/vite#6810 (comment) for
more details

## Testing
Existing CI
  • Loading branch information
luxaritas authored Jan 5, 2023
1 parent cf56c8f commit ccf5f6f
Show file tree
Hide file tree
Showing 10 changed files with 5,533 additions and 19,568 deletions.
25,022 changes: 5,496 additions & 19,526 deletions package-lock.json

Large diffs are not rendered by default.

27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,27 @@
"@eternagame/nx-spawn": "file:packages/nx-spawn",
"@eternagame/tsconfig": "file:packages/tsconfig",
"@eternagame/vite-utils": "file:packages/vite-utils",
"@nrwl/eslint-plugin-nx": "^14.6.5",
"@nrwl/eslint-plugin-nx": "15.3.3",
"@types/babel__core": "^7.1.20",
"@types/micromatch": "^4.0.2",
"@types/node": "^18.7.15",
"@types/node": "^18.11.17",
"@types/postcss-preset-env": "^7.7.0",
"@types/yargs": "^17.0.12",
"@typescript-eslint/eslint-plugin": "^5.36.2",
"@typescript-eslint/parser": "^5.36.2",
"eslint": "^8.23.0",
"@types/yargs": "^17.0.17",
"@typescript-eslint/eslint-plugin": "^5.47.0",
"@typescript-eslint/parser": "^5.47.0",
"eslint": "^8.30.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"husky": "^8.0.1",
"lerna": "^5.5.0",
"lint-staged": "^13.0.3",
"husky": "^8.0.2",
"lerna": "^6.1.0",
"lint-staged": "^13.1.0",
"node-dev": "^7.4.3",
"nx": "^14.6.5",
"nx": "^15.3.3",
"shx": "^0.3.4",
"typescript": "^4.8.2",
"vite": "^3.1.0",
"vitest": "^0.23.1"
"typescript": "^4.9.4",
"vite": "^4.0.2",
"vitest": "^0.26.0"
},
"workspaces": [
"packages/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"bin": "./dist/index.js",
"dependencies": {
"yargs": "^17.5.1"
"yargs": "^17.6.2"
},
"nx": {
"implicitDependencies": [
Expand Down
2 changes: 1 addition & 1 deletion packages/cypress-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dist"
],
"peerDependencies": {
"cypress": "10.x"
"cypress": "12.x"
},
"nx": {
"implicitDependencies": [
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}
},
"dependencies": {
"@typescript-eslint/utils": "^5.36.2",
"@typescript-eslint/utils": "^5.47.0",
"jsonc-eslint-parser": "^2.1.0"
},
"nx": {
Expand Down
4 changes: 2 additions & 2 deletions packages/nx-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
},
"generators": "./generators.json",
"dependencies": {
"@nrwl/devkit": "^14.6.5",
"@nrwl/devkit": "15.x",
"yaml": "^2.1.3"
},
"peerDependencies": {
"nx": "^14.6.5"
"nx": "15.x"
},
"nx": {
"implicitDependencies": [
Expand Down
11 changes: 3 additions & 8 deletions packages/nx-plugin/preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
"affected": {
"defaultBase": "main"
},
"implicitDependencies": {
"package.json": "*",
"package-lock.json": "*",
"nx.json": "*"
},
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
Expand Down Expand Up @@ -42,12 +37,12 @@
},
"test": {
"inputs": ["default", "^default", "test"],
"outputs": ["./cypress-run"],
"outputs": ["{projectRoot}/cypress-run"],
"dependsOn": ["^build"]
},
"test:cov": {
"inputs": ["default", "^default", "test"],
"outputs": ["./cypress-run", "./coverage"],
"outputs": ["{projectRoot}/cypress-run", "{projectRoot}/coverage"],
"dependsOn": ["^build"]
},
"test:_ui": {
Expand All @@ -58,7 +53,7 @@
},
"e2e": {
"inputs": ["default", "^default", "test"],
"outputs": ["./cypress-run"]
"outputs": ["{projectRoot}/cypress-run"]
},
"_e2e": {
"dependsOn": ["^start"]
Expand Down
8 changes: 4 additions & 4 deletions packages/nx-spawn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
"dist"
],
"dependencies": {
"@nrwl/devkit": "^14.6.5",
"chalk": "^5.0.1",
"@nrwl/devkit": "15.x",
"chalk": "^5.2.0",
"chokidar": "^3.5.3",
"nx": "^14.6.5",
"yargs": "^17.5.1"
"nx": "15.x",
"yargs": "^17.6.2"
},
"nx": {
"implicitDependencies": [
Expand Down
3 changes: 1 addition & 2 deletions packages/nx-spawn/src/task-orchestrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ export default class TaskOrchestrator {
// Spin up a chokidar watcher to notify us when the output files for the task are written
const node = projectGraph.nodes[task.target.project];
if (!node) throw new Error(`Can't find node for ${task.target.project}`);
// For some reason getOutputsForTargetAndConfiguration is typed as returning `any`
const outputs = getOutputsForTargetAndConfiguration(task, node) as string[];
const outputs = getOutputsForTargetAndConfiguration(task, node);
const watcher = watch(outputs, {
cwd: workspaceRoot,
// Note that even if the files were already written previously, we still wait for them to be
Expand Down
20 changes: 10 additions & 10 deletions packages/vite-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@
"dist"
],
"peerDependencies": {
"vite": "3.x"
"vite": "4.x"
},
"dependencies": {
"@babel/core": "^7.19.0",
"@babel/core": "^7.20.5",
"@financial-times/js-features-analyser": "^0.4.3",
"@vitejs/plugin-vue": "^3.1.0",
"browserslist": "^4.21.3",
"@vitejs/plugin-vue": "^4.0.0",
"browserslist": "^4.21.4",
"create-polyfill-service-url": "^2.2.6",
"fast-glob": "^3.2.11",
"magic-string": "^0.26.3",
"postcss-preset-env": "^7.8.0",
"rollup": "^2.79.0",
"rollup-plugin-typescript2": "^0.33.0",
"tslib": "^2.4.0"
"fast-glob": "^3.2.12",
"magic-string": "^0.27.0",
"postcss-preset-env": "^7.8.3",
"rollup": "^3.7.5",
"rollup-plugin-typescript2": "0.33.0",
"tslib": "^2.4.1"
}
}

0 comments on commit ccf5f6f

Please sign in to comment.