Initial commit

This commit is contained in:
Devin Zuczek
2026-06-08 18:23:40 -04:00
commit 8e644a5c20
141 changed files with 21414 additions and 0 deletions
@@ -0,0 +1,10 @@
# @repo/{{ slug name }}
A shared package that can be used from other apps / packages.
To add it as as a dependency in another package, run:
```sh
cd apps/example-worker-echoback # or whatever app/package you want to add it to
pnpm add '@repo/{{ slug name }}@workspace:*'
```
@@ -0,0 +1,21 @@
{
"name": "@repo/{{ slug name }}",
"version": "0.1.0",
"private": true,
"sideEffects": false,
"type": "module",
"main": "src/index.ts",
"scripts": {
"check:lint": "run-oxlint",
"check:types": "run-tsc",
"test": "run-vitest"
},
"dependencies": {},
"devDependencies": {
"@repo/tools": "workspace:*",
"@repo/typescript-config": "workspace:*",
"vitest": "3.1.3"{{#if usedInWorkers}},
"@cloudflare/vitest-pool-workers": "0.8.24",
"@cloudflare/workers-types": "4.20250503.0"{{/if}}
}
}
@@ -0,0 +1,16 @@
/**
* Example function.
*
* @example
*
* Use from other apps/packages:
*
* ```ts
* import { hello } from '@repo/{{ slug name }}'
*
* hello()
* ```
*/
export function hello() {
return 'Hello, world!'
}
@@ -0,0 +1,3 @@
{
"extends": "@repo/typescript-config/{{ tsconfigType }}"
}