Skip to content

Commit c6301ee

Browse files
MajorTalclaude
andcommitted
docs: use run402-functions as canonical import path in SKILL.md
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 072d7bf commit c6301ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,10 @@ Deploy a serverless function (Node 22) to a project. Functions are invoked via H
205205

206206
**DB access inside functions:**
207207
```typescript
208-
import { db, email, getUser } from '@run402/functions';
208+
import { db, email, getUser } from 'run402-functions';
209209
```
210210

211-
**Local development with TypeScript types**: `npm install run402-functions` — gives full autocomplete for `db.from()`, `getUser()`, `email.send()`, `ai.translate()`. Add `"@run402/functions": "npm:run402-functions@^1.0.0"` to package.json to match the import path.
211+
**TypeScript types**: `npm install run402-functions` — gives full autocomplete for `db.from()`, `getUser()`, `email.send()`, `ai.translate()`. Works in any Node.js/TypeScript project. Both `'run402-functions'` and legacy `'@run402/functions'` work in deployed functions.
212212

213213
**db.sql(query, params?)** — raw SQL, returns `{ status, schema, rows, rowCount }`.
214214
- SELECT: `rows` = matching rows, `rowCount` = row count

0 commit comments

Comments
 (0)