@sheplu/editorconfig 0.11.0 → 0.12.1

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.
Files changed (2) hide show
  1. package/README.md +6 -0
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -215,6 +215,12 @@ 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
+ npm run rebuild:native
222
+ ```
223
+
218
224
  Run them with:
219
225
 
220
226
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheplu/editorconfig",
3
- "version": "0.11.0",
3
+ "version": "0.12.1",
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'",