feat: upgrade nx

This commit is contained in:
Maulana Sodiqin
2025-11-24 10:48:09 +07:00
parent e067450fcb
commit 6348a4998b
9 changed files with 4602 additions and 5203 deletions
+9
View File
@@ -0,0 +1,9 @@
{
"permissions": {
"allow": [
"Bash(npx nx run-many:*)"
],
"deny": [],
"ask": []
}
}
+2
View File
@@ -62,3 +62,5 @@ storybook-static
# Next.js
.next
out
.cursor/rules/nx-rules.mdc
.github/instructions/nx.instructions.md
+1 -1
View File
@@ -3,7 +3,7 @@ const path = require('path');
/** @type {import('@nx/next/plugins/with-nx').WithNxOptions} */
const nextConfig = {
nx: { svgr: false },
nx: {},
output: 'standalone',
};
+4 -5
View File
@@ -13,11 +13,10 @@
},
"release": {
"version": {
"generatorOptions": {
"packageRoot": "dist/{projectRoot}",
"currentVersionResolver": "git-tag",
"fallbackCurrentVersionResolver": "disk"
}
"currentVersionResolver": "git-tag",
"fallbackCurrentVersionResolver": "disk",
"preserveLocalDependencyProtocols": false,
"manifestRootsToUpdate": ["dist/{projectRoot}"]
}
}
}
+4 -5
View File
@@ -13,11 +13,10 @@
},
"release": {
"version": {
"generatorOptions": {
"packageRoot": "dist/{projectRoot}",
"currentVersionResolver": "git-tag",
"fallbackCurrentVersionResolver": "disk"
}
"currentVersionResolver": "git-tag",
"fallbackCurrentVersionResolver": "disk",
"preserveLocalDependencyProtocols": false,
"manifestRootsToUpdate": ["dist/{projectRoot}"]
}
}
}
+4 -5
View File
@@ -13,11 +13,10 @@
},
"release": {
"version": {
"generatorOptions": {
"packageRoot": "dist/{projectRoot}",
"currentVersionResolver": "git-tag",
"fallbackCurrentVersionResolver": "disk"
}
"currentVersionResolver": "git-tag",
"fallbackCurrentVersionResolver": "disk",
"preserveLocalDependencyProtocols": false,
"manifestRootsToUpdate": ["dist/{projectRoot}"]
}
}
}
+122
View File
@@ -0,0 +1,122 @@
{
"migrations": [
{
"version": "21.0.0-beta.8",
"description": "Removes the legacy cache configuration from nx.json",
"implementation": "./src/migrations/update-21-0-0/remove-legacy-cache",
"package": "nx",
"name": "remove-legacy-cache"
},
{
"version": "21.0.0-beta.8",
"description": "Removes the legacy cache configuration from nx.json",
"implementation": "./src/migrations/update-21-0-0/remove-custom-tasks-runner",
"package": "nx",
"name": "remove-custom-tasks-runner"
},
{
"version": "21.0.0-beta.11",
"description": "Updates release version config based on the breaking changes in Nx v21",
"implementation": "./src/migrations/update-21-0-0/release-version-config-changes",
"package": "nx",
"name": "release-version-config-changes"
},
{
"version": "21.0.0-beta.11",
"description": "Updates release changelog config based on the breaking changes in Nx v21",
"implementation": "./src/migrations/update-21-0-0/release-changelog-config-changes",
"package": "nx",
"name": "release-changelog-config-changes"
},
{
"version": "21.1.0-beta.2",
"description": "Adds **/nx-rules.mdc and **/nx.instructions.md to .gitignore if not present",
"implementation": "./src/migrations/update-21-1-0/add-gitignore-entry",
"package": "nx",
"name": "21-1-0-add-ignore-entries-for-nx-rule-files"
},
{
"version": "22.0.0-beta.1",
"description": "Updates release version config based on the breaking changes in Nx v22",
"implementation": "./src/migrations/update-22-0-0/release-version-config-changes",
"package": "nx",
"name": "22-0-0-release-version-config-changes"
},
{
"version": "22.0.0-beta.2",
"description": "Consolidates releaseTag* options into nested releaseTag object structure",
"implementation": "./src/migrations/update-22-0-0/consolidate-release-tag-config",
"package": "nx",
"name": "22-0-0-consolidate-release-tag-config"
},
{
"cli": "nx",
"version": "22.1.0-beta.5",
"description": "Updates the nx wrapper.",
"implementation": "./src/migrations/update-22-1-0/update-nx-wrapper",
"package": "nx",
"name": "22-1-0-update-nx-wrapper"
},
{
"version": "21.5.0-beta.2",
"description": "Migrate the legacy 'development' custom condition to a workspace-unique custom condition name.",
"factory": "./src/migrations/update-21-5-0/migrate-development-custom-condition",
"package": "@nx/js",
"name": "migrate-development-custom-condition"
},
{
"version": "22.0.0-beta.0",
"description": "Remove the deprecated `external` and `externalBuildTargets` options from the `@nx/js:swc` and `@nx/js:tsc` executors.",
"factory": "./src/migrations/update-22-0-0/remove-external-options-from-js-executors",
"package": "@nx/js",
"name": "remove-external-options-from-js-executors"
},
{
"version": "22.1.0-rc.1",
"description": "Removes redundant TypeScript project references from project's tsconfig.json files when runtime tsconfig files (e.g., tsconfig.lib.json, tsconfig.app.json) exist.",
"factory": "./src/migrations/update-22-1-0/remove-redundant-ts-project-references",
"package": "@nx/js",
"name": "remove-redundant-ts-project-references"
},
{
"cli": "nx",
"version": "21.2.0-beta.3",
"description": "Update workspace to use Storybook v9",
"implementation": "./src/migrations/update-21-1-0/update-sb-9",
"package": "@nx/storybook",
"name": "update-21-2-0-migrate-storybook-v9"
},
{
"cli": "nx",
"version": "21.2.0-beta.3",
"description": "Remove deprecated Storybook addon dependencies",
"implementation": "./src/migrations/update-21-2-0/remove-addon-dependencies",
"package": "@nx/storybook",
"name": "update-21-2-0-remove-addon-dependencies"
},
{
"cli": "nx",
"version": "21.0.0-beta.11",
"description": "Replaces `classProperties.loose` option with `loose`.",
"factory": "./src/migrations/update-21-0-0/update-babel-loose",
"package": "@nx/react",
"name": "update-21-0-0-update-babel-loose"
},
{
"cli": "nx",
"version": "22.0.0-beta.0",
"description": "Updates webpack configs using React to use the new withSvgr composable function instead of the svgr option in withReact or NxReactWebpackPlugin.",
"factory": "./src/migrations/update-22-0-0/add-svgr-to-webpack-config",
"package": "@nx/react",
"name": "update-22-0-0-add-svgr-to-webpack-config"
},
{
"cli": "nx",
"version": "22.0.0-beta.0",
"description": "Updates next.config.js files to add SVGR webpack configuration directly instead of using the nx.svgr option in withNx.",
"factory": "./src/migrations/update-22-0-0/add-svgr-to-next-config",
"package": "@nx/next",
"name": "update-22-0-0-add-svgr-to-next-config"
}
]
}
+4438 -5168
View File
File diff suppressed because it is too large Load Diff
+18 -19
View File
@@ -66,23 +66,21 @@
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.8.0",
"@next/eslint-plugin-next": "^15.2.4",
"@nx/devkit": "20.8.1",
"@nx/eslint": "20.8.1",
"@nx/eslint-plugin": "20.8.1",
"@nx/js": "20.8.1",
"@nx/next": "^20.8.1",
"@nx/playwright": "20.8.1",
"@nx/react": "^20.8.1",
"@nx/storybook": "20.8.1",
"@nx/vite": "20.8.1",
"@nx/web": "20.8.1",
"@nx/workspace": "20.8.1",
"@nx/devkit": "22.1.1",
"@nx/eslint": "22.1.1",
"@nx/eslint-plugin": "22.1.1",
"@nx/js": "22.1.1",
"@nx/next": "22.1.1",
"@nx/playwright": "22.1.1",
"@nx/react": "22.1.1",
"@nx/storybook": "22.1.1",
"@nx/vite": "22.1.1",
"@nx/web": "22.1.1",
"@nx/workspace": "22.1.1",
"@playwright/test": "^1.36.0",
"@storybook/addon-essentials": "^8.4.6",
"@storybook/addon-interactions": "^8.4.6",
"@storybook/core-server": "^8.4.6",
"@storybook/jest": "^0.2.3",
"@storybook/react-vite": "^8.4.6",
"@storybook/react-vite": "10.0.0",
"@storybook/test-runner": "^0.19.0",
"@storybook/testing-library": "^0.2.2",
"@swc-node/register": "~1.9.1",
@@ -110,23 +108,24 @@
"eslint-plugin-playwright": "^1.6.2",
"eslint-plugin-react": "7.35.0",
"eslint-plugin-react-hooks": "5.0.0",
"file-loader": "^6.2.0",
"h3": "^1.8.2",
"jiti": "2.4.2",
"jsdom": "~22.1.0",
"nx": "20.8.1",
"nx": "22.1.1",
"openapi-typescript": "^7.8.0",
"postcss": "^8.5.3",
"prettier": "^2.6.2",
"serve": "^14.2.4",
"storybook": "^8.4.6",
"storybook": "10.0.0",
"tailwindcss": "^4.0.13",
"ts-node": "^10.9.2",
"tslib": "^2.3.0",
"tw-animate-css": "^1.2.8",
"typescript": "^5.8.3",
"typescript-eslint": "^8.19.0",
"typescript": "5.9.3",
"typescript-eslint": "8.40.0",
"verdaccio": "^6.0.5",
"vite": "^6.3.3",
"vite": "7.1.3",
"vite-plugin-dts": "~4.5.0",
"vitest": "^3.0.8"
},