Skip to content

Conversation

@NathanWalker
Copy link
Contributor

@NathanWalker NathanWalker commented Nov 8, 2025

From #5884 (@jcassidyav) which went into prerelease branch.

What is the current behavior?

Users are prevented from using npm install --ignore-scripts because any ns plugin that requires hooks utilises post install events to install the hooks.

What is the new behavior?

This PR provides the hooks command to manage plugin hooks.

PR provides:

Command Description
ns hooks Lists the hooks that are in the installed plugins ( also ns hooks list ).
ns hooks install Installs the hooks.
ns hooks lock Creates a nativescript-lock.json file, this is a list of hooks per plugin and a hash of the script for each hook.
ns hooks verify Compares the hooks in the plugins with what is specified in the nativescript-lock.json file, failing if a hook is not listed or the hash is not the same.

Usages

  • Modify/Create .npmrc in the project root adding ignore-scripts=true
  • After npm i run ns hooks install

For extra peace of mind:

Run ns hooks lock and ns hooks install will fail if any of the hooks have changed.

NathanWalker and others added 30 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.
dependabot bot and others added 27 commits September 16, 2025 08:33
…ges/doctor (#5873)

[skip ci]

chore(deps-dev): bump @types/lodash in /packages/doctor

Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.17.15 to 4.17.20.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

---
updated-dependencies:
- dependency-name: "@types/lodash"
  dependency-version: 4.17.20
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…tor (#5874)

[skip ci]

Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.4.5 to 5.9.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml)
- [Commits](microsoft/TypeScript@v5.4.5...v5.9.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 5.9.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…doctor (#5875)

chore(deps-dev): bump @types/semver in /packages/doctor

Bumps [@types/semver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/semver) from 7.5.8 to 7.7.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/semver)

---
updated-dependencies:
- dependency-name: "@types/semver"
  dependency-version: 7.7.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

[skip ci]
…t-envinfo (#5876)

chore(deps): bump envinfo and @types/envinfo

Bumps [envinfo](https://github.com/tabrindle/envinfo) and [@types/envinfo](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/envinfo). These dependencies needed to be updated together.

Updates `envinfo` from 7.8.1 to 7.14.0
- [Release notes](https://github.com/tabrindle/envinfo/releases)
- [Changelog](https://github.com/tabrindle/envinfo/blob/main/CHANGELOG.md)
- [Commits](tabrindle/envinfo@7.8.1...v7.14.0)

Updates `@types/envinfo` from 7.8.1 to 7.8.4
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/envinfo)

---
updated-dependencies:
- dependency-name: envinfo
  dependency-version: 7.14.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: "@types/envinfo"
  dependency-version: 7.8.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

[skip ci]
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.4.0 to 2.4.2.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](ossf/scorecard-action@62b2cac...05b42c6)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-version: 2.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

[skip ci]
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](actions/checkout@v2...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

[skip ci]
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 5.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v3...v5)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

[skip ci]
* chore: remove CodeQL workflow in favor of the advance one

References:
- https://github.com/NativeScript/nativescript-cli/actions/workflows/codeql-advanced.yml
- https://github.com/NativeScript/nativescript-cli/actions/workflows/codeql.yml

* feat: define workflow permissions

* feat: pin dependencies in workflows

---------

Co-authored-by: Nathan Walker <[email protected]>
@NathanWalker NathanWalker added this to the 9.0 milestone Nov 8, 2025
@NathanWalker NathanWalker merged commit 87cbca9 into main Nov 8, 2025
4 checks passed
@NathanWalker NathanWalker deleted the pre/v9-combined-testing branch November 8, 2025 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants