@spences10/pi-child-env 0.1.5 → 0.1.6

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 +16 -0
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # @spences10/pi-child-env
2
2
 
3
+ [![built with Vite+](https://img.shields.io/badge/built%20with-Vite+-646CFF?logo=vite&logoColor=white)](https://viteplus.dev)
4
+ [![tested with Vitest](https://img.shields.io/badge/tested%20with-Vitest-6E9F18?logo=vitest&logoColor=white)](https://vitest.dev)
5
+ [![npm version](https://img.shields.io/npm/v/@spences10/pi-child-env?color=CB3837&logo=npm&logoColor=white)](https://www.npmjs.com/package/@spences10/pi-child-env)
6
+ [![license](https://img.shields.io/npm/l/@spences10/pi-child-env)](https://www.npmjs.com/package/@spences10/pi-child-env)
7
+
3
8
  Shared safe environment builder for Pi child processes.
4
9
 
5
10
  By default it passes only a minimal non-secret baseline (`PATH`,
@@ -34,3 +39,14 @@ Profile-specific allowlists:
34
39
  - `team-mode` — `MY_PI_TEAM_MODE_ENV_ALLOWLIST`
35
40
 
36
41
  Use allowlists only for variables the child process truly needs.
42
+
43
+ ## Development
44
+
45
+ Package scripts build transitive workspace dependencies first, then
46
+ run local tools through Vite+ with `vp exec`.
47
+
48
+ ```bash
49
+ pnpm --filter @spences10/pi-child-env run check
50
+ pnpm --filter @spences10/pi-child-env run test
51
+ pnpm --filter @spences10/pi-child-env run build
52
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spences10/pi-child-env",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Shared safe environment builder for Pi child processes",
5
5
  "keywords": [
6
6
  "env",
@@ -37,12 +37,12 @@
37
37
  },
38
38
  "scripts": {
39
39
  "build": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run build:self",
40
- "build:self": "tsc -p tsconfig.build.json",
40
+ "build:self": "vp exec tsc -p tsconfig.build.json",
41
41
  "check": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run check:self",
42
- "check:self": "tsc --noEmit -p tsconfig.json",
42
+ "check:self": "vp exec tsc --noEmit -p tsconfig.json",
43
43
  "test": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run test:self",
44
- "test:self": "vitest run",
45
- "coverage:self": "vitest run --coverage",
44
+ "test:self": "vp exec vitest run",
45
+ "coverage:self": "vp exec vitest run --coverage",
46
46
  "coverage": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run coverage:self"
47
47
  }
48
48
  }