Repository navigation
Comparing changes
Open a pull request
base repository: NativeScript/NativeScript
base: main
head repository: NativeScript/NativeScript
compare: refs/pull/11684/head
- 8 commits
- 21 files changed
- 1 contributor
Commits on Nov 28, 2026
-
- nx and @nx/* 22.7.12 -> 24.0.7; add @nx/eslint as a direct dependency so `nx migrate` collects its migrations. - @nativescript/nx 23.0.0-rc.0 (peers nx >= 23). - ESLint ~8.57 -> ~9.39.5: @nx/eslint >= 23.1 requires ESLint 9+. Add the typescript-eslint meta package used by Nx's flat configs and bump @typescript-eslint/* to ^8.74.0. - jest 30.0.5 -> 30.3.0 (Nx 24 migration package update). - Ignore .nx/migrate-runs (Nx 23 migration). The nx, @nx/* and @nativescript/nx lockfile entries were dropped and re-resolved; npm could not reconcile the old @nx/eslint 22 peer edges.
Configuration menu - View commit details
-
Copy full SHA for 0c1662a - Browse repository at this point
Copy the full SHA 0c1662aView commit details -
build: migrate ESLint to v9 flat config
Nx 24 requires ESLint 9, which drops .eslintrc. Each .eslintrc.json is replaced by an equivalent eslint.config.mjs built on @nx/eslint-plugin's flat configs (which bundle eslint:recommended, typescript-eslint recommended and eslint-config-prettier) plus the existing overrides. - @typescript-eslint/ban-types is dropped: typescript-eslint 8 removed it and its three successors are already turned off. - packages/core gets no eslint.config.mjs of its own: the core build copies every *.mjs in the package to dist, and the vite HMR core bundle imports them. Its ignores live in the root config, which also limits core to TypeScript and JS specs (the old lintFilePatterns). - The JSON override moves from the root to tools/workspace-plugin, the only project that lints JSON. - eslint.config.mjs is excluded from the production named input.
Configuration menu - View commit details
-
Copy full SHA for 2690b00 - Browse repository at this point
Copy the full SHA 2690b00View commit details -
build: keep project-level nx affected selection
Nx 24 selects individual affected tasks by default. Set affected.legacy (the Nx 24 migration default) so `nx affected` and `nx show projects --affected`, used by the release workflow, keep selecting whole projects.
Configuration menu - View commit details
-
Copy full SHA for c4105d7 - Browse repository at this point
Copy the full SHA c4105d7View commit details -
build: move lint and test to Nx inferred tasks
Nx 24 removes the @nx/eslint, @nx/jest and @nx/vitest executors. Register their inference plugins instead, each limited with `include` to the projects that already had the target, so target names stay the same and no project gains a new one: - @nx/eslint/plugin: lint for core, vite, webpack5, workspace-plugin and the three apps (`eslint .` in the project root). Patterns match only each project's root files so nested package.json folders (core's css/, easysax/, the automated app's fixtures) don't become projects. - @nx/vitest: test for core and vite, `testMode: run` to keep run-once `vitest run` (`--watch` still switches to watch mode). - @nx/jest/plugin: test for workspace-plugin; the `ci` configuration and passWithNoTests from the old @nx/jest:jest target defaults move onto its project.json. The executor-keyed target defaults are removed; the `test` and `lint` target-name defaults still apply to the inferred targets. The workspace-plugin lint target pointed at @nx/linter:eslint, which was never installed, and now runs.
Configuration menu - View commit details
-
Copy full SHA for dd8cea6 - Browse repository at this point
Copy the full SHA dd8cea6View commit details -
build(core): drop the Nx vite config helpers removed in Nx 24
nxViteTsPaths and nxCopyAssetsPlugin are inert stubs in Nx 24. Path aliases now come from Vite's native resolve.tsconfigPaths. The copy plugin only copied *.md on a vite build, and core builds with @nx/js:tsc, so it is removed rather than replaced.
Configuration menu - View commit details
-
Copy full SHA for 7dfd5a1 - Browse repository at this point
Copy the full SHA 7dfd5a1View commit details -
build: load the workspace-plugin jest config as CommonJS
The inferred @nx/jest target runs the jest CLI, which loads jest.config.ts through Node type stripping (CommonJS package) or ts-node. `export default` fails the first and TypeScript 6 rejects ts-node's node10 module resolution, so use module.exports as Nx's own convert-jest-config-to-cjs migration does.
Configuration menu - View commit details
-
Copy full SHA for 71d8362 - Browse repository at this point
Copy the full SHA 71d8362View commit details -
build: rename vitest.workspace.ts to vitest.config.ts
Vitest 4 no longer reads vitest.workspace.* files. The file already uses the `test.projects` form, so renaming it to the root vitest.config.ts is enough for a root-level `vitest` run to pick up the core and vite projects again (Nx's migrate-to-vitest-4 prompt).
Configuration menu - View commit details
-
Copy full SHA for 19f17e9 - Browse repository at this point
Copy the full SHA 19f17e9View commit details -
build: use the stable @nativescript/nx 24 release
Replaces the 23.0.0-rc.0 pin with ^24.0.0, the plugin release that targets Nx 24.
Configuration menu - View commit details
-
Copy full SHA for 219185a - Browse repository at this point
Copy the full SHA 219185aView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...refs/pull/11684/head