lint-staged 16.3.0 → 16.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -67,8 +67,6 @@ This project contains a script that will run arbitrary shell tasks with a list o
67
67
  - [SurviveJS interview - Juho Vepsäläinen and Andrey Okonetchnikov, 2018](https://survivejs.com/blog/lint-staged-interview/)
68
68
  - [Prettier your CSharp with `dotnet-format` and `lint-staged`](https://johnnyreilly.com/2020/12/22/prettier-your-csharp-with-dotnet-format-and-lint-staged)
69
69
 
70
- > If you've written one, please submit a PR with the link to it!
71
-
72
70
  ## Installation and setup
73
71
 
74
72
  To install _lint-staged_ in the recommended way, you need to:
@@ -366,7 +364,7 @@ Supported are any executables installed locally or globally via `npm` as well as
366
364
 
367
365
  > Using globally installed scripts is discouraged, since lint-staged may not work for someone who doesn't have it installed.
368
366
 
369
- `lint-staged` uses [nano-spawn](https://github.com/sindresorhus/nano-spawn?tab=readme-ov-file#optionspreferlocal) to locate locally installed scripts. So in your `.lintstagedrc` you can write:
367
+ `lint-staged` uses [tinyexec](https://github.com/tinylibs/tinyexec) to spawn locally installed commands. So in your `.lintstagedrc` you can write:
370
368
 
371
369
  ```json
372
370
  {
@@ -90,7 +90,6 @@ export const getSpawnedTask = ({
90
90
  // Only use topLevelDir as CWD if we are using the git binary
91
91
  // e.g `npm` should run tasks in the actual CWD
92
92
  cwd: /^git(\.exe)?/i.test(cmd) ? topLevelDir : cwd,
93
- detached: true,
94
93
  env: color ? { FORCE_COLOR: 'true' } : { NO_COLOR: 'true' },
95
94
  stdio: ['ignore'],
96
95
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lint-staged",
3
- "version": "16.3.0",
3
+ "version": "16.3.2",
4
4
  "description": "Lint files staged by git",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -51,7 +51,6 @@
51
51
  "commander": "^14.0.3",
52
52
  "listr2": "^9.0.5",
53
53
  "micromatch": "^4.0.8",
54
- "nano-spawn": "^2.0.0",
55
54
  "string-argv": "^0.3.2",
56
55
  "tinyexec": "^1.0.2",
57
56
  "yaml": "^2.8.2"