[READ-ONLY] Mirror of https://github.com/usrrname/dotfiles. There was an attempt to store my configs
shovelware nix-pkgs nix
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: add varlock for env schema management

- add .env.schema for typed env var validation
- switch from pnpm to npm lockfile
- add varlock dependency

Jen Chan (Mar 20, 2026, 8:37 PM EDT) 73611a77 5e57d88f

+40 -54
+15
.env.schema
··· 1 + # This env file uses @env-spec - see https://varlock.dev/env-spec for more info 2 + # 3 + # @defaultRequired=infer @defaultSensitive=false 4 + # @generateTypes(lang=ts, path=env.d.ts) 5 + # ---------- 6 + 7 + # items added to schema by `varlock init` 8 + # that were missing in example, but detected in other .env files 9 + # PLEASE REVIEW THESE! 10 + # --- 11 + # @sensitive 12 + GEMINI_API_KEY=exec('op read op://Private/gemini/api-key') 13 + 14 + # @sensitive 15 + GITHUB_TOKEN=exec('op read "op://Private/Github Personal Access Token/token')
+1
.gitignore
··· 73 73 !bin/ 74 74 !scripts/ 75 75 !test/ 76 + !.env.schema
+21 -5
package-lock.json
··· 5 5 "packages": { 6 6 "": { 7 7 "name": "@usrrname/dotfiles", 8 + "dependencies": { 9 + "varlock": "^0.6.2" 10 + }, 8 11 "devDependencies": { 9 - "bats": "^1.12.0", 10 - "bats-assert": "^2.2.0", 12 + "bats": "^1.13.0", 13 + "bats-assert": "^2.2.4", 11 14 "bats-support": "^0.3.0" 12 15 } 13 16 }, 14 17 "node_modules/bats": { 15 - "version": "1.12.0", 16 - "resolved": "https://registry.npmjs.org/bats/-/bats-1.12.0.tgz", 17 - "integrity": "sha512-1HTv2n+fjn3bmY9SNDgmzS6bjoKtVlSK2pIHON5aSA2xaqGkZFoCCWP46/G6jm9zZ7MCi84mD+3Byw4t3KGwBg==", 18 + "version": "1.13.0", 19 + "resolved": "https://registry.npmjs.org/bats/-/bats-1.13.0.tgz", 20 + "integrity": "sha512-giSYKGTOcPZyJDbfbTtzAedLcNWdjCLbXYU3/MwPnjyvDXzu6Dgw8d2M+8jHhZXSmsCMSQqCp+YBsJ603UO4vQ==", 18 21 "dev": true, 19 22 "license": "MIT", 20 23 "peer": true, ··· 42 45 "peer": true, 43 46 "peerDependencies": { 44 47 "bats": "0.4 || ^1" 48 + } 49 + }, 50 + "node_modules/varlock": { 51 + "version": "0.6.2", 52 + "resolved": "https://registry.npmjs.org/varlock/-/varlock-0.6.2.tgz", 53 + "integrity": "sha512-YIg6T4OoLcfhhp3IbBorETdkOZNJb4luGaqsyVT+z59QSwQrjTjbGx9sn0+S85MQSZaGHkKSme00254F7I3qHg==", 54 + "license": "MIT", 55 + "bin": { 56 + "varlock": "bin/cli.js" 57 + }, 58 + "engines": { 59 + "bun": ">=1.3.3", 60 + "node": ">=22" 45 61 } 46 62 } 47 63 }
+3
package.json
··· 13 13 "bats": "^1.13.0", 14 14 "bats-assert": "^2.2.4", 15 15 "bats-support": "^0.3.0" 16 + }, 17 + "dependencies": { 18 + "varlock": "^0.6.2" 16 19 } 17 20 }
-49
pnpm-lock.yaml
··· 1 - lockfileVersion: '9.0' 2 - 3 - settings: 4 - autoInstallPeers: true 5 - excludeLinksFromLockfile: false 6 - 7 - importers: 8 - 9 - .: 10 - devDependencies: 11 - bats: 12 - specifier: ^1.13.0 13 - version: 1.13.0 14 - bats-assert: 15 - specifier: ^2.2.4 16 - version: 2.2.4(bats-support@0.3.0(bats@1.13.0))(bats@1.13.0) 17 - bats-support: 18 - specifier: ^0.3.0 19 - version: 0.3.0(bats@1.13.0) 20 - 21 - packages: 22 - 23 - bats-assert@2.2.4: 24 - resolution: {integrity: sha512-EcaY4Z+Tbz1c7pnC1SrVSq0epr7tLwFpz6qt7KUW9K8uSw8V12DTfH9d2HxZWvBEATaCuMsZ7KoZMFiSQPRoXw==} 25 - peerDependencies: 26 - bats: 0.4 || ^1 27 - bats-support: ^0.3 28 - 29 - bats-support@0.3.0: 30 - resolution: {integrity: sha512-z+2WzXbI4OZgLnynydqH8GpI3+DcOtepO66PlK47SfEzTkiuV9hxn9eIQX+uLVFbt2Oqoc7Ky3TJ/N83lqD+cg==} 31 - peerDependencies: 32 - bats: 0.4 || ^1 33 - 34 - bats@1.13.0: 35 - resolution: {integrity: sha512-giSYKGTOcPZyJDbfbTtzAedLcNWdjCLbXYU3/MwPnjyvDXzu6Dgw8d2M+8jHhZXSmsCMSQqCp+YBsJ603UO4vQ==} 36 - hasBin: true 37 - 38 - snapshots: 39 - 40 - bats-assert@2.2.4(bats-support@0.3.0(bats@1.13.0))(bats@1.13.0): 41 - dependencies: 42 - bats: 1.13.0 43 - bats-support: 0.3.0(bats@1.13.0) 44 - 45 - bats-support@0.3.0(bats@1.13.0): 46 - dependencies: 47 - bats: 1.13.0 48 - 49 - bats@1.13.0: {}