@sheplu/editorconfig 0.11.0 → 0.12.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 +11 -5
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -215,14 +215,20 @@ Tests live under `test/` and are split by scope:
|
|
|
215
215
|
- `test/unit/` — fast, in-process tests of exported functions (no spawning, no I/O beyond a tmp dir).
|
|
216
216
|
- `test/integration/` — full CLI runs. The interactive prompt path is exercised in a real pseudoterminal via [`node-pty`](https://github.com/microsoft/node-pty); the rest go through `child_process.spawnSync` with a closed stdin.
|
|
217
217
|
|
|
218
|
+
`node-pty` ships a native binding that npm normally compiles via a postinstall script. This repo sets `ignore-scripts=true` in `.npmrc`, so after `npm install` you need to build it once:
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
node --run rebuild:native
|
|
222
|
+
```
|
|
223
|
+
|
|
218
224
|
Run them with:
|
|
219
225
|
|
|
220
226
|
```bash
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
227
|
+
node --run test # everything
|
|
228
|
+
node --run test:unit # unit only — runs in ~50ms
|
|
229
|
+
node --run test:integration # integration only — spawns the CLI
|
|
230
|
+
node --run test:coverage # coverage with 95% threshold
|
|
231
|
+
node --run lint # oxlint
|
|
226
232
|
```
|
|
227
233
|
|
|
228
234
|
CI runs lint, audit, and the full suite on every PR across Node 24 / 26.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheplu/editorconfig",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.2",
|
|
4
4
|
"description": "CLI to generate and validate a consistent .editorconfig across your projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "oxlint",
|
|
12
|
+
"rebuild:native": "npm rebuild node-pty --ignore-scripts=false",
|
|
12
13
|
"test": "node --test",
|
|
13
14
|
"test:coverage": "node --test --experimental-test-coverage --test-coverage-lines=95 --test-coverage-branches=95 --test-coverage-functions=95",
|
|
14
15
|
"test:unit": "node --test 'test/unit/*.test.js'",
|