@grosspoetrysystems/oompf 0.1.0 → 0.2.0
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 +13 -5
- package/dist/index.d.mts +5 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +8 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -8
package/README.md
CHANGED
|
@@ -29,18 +29,26 @@ and serves **metadata only**.
|
|
|
29
29
|
|
|
30
30
|
## Install
|
|
31
31
|
|
|
32
|
+
`oompf` is a terminal command, so install it globally:
|
|
33
|
+
|
|
32
34
|
```bash
|
|
33
|
-
|
|
35
|
+
npm install -g @grosspoetrysystems/oompf
|
|
34
36
|
```
|
|
35
37
|
|
|
36
|
-
Or
|
|
38
|
+
Or run it without installing:
|
|
37
39
|
|
|
38
40
|
```bash
|
|
39
|
-
|
|
41
|
+
bunx @grosspoetrysystems/oompf@latest --help
|
|
42
|
+
npx @grosspoetrysystems/oompf@latest --help
|
|
40
43
|
```
|
|
41
44
|
|
|
42
|
-
The package is scoped; the
|
|
43
|
-
|
|
45
|
+
The package name is scoped; the command is plain `oompf`, which is what the
|
|
46
|
+
examples below use.
|
|
47
|
+
|
|
48
|
+
A project-local `npm install` is the wrong shape here: the binary lands in
|
|
49
|
+
`node_modules/.bin`, which is not on your `PATH`, and npm refuses the install
|
|
50
|
+
entirely inside a repository that uses `workspace:` specifiers. Use `-g` or
|
|
51
|
+
`bunx`.
|
|
44
52
|
|
|
45
53
|
Working in a clone of the repository? Run it from source with
|
|
46
54
|
`bun apps/cli/src/index.ts <command>`.
|
package/dist/index.d.mts
CHANGED
|
@@ -168,10 +168,12 @@ interface CliDeps {
|
|
|
168
168
|
/**
|
|
169
169
|
* OOMPF CLI version, surfaced by `oompf --version`.
|
|
170
170
|
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
171
|
+
* Read from `package.json` rather than restated, because npm publishes the
|
|
172
|
+
* manifest's version regardless of what the binary claims: a hand-maintained
|
|
173
|
+
* copy can only ever drift, and a binary reporting the wrong version makes
|
|
174
|
+
* every bug report ambiguous. The bundler inlines this at build time.
|
|
173
175
|
*/
|
|
174
|
-
declare const CLI_VERSION
|
|
176
|
+
declare const CLI_VERSION: string;
|
|
175
177
|
/** Build the OOMPF CLI with the given (optional) injectable seams. */
|
|
176
178
|
declare function createCli(deps?: CliDeps): Cli.Cli<{}, undefined, undefined, undefined>;
|
|
177
179
|
//#endregion
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../packages/core/dist/omp-profile.d.ts","../../../packages/github/dist/gh.d.ts","../../../packages/github/dist/gists.d.ts","../src/deps.ts","../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;UAeiB;;WAEJ;;WAEA;;WAEA;;;UAGI;;WAEJ;;WAEA;;WAEA,UAAU;;WAEV;;;UAGI;;WAEJ;;;;;;;;;iBASW,qBAAqB,cAAc,UAAU,oBAAoB;;;;;;;;iBAQjE,qBAAqB,iBAAiB,UAAU,oBAAoB,QAAQ;;;;;;;;;iBAS5E,iBAAiB,UAAU,oBAAoB,QAAQ;;;;;;;;;;;;;;;;;;UChD9D;;WAEJ;WACA;WACA;;;UAGI;;WAEJ;;WAEA;;WAEA;;;;;;;;;;KAUD,iBAAiB,OAAO,iBAAiB,QAAQ;;;;UCG5C;WACJ;WACA;EACT,QAAQ;;;KAGA,aAAa,aAAa;WACzB,UAAU;MACjB,QAAQ;;;;UC3BG;WACN;WACA;EACT,QAAQ;;;KAIE,aACV,aACA;WACW;WACA,UAAU;WACV;MAER,QAAQ;;UAGI;;EAEf,OAAO,eAAe;;EAEtB,MAAM,cAAc,eAAe;;EAEnC,SAAS,eAAe;;EAExB,UAAU,cAAc,cAAc,eAAe;;;UAoCtC;;WAEN,0BAA0B;;WAE1B,KAAK;;WAEL;;WAEA,YAAY;;WAEZ,YAAY;;WAEZ;;WAEA,8BAA8B;;WAE9B,8BAA8B;;WAE9B,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../packages/core/dist/omp-profile.d.ts","../../../packages/github/dist/gh.d.ts","../../../packages/github/dist/gists.d.ts","../src/deps.ts","../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;UAeiB;;WAEJ;;WAEA;;WAEA;;;UAGI;;WAEJ;;WAEA;;WAEA,UAAU;;WAEV;;;UAGI;;WAEJ;;;;;;;;;iBASW,qBAAqB,cAAc,UAAU,oBAAoB;;;;;;;;iBAQjE,qBAAqB,iBAAiB,UAAU,oBAAoB,QAAQ;;;;;;;;;iBAS5E,iBAAiB,UAAU,oBAAoB,QAAQ;;;;;;;;;;;;;;;;;;UChD9D;;WAEJ;WACA;WACA;;;UAGI;;WAEJ;;WAEA;;WAEA;;;;;;;;;;KAUD,iBAAiB,OAAO,iBAAiB,QAAQ;;;;UCG5C;WACJ;WACA;EACT,QAAQ;;;KAGA,aAAa,aAAa;WACzB,UAAU;MACjB,QAAQ;;;;UC3BG;WACN;WACA;EACT,QAAQ;;;KAIE,aACV,aACA;WACW;WACA,UAAU;WACV;MAER,QAAQ;;UAGI;;EAEf,OAAO,eAAe;;EAEtB,MAAM,cAAc,eAAe;;EAEnC,SAAS,eAAe;;EAExB,UAAU,cAAc,cAAc,eAAe;;;UAoCtC;;WAEN,0BAA0B;;WAE1B,KAAK;;WAEL;;WAEA,YAAY;;WAEZ,YAAY;;WAEZ;;WAEA,8BAA8B;;WAE9B,8BAA8B;;WAE9B,SAAS;;;;;;;;;;;;cC1EP;;iBAGG,UAAU,OAAM,UAAY,IAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -10,6 +10,9 @@ import { spawn } from "node:child_process";
|
|
|
10
10
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
11
11
|
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
12
12
|
//#endregion
|
|
13
|
+
//#region package.json
|
|
14
|
+
var version = "0.2.0";
|
|
15
|
+
//#endregion
|
|
13
16
|
//#region ../../packages/core/src/guards.ts
|
|
14
17
|
/**
|
|
15
18
|
* Canonical runtime type guards for `@oompf/core`.
|
|
@@ -8438,10 +8441,12 @@ function registerSearch(cli, deps) {
|
|
|
8438
8441
|
/**
|
|
8439
8442
|
* OOMPF CLI version, surfaced by `oompf --version`.
|
|
8440
8443
|
*
|
|
8441
|
-
*
|
|
8442
|
-
*
|
|
8444
|
+
* Read from `package.json` rather than restated, because npm publishes the
|
|
8445
|
+
* manifest's version regardless of what the binary claims: a hand-maintained
|
|
8446
|
+
* copy can only ever drift, and a binary reporting the wrong version makes
|
|
8447
|
+
* every bug report ambiguous. The bundler inlines this at build time.
|
|
8443
8448
|
*/
|
|
8444
|
-
const CLI_VERSION =
|
|
8449
|
+
const CLI_VERSION = version;
|
|
8445
8450
|
/** Build the OOMPF CLI with the given (optional) injectable seams. */
|
|
8446
8451
|
function createCli(deps = {}) {
|
|
8447
8452
|
const resolved = resolveDeps(deps);
|