[READ-ONLY] Mirror of https://github.com/bombshell-dev/args. <1kB CLI flag parser
args args-parser cli command-line command-line-parser node
5

Configure Feed

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

chore: update tooling (#14)

* chore: update tooling

* chore(deps): update tools

authored by

Nate Moore and committed by
GitHub
(Apr 26, 2025, 9:07 PM -0500) bcce162e fea29733

+164 -76
+43 -39
package.json
··· 1 1 { 2 2 "name": "@bomb.sh/args", 3 - "publishConfig": { 4 - "access": "public", 5 - "provenance": true 6 - }, 3 + "version": "0.3.1", 7 4 "type": "module", 8 - "version": "0.3.1", 9 - "types": "./dist/index.d.ts", 10 - "repository": { 11 - "type": "git", 12 - "url": "https://github.com/bombshell-dev/args" 5 + "license": "MIT", 6 + "author": { 7 + "name": "Bombshell", 8 + "email": "oss@bomb.sh", 9 + "url": "https://bomb.sh" 13 10 }, 14 - "bugs": { 15 - "url": "https://github.com/bombshell-dev/args/issues" 16 - }, 17 - "homepage": "https://github.com/bombshell-dev/args#README", 18 - "scripts": { 19 - "build": "node scripts/build.js && tsc -p .", 20 - "bench": "node scripts/bench.js", 21 - "dev": "vitest", 22 - "fmt": "prettier --write \"**/*.{js,ts,md}\"", 23 - "fmt:check": "prettier --list-different \"**/*.{js,ts,md}\"", 24 - "test": "vitest run" 25 - }, 26 - "files": [ 27 - "dist", 28 - "CHANGELOG.md" 11 + "homepage": "https://github.com/bombshell-dev/args", 12 + "keywords": [ 13 + "cli", 14 + "args", 15 + "yargs", 16 + "minimist" 29 17 ], 30 18 "exports": { 31 19 ".": { ··· 34 22 }, 35 23 "./package.json": "./package.json" 36 24 }, 37 - "keywords": [ 38 - "cli", 39 - "args", 40 - "yargs", 41 - "minimist" 42 - ], 43 - "author": { 44 - "name": "Nate Moore", 45 - "email": "nate@natemoo.re", 46 - "url": "https://natemoo.re" 25 + "scripts": { 26 + "dev": "bsh dev", 27 + "build": "bsh build", 28 + "format": "bsh format", 29 + "lint": "bsh lint", 30 + "test": "vitest run" 47 31 }, 48 - "license": "MIT", 49 - "volta": { 50 - "node": "22.14.0" 51 - }, 52 - "packageManager": "pnpm@10.7.0", 53 32 "devDependencies": { 33 + "@bomb.sh/tools": "^0.0.5", 54 34 "@changesets/cli": "^2.18.1", 55 35 "benchmark": "^2.1.4", 56 36 "chalk": "^5.4.1", ··· 63 43 "typescript": "^4.7.4", 64 44 "vitest": "^3.0.9", 65 45 "yargs-parser": "^21.1.1" 46 + }, 47 + "publishConfig": { 48 + "access": "public", 49 + "provenance": true 50 + }, 51 + "repository": { 52 + "type": "git", 53 + "url": "https://github.com/bombshell-dev/args" 54 + }, 55 + "volta": { 56 + "node": "22.14.0" 57 + }, 58 + "packageManager": "pnpm@10.7.0", 59 + "devEngines": { 60 + "runtime": { 61 + "name": "node", 62 + "version": "22.14.0", 63 + "onFail": "error" 64 + }, 65 + "packageManager": { 66 + "name": "pnpm", 67 + "version": "10.7.0", 68 + "onFail": "error" 69 + } 66 70 } 67 71 }
+119
pnpm-lock.yaml
··· 8 8 9 9 .: 10 10 devDependencies: 11 + '@bomb.sh/tools': 12 + specifier: ^0.0.5 13 + version: 0.0.5 11 14 '@changesets/cli': 12 15 specifier: ^2.18.1 13 16 version: 2.27.11 ··· 51 54 resolution: {integrity: sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==} 52 55 engines: {node: '>=6.9.0'} 53 56 57 + '@biomejs/biome@1.9.4': 58 + resolution: {integrity: sha512-1rkd7G70+o9KkTn5KLmDYXihGoTaIGO9PIIN2ZB7UJxFrWw04CZHPYiMRjYsaDvVV7hP1dYNRLxSANLaBFGpog==} 59 + engines: {node: '>=14.21.3'} 60 + hasBin: true 61 + 62 + '@biomejs/cli-darwin-arm64@1.9.4': 63 + resolution: {integrity: sha512-bFBsPWrNvkdKrNCYeAp+xo2HecOGPAy9WyNyB/jKnnedgzl4W4Hb9ZMzYNbf8dMCGmUdSavlYHiR01QaYR58cw==} 64 + engines: {node: '>=14.21.3'} 65 + cpu: [arm64] 66 + os: [darwin] 67 + 68 + '@biomejs/cli-darwin-x64@1.9.4': 69 + resolution: {integrity: sha512-ngYBh/+bEedqkSevPVhLP4QfVPCpb+4BBe2p7Xs32dBgs7rh9nY2AIYUL6BgLw1JVXV8GlpKmb/hNiuIxfPfZg==} 70 + engines: {node: '>=14.21.3'} 71 + cpu: [x64] 72 + os: [darwin] 73 + 74 + '@biomejs/cli-linux-arm64-musl@1.9.4': 75 + resolution: {integrity: sha512-v665Ct9WCRjGa8+kTr0CzApU0+XXtRgwmzIf1SeKSGAv+2scAlW6JR5PMFo6FzqqZ64Po79cKODKf3/AAmECqA==} 76 + engines: {node: '>=14.21.3'} 77 + cpu: [arm64] 78 + os: [linux] 79 + 80 + '@biomejs/cli-linux-arm64@1.9.4': 81 + resolution: {integrity: sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g==} 82 + engines: {node: '>=14.21.3'} 83 + cpu: [arm64] 84 + os: [linux] 85 + 86 + '@biomejs/cli-linux-x64-musl@1.9.4': 87 + resolution: {integrity: sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg==} 88 + engines: {node: '>=14.21.3'} 89 + cpu: [x64] 90 + os: [linux] 91 + 92 + '@biomejs/cli-linux-x64@1.9.4': 93 + resolution: {integrity: sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg==} 94 + engines: {node: '>=14.21.3'} 95 + cpu: [x64] 96 + os: [linux] 97 + 98 + '@biomejs/cli-win32-arm64@1.9.4': 99 + resolution: {integrity: sha512-tlbhLk+WXZmgwoIKwHIHEBZUwxml7bRJgk0X2sPyNR3S93cdRq6XulAZRQJ17FYGGzWne0fgrXBKpl7l4M87Hg==} 100 + engines: {node: '>=14.21.3'} 101 + cpu: [arm64] 102 + os: [win32] 103 + 104 + '@biomejs/cli-win32-x64@1.9.4': 105 + resolution: {integrity: sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA==} 106 + engines: {node: '>=14.21.3'} 107 + cpu: [x64] 108 + os: [win32] 109 + 110 + '@bomb.sh/args@0.3.1': 111 + resolution: {integrity: sha512-CwxKrfgcorUPP6KfYD59aRdBYWBTsfsxT+GmoLVnKo5Tmyoqbpo0UNcjngRMyU+6tiPbd18RuIYxhgAn44wU/Q==} 112 + 113 + '@bomb.sh/tools@0.0.5': 114 + resolution: {integrity: sha512-1KTr9jAVUEbnaVhQLwi7KtYYnlZcymh7kkhY/Ti6/EOSFC7uuAq5/2vY9L+iRvUBkR6eKFgveRQKguyMOkMn4w==} 115 + hasBin: true 116 + 54 117 '@changesets/apply-release-plan@7.0.7': 55 118 resolution: {integrity: sha512-qnPOcmmmnD0MfMg9DjU1/onORFyRpDXkMMl2IJg9mECY6RnxL3wN0TCCc92b2sXt1jt8DgjAUUsZYGUGTdYIXA==} 56 119 ··· 511 574 engines: {node: '>=18'} 512 575 hasBin: true 513 576 577 + escalade@3.2.0: 578 + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} 579 + engines: {node: '>=6'} 580 + 514 581 esprima@4.0.1: 515 582 resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} 516 583 engines: {node: '>=4'} ··· 821 888 tinyexec@0.3.2: 822 889 resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==} 823 890 891 + tinyexec@1.0.1: 892 + resolution: {integrity: sha512-5uC6DDlmeqiOwCPmK9jMSdOuZTh8bU39Ys6yidB+UTt5hfZUPGAypSgFRiEp+jbi9qH40BLDvy85jIU88wKSqw==} 893 + 824 894 tinypool@1.0.2: 825 895 resolution: {integrity: sha512-al6n+QEANGFOMf/dmUMsuS5/r9B06uwlyNjZZql/zv8J7ybHCgoihBNORZCY2mzUuAnomQa2JdhyHKzZxPCrFA==} 826 896 engines: {node: ^18.0.0 || >=20.0.0} ··· 946 1016 dependencies: 947 1017 regenerator-runtime: 0.14.1 948 1018 1019 + '@biomejs/biome@1.9.4': 1020 + optionalDependencies: 1021 + '@biomejs/cli-darwin-arm64': 1.9.4 1022 + '@biomejs/cli-darwin-x64': 1.9.4 1023 + '@biomejs/cli-linux-arm64': 1.9.4 1024 + '@biomejs/cli-linux-arm64-musl': 1.9.4 1025 + '@biomejs/cli-linux-x64': 1.9.4 1026 + '@biomejs/cli-linux-x64-musl': 1.9.4 1027 + '@biomejs/cli-win32-arm64': 1.9.4 1028 + '@biomejs/cli-win32-x64': 1.9.4 1029 + 1030 + '@biomejs/cli-darwin-arm64@1.9.4': 1031 + optional: true 1032 + 1033 + '@biomejs/cli-darwin-x64@1.9.4': 1034 + optional: true 1035 + 1036 + '@biomejs/cli-linux-arm64-musl@1.9.4': 1037 + optional: true 1038 + 1039 + '@biomejs/cli-linux-arm64@1.9.4': 1040 + optional: true 1041 + 1042 + '@biomejs/cli-linux-x64-musl@1.9.4': 1043 + optional: true 1044 + 1045 + '@biomejs/cli-linux-x64@1.9.4': 1046 + optional: true 1047 + 1048 + '@biomejs/cli-win32-arm64@1.9.4': 1049 + optional: true 1050 + 1051 + '@biomejs/cli-win32-x64@1.9.4': 1052 + optional: true 1053 + 1054 + '@bomb.sh/args@0.3.1': {} 1055 + 1056 + '@bomb.sh/tools@0.0.5': 1057 + dependencies: 1058 + '@biomejs/biome': 1.9.4 1059 + '@bomb.sh/args': 0.3.1 1060 + esbuild: 0.25.1 1061 + escalade: 3.2.0 1062 + tinyexec: 1.0.1 1063 + 949 1064 '@changesets/apply-release-plan@7.0.7': 950 1065 dependencies: 951 1066 '@changesets/config': 3.0.5 ··· 1402 1517 '@esbuild/win32-ia32': 0.25.1 1403 1518 '@esbuild/win32-x64': 0.25.1 1404 1519 1520 + escalade@3.2.0: {} 1521 + 1405 1522 esprima@4.0.1: {} 1406 1523 1407 1524 estree-walker@3.0.3: ··· 1672 1789 tinybench@2.9.0: {} 1673 1790 1674 1791 tinyexec@0.3.2: {} 1792 + 1793 + tinyexec@1.0.1: {} 1675 1794 1676 1795 tinypool@1.0.2: {} 1677 1796
+2
pnpm-workspace.yaml
··· 1 + onlyBuiltDependencies: 2 + - esbuild
-37
scripts/build.js
··· 1 - import colors from 'chalk'; 2 - import { build } from "esbuild"; 3 - import { gzipSizeFromFileSync } from 'gzip-size'; 4 - import bytes from 'pretty-bytes'; 5 - 6 - async function run() { 7 - const files = ['src/index.ts']; 8 - const output = {}; 9 - const promises = []; 10 - for (const file of files) { 11 - promises.push( 12 - build({ 13 - metafile: true, 14 - entryPoints: [file], 15 - outfile: file.replace('src', 'dist').replace('.ts', '.js'), 16 - external: ["../selector.js", "../index.js", "./index.js"], 17 - bundle: true, 18 - format: 'esm', 19 - minify: true, 20 - sourcemap: 'external', 21 - target: 'node16', 22 - platform: 'node', 23 - }).then((metadata) => { 24 - const file = Object.keys(metadata.metafile.outputs)[1] 25 - const size = gzipSizeFromFileSync(file); 26 - const b = bytes(size); 27 - output[file] = b; 28 - }) 29 - ) 30 - } 31 - await Promise.all(promises); 32 - for (const [file, size] of Object.entries(output).sort(([a], [b]) => a.localeCompare(b))) { 33 - console.log(`${file} ${colors.green(size)}`); 34 - } 35 - } 36 - 37 - run();