Skip to content

Upgraded NX from version 16.8.1 to 21.3.11 #1017

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/rich-times-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@hyperdx/api': major
'@hyperdx/app': major
'@hyperdx/common-utils': major
---

Upgraded NX from version 16.8.1 to 21.3.11
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ scripts/*.csv
# docker
docker-compose.prod.yml
.volumes

# NX
.nx/
18 changes: 15 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always",
Expand All @@ -16,7 +19,11 @@
"[css]": {
"editor.defaultFormatter": "stylelint.vscode-stylelint"
},
"stylelint.validate": ["css", "postcss", "scss"],
"stylelint.validate": [
"css",
"postcss",
"scss"
],
"cssVariables.lookupFiles": [
"**/*.css",
"**/*.scss",
Expand All @@ -32,5 +39,10 @@
"**/yarn.lock": true,
"**/yarn-*.cjs": true
},
"cSpell.words": ["micropip", "opamp", "pyimport", "pyodide"]
}
"cSpell.words": [
"micropip",
"opamp",
"pyimport",
"pyodide"
]
}
26 changes: 23 additions & 3 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,35 @@
},
"targetDefaults": {
"build": {
"dependsOn": ["^build"]
"dependsOn": [
"^build"
]
}
},
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "lint", "test"]
"cacheableOperations": [
"build",
"lint",
"test"
]
}
}
},
"namedInputs": {
"default": [
"{projectRoot}/**/*",
"sharedGlobals"
],
"production": [
"default",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
"!{projectRoot}/tsconfig.spec.json",
"!{projectRoot}/jest.config.[jt]s",
"!{projectRoot}/.eslintrc.json"
],
"sharedGlobals": []
}
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@nx/workspace": "16.8.1",
"@nx/workspace": "21.3.11",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"concurrently": "^9.1.2",
Expand All @@ -24,7 +24,7 @@
"eslint-plugin-simple-import-sort": "^12.1.1",
"husky": "^8.0.3",
"lint-staged": "^13.1.2",
"nx": "16.8.1",
"nx": "21.3.11",
"prettier": "3.3.3"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@
"dev": "DOTENV_CONFIG_PATH=.env.development nodemon --signal SIGTERM -e ts,json --exec 'ts-node' --transpile-only -r tsconfig-paths/register -r dotenv-expand/config -r '@hyperdx/node-opentelemetry/build/src/tracing' ./src/index.ts",
"dev-task": "DOTENV_CONFIG_PATH=.env.development nodemon --signal SIGTERM -e ts,json --exec 'ts-node' --transpile-only -r tsconfig-paths/register -r dotenv-expand/config -r '@hyperdx/node-opentelemetry/build/src/tracing' ./src/tasks/index.ts",
"build": "tsc && tsc-alias && esbuild ../../node_modules/@hyperdx/node-opentelemetry/build/src/tracing --bundle --minify --platform=node --outfile=dist/tracing.js && esbuild ./build/src/index.js ./build/src/tasks/index.js --bundle --minify --platform=node --target=node22 --outdir=dist --alias:@='./src' && mkdir -p dist/opamp && cp -r src/opamp/proto dist/opamp/proto && rimraf ./build",
"lint": "eslint --quiet . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"lint": "npx eslint --quiet . --ext .ts",
"lint:fix": "npx eslint . --ext .ts --fix",
"ci:lint": "yarn lint && yarn tsc --noEmit",
"ci:int": "DOTENV_CONFIG_PATH=.env.test jest --runInBand --ci --forceExit --coverage",
"dev:int": "DOTENV_CONFIG_PATH=.env.test jest --watchAll --runInBand --detectOpenHandles",
Expand Down
6 changes: 3 additions & 3 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"dev:local": "NEXT_PUBLIC_IS_LOCAL_MODE=true npx dotenv -e .env.development -- next dev",
"build": "next build",
"start": "next start",
"lint": "eslint --quiet . --ext .ts,.tsx",
"lint:fix": "eslint . --ext .ts,.tsx --fix",
"lint": "npx eslint --quiet . --ext .ts,.tsx",
"lint:fix": "npx eslint . --ext .ts,.tsx --fix",
"lint:styles": "stylelint **/*/*.{css,scss}",
"ci:lint": "yarn lint && yarn tsc --noEmit && yarn lint:styles --quiet",
"ci:unit": "jest --ci --coverage",
Expand Down Expand Up @@ -157,4 +157,4 @@
}
}
}
}
}
4 changes: 2 additions & 2 deletions packages/common-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"dev": "nodemon --watch ./src --ext ts --exec \"tsup\"",
"build": "tsup",
"ci:build": "tsup",
"lint": "eslint --quiet . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"lint": "npx eslint --quiet . --ext .ts",
"lint:fix": "npx eslint . --ext .ts --fix",
"ci:lint": "yarn lint && yarn tsc --noEmit",
"ci:unit": "jest --runInBand --ci --forceExit --coverage",
"dev:unit": "jest --watchAll --runInBand --detectOpenHandles"
Expand Down
Loading
Loading