@behindthemusictree/grow-api 0.0.0-stage → 0.1.0-next.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.
@@ -0,0 +1,3 @@
1
+ export * from "./generated/index.js";
2
+ export * from "./generated/zod.gen.js";
3
+ export declare function knownOrFallback<Known extends string, Fallback>(value: string, knownValues: readonly Known[], fallback: Fallback): Known | Fallback;
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ export * from "./generated/index.js";
2
+ export * from "./generated/zod.gen.js";
3
+ export function knownOrFallback(value, knownValues, fallback) {
4
+ return knownValues.find((known) => known === value) ?? fallback;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,37 @@
1
1
  {
2
2
  "name": "@behindthemusictree/grow-api",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0-next.0",
4
+ "type": "module",
5
+ "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/BehindTheMusicTree/grow-the-music-tree-api.git",
9
+ "directory": "packages/grow-api-client"
10
+ },
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "default": "./dist/index.js"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "packageManager": "pnpm@11.5.2",
21
+ "peerDependencies": {
22
+ "zod": "^4.6.0"
23
+ },
24
+ "devDependencies": {
25
+ "@hey-api/openapi-ts": "0.99.0",
26
+ "@types/node": "26.6.11",
27
+ "typescript": "6.0.3",
28
+ "yaml": "2.9.1",
29
+ "zod": "4.6.7"
30
+ },
31
+ "scripts": {
32
+ "generate": "tsc --ignoreConfig --strict --types node --skipLibCheck --module NodeNext --target ES2022 --noEmit openapi-ts.config.ts && openapi-ts",
33
+ "build": "tsc && node --input-type=module -e \"import { copyFileSync } from 'node:fs'; copyFileSync('../../LICENSE', 'dist/LICENSE')\"",
34
+ "typecheck": "tsc --noEmit",
35
+ "test": "node --test"
36
+ }
37
+ }