Use `npm ci --ignore-scripts` everywhere (#21742)

This commit is contained in:
William Woodruff 2025-12-01 17:13:52 -05:00 committed by GitHub
parent f052bd644c
commit edc6ed5077
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 9 additions and 9 deletions

View File

@ -918,7 +918,7 @@ jobs:
cache-dependency-path: playground/package-lock.json cache-dependency-path: playground/package-lock.json
- uses: jetli/wasm-bindgen-action@20b33e20595891ab1a0ed73145d8a21fc96e7c29 # v0.2.0 - uses: jetli/wasm-bindgen-action@20b33e20595891ab1a0ed73145d8a21fc96e7c29 # v0.2.0
- name: "Install Node dependencies" - name: "Install Node dependencies"
run: npm ci run: npm ci --ignore-scripts
working-directory: playground working-directory: playground
- name: "Build playgrounds" - name: "Build playgrounds"
run: npm run dev:wasm run: npm run dev:wasm

View File

@ -37,7 +37,7 @@ jobs:
package-manager-cache: false package-manager-cache: false
- uses: jetli/wasm-bindgen-action@20b33e20595891ab1a0ed73145d8a21fc96e7c29 # v0.2.0 - uses: jetli/wasm-bindgen-action@20b33e20595891ab1a0ed73145d8a21fc96e7c29 # v0.2.0
- name: "Install Node dependencies" - name: "Install Node dependencies"
run: npm ci run: npm ci --ignore-scripts
working-directory: playground working-directory: playground
- name: "Run TypeScript checks" - name: "Run TypeScript checks"
run: npm run check run: npm run check

View File

@ -41,7 +41,7 @@ jobs:
package-manager-cache: false package-manager-cache: false
- uses: jetli/wasm-bindgen-action@20b33e20595891ab1a0ed73145d8a21fc96e7c29 # v0.2.0 - uses: jetli/wasm-bindgen-action@20b33e20595891ab1a0ed73145d8a21fc96e7c29 # v0.2.0
- name: "Install Node dependencies" - name: "Install Node dependencies"
run: npm ci run: npm ci --ignore-scripts
working-directory: playground working-directory: playground
- name: "Run TypeScript checks" - name: "Run TypeScript checks"
run: npm run check run: npm run check

View File

@ -74,7 +74,7 @@ def f(): # a
The other option is to use the playground (also check the playground README): The other option is to use the playground (also check the playground README):
```shell ```shell
cd playground && npm install && npm run dev:wasm && npm run dev cd playground && npm ci --ignore-scripts && npm run dev:wasm && npm run dev
``` ```
Run`npm run dev:wasm` and reload the page in the browser to refresh. Run`npm run dev:wasm` and reload the page in the browser to refresh.

View File

@ -4,7 +4,7 @@ In-browser playground for Ruff. Available [https://play.ruff.rs/](https://play.r
## Getting started ## Getting started
Install the NPM dependencies with `npm install`, and run the development server with Install the NPM dependencies with `npm ci --ignore-scripts`, and run the development server with
`npm start --workspace ruff-playground` or `npm start --workspace ty-playground`. `npm start --workspace ruff-playground` or `npm start --workspace ty-playground`.
You may need to restart the server after making changes to Ruff or ty to re-build the WASM You may need to restart the server after making changes to Ruff or ty to re-build the WASM
module. module.

View File

@ -7,7 +7,7 @@
1. Build ty: `cargo build --bin ty --release` 1. Build ty: `cargo build --bin ty --release`
1. `cd` into the benchmark directory: `cd scripts/ty_benchmark` 1. `cd` into the benchmark directory: `cd scripts/ty_benchmark`
1. Install Pyright: `npm install` 1. Install Pyright: `npm ci --ignore-scripts`
1. Run benchmarks: `uv run benchmark` 1. Run benchmarks: `uv run benchmark`
Requires hyperfine 1.20 or newer. Requires hyperfine 1.20 or newer.

View File

@ -185,7 +185,7 @@ class Pyright(Tool):
if not self.path.exists(): if not self.path.exists():
print( print(
"Pyright executable not found. Did you ran `npm install` in the `ty_benchmark` directory?" "Pyright executable not found. Did you run `npm ci` in the `ty_benchmark` directory?"
) )
@override @override

View File

@ -87,9 +87,9 @@ def update_schemastore(
cwd=schemastore_path, cwd=schemastore_path,
) )
# Run npm install # Run npm ci
src = schemastore_path / "src" src = schemastore_path / "src"
check_call(["npm", "install"], cwd=schemastore_path) check_call(["npm", "ci", "--ignore-scripts"], cwd=schemastore_path)
# Update the schema and format appropriately # Update the schema and format appropriately
schema = json.loads(RUFF_SCHEMA.read_text()) schema = json.loads(RUFF_SCHEMA.read_text())