@bangerpage/cli 0.0.0-stage → 0.1.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.
@@ -0,0 +1,17 @@
1
+ export interface UpdateCheckOptions {
2
+ current: string;
3
+ env?: NodeJS.ProcessEnv;
4
+ isTTY?: boolean;
5
+ now?: number;
6
+ cacheFile?: string;
7
+ fetchLatest?: () => Promise<string | undefined>;
8
+ write?: (text: string) => void;
9
+ }
10
+ export declare function updateCacheFile(env?: NodeJS.ProcessEnv): string;
11
+ /** True when `latest` is a release (no prerelease tag) newer than `current`. */
12
+ export declare function isNewer(latest: string, current: string): boolean;
13
+ /**
14
+ * Prints a notice when the last check found a newer release, and refreshes the check at most once a day.
15
+ * The notice uses the cached result so a command never waits on the network; failures are ignored.
16
+ */
17
+ export declare function checkForUpdate(opts: UpdateCheckOptions): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,61 @@
1
1
  {
2
2
  "name": "@bangerpage/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
4
+ "description": "The banger command: preview, snap and export Banger presentations to PNG and PDF.",
5
+ "keywords": [
6
+ "presentation",
7
+ "pdf",
8
+ "cli",
9
+ "playwright"
10
+ ],
11
+ "type": "module",
12
+ "license": "MIT",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/bangerpage/banger.git",
16
+ "directory": "packages/cli"
17
+ },
18
+ "homepage": "https://github.com/bangerpage/banger/tree/main/packages/cli#readme",
19
+ "bugs": {
20
+ "url": "https://github.com/bangerpage/banger/issues"
21
+ },
22
+ "bin": {
23
+ "banger": "./dist/bin.js"
24
+ },
25
+ "exports": {
26
+ ".": {
27
+ "types": "./dist/index.d.ts",
28
+ "import": "./dist/index.js"
29
+ },
30
+ "./package.json": "./package.json"
31
+ },
32
+ "files": [
33
+ "dist",
34
+ "LICENSE",
35
+ "NOTICE"
36
+ ],
37
+ "engines": {
38
+ "node": ">=22"
39
+ },
40
+ "publishConfig": {
41
+ "access": "public"
42
+ },
43
+ "dependencies": {
44
+ "@cantoo/pdf-lib": "^2.11.1",
45
+ "parse5": "^8.1.1",
46
+ "playwright-core": "^1.65.1",
47
+ "@bangerpage/core": "0.1.1"
48
+ },
49
+ "devDependencies": {
50
+ "@types/node": "^24.0.0",
51
+ "esbuild": "^0.28.2",
52
+ "pdfjs-dist": "^6.5.438",
53
+ "vitest": "^5.1.0"
54
+ },
55
+ "scripts": {
56
+ "build": "node scripts/build.mjs",
57
+ "test": "vitest run",
58
+ "test:e2e": "vitest run --config vitest.e2e.config.ts",
59
+ "typecheck": "tsc --noEmit"
60
+ }
6
61
  }