Skip to content

Conversation

RafaelGSS
Copy link
Contributor

As discussed with @NathanWalker this week, I'm opening this PR to replace some packages with Node.js built-in.

In the first commit, we are replacing glob (node-glob) with the built-in fs.promises.glob` that was added to Node.js 22.0.0. It's unlikely to backport this feature to Node.js 20.x as it's in maintenance mode.

The second one replaced chalk and ansi-colors with util.styleText. This can be backported to all release lines as this is supported since Node.js 20.17.

However, this doesn't suppress the npm i -g nativescript@alpha warning as other dependencies rely on those packages. I suggest to re-do the package-lock.json after upgrading dependencies.

NathanWalker and others added 29 commits March 20, 2025 13:02
Supports live reload.
HMR is partial and works hand-in-hand with a hmr-client setup in the per-project @nativescript/vite setup.
Available since Node.js v22.0.0
Available since Node.js 20.17

Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com>
@NathanWalker
Copy link
Contributor

Thank you @RafaelGSS we'll do some testing with the changes across production projects 💯

@NathanWalker NathanWalker added this to the 9.0 milestone Sep 3, 2025
@NathanWalker NathanWalker self-assigned this Sep 3, 2025
@NathanWalker NathanWalker changed the base branch from main to pre/v9-combined-testing September 4, 2025 20:55
@NathanWalker NathanWalker changed the base branch from pre/v9-combined-testing to main September 4, 2025 20:57
@NathanWalker NathanWalker merged commit e562267 into NativeScript:main Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants