Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ separately.
- CI: dependency check, typecheck, tools tests, ingress tests and build each run as
separate jobs.

[Unreleased]: https://github.com/corbitsdev/corbits-granola
[Unreleased]: https://github.com/corbitsdev/granola-tools
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ depend on the root export; the root export depends on neither — see

## Runtime support

Node >= 24 consumes built `dist/`. Bun loads TypeScript source directly via
the `bun` export condition. `@corbits/granola/ingress` additionally needs
`hono` ^4 as a peer. Nothing in the package reads `process.env` itself — every
credential, base URL, and store is a constructor argument the host supplies.
All runtimes (including Bun) consume built `dist/`. `@corbits/granola/ingress`
additionally needs `hono` ^4 as a peer. Nothing in the package reads
`process.env` itself — every credential, base URL, and store is a constructor
argument the host supplies.

## Install

Expand All @@ -22,7 +22,7 @@ yarn add @corbits/granola
bun add @corbits/granola
```

Not on npm yet — install from git (`bun add github:corbitsdev/corbits-granola`,
Not on npm yet — install from git (`bun add github:corbitsdev/granola-tools`,
ideally pinned to a commit) until it is.

## Quickstart
Expand Down
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@
"ingress"
],
"author": "Sawyer Cutler <sawyer@dirtroad.dev>",
"homepage": "https://github.com/corbitsdev/corbits-granola#readme",
"homepage": "https://github.com/corbitsdev/granola-tools#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/corbitsdev/corbits-granola.git"
"url": "git+https://github.com/corbitsdev/granola-tools.git"
},
"bugs": {
"url": "https://github.com/corbitsdev/corbits-granola/issues"
"url": "https://github.com/corbitsdev/granola-tools/issues"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=24"
Expand All @@ -29,25 +32,20 @@
"types": "./dist/tools/index.d.ts",
"exports": {
".": {
"bun": "./src/tools/index.ts",
"types": "./dist/tools/index.d.ts",
"default": "./dist/tools/index.js"
},
"./ingress": {
"bun": "./src/ingress/index.ts",
"types": "./dist/ingress/index.d.ts",
"default": "./dist/ingress/index.js"
},
"./ingest": {
"bun": "./src/ingest/index.ts",
"types": "./dist/ingest/index.d.ts",
"default": "./dist/ingest/index.js"
}
},
"files": [
"dist",
"src",
"!src/**/*.test.ts",
"LICENSE",
"README.md"
],
Expand Down
2 changes: 1 addition & 1 deletion src/ingress/webhook-registration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import { type } from "arktype";
import { getLogger } from "@intx/log";

import type { GranolaBindingStore } from "./binding-store";
import type { GranolaBindingStore } from "./binding-store.js";

const log = getLogger(["corbits", "granola", "webhook-registration"]);

Expand Down
18 changes: 12 additions & 6 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"types": ["node"],
"noEmit": false,
"strict": true,
"target": "ESNext",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"allowImportingTsExtensions": false,
"composite": false,
"verbatimModuleSyntax": true,
"skipLibCheck": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"declarationMap": false,
"sourceMap": false,
"outDir": "dist",
"rootDir": "src"
"rootDir": "src",
"types": ["node"]
},
"include": ["src"],
"exclude": ["src/**/*.test.ts"]
Expand Down
Loading