lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README | LICENSE

commit 5b7abfc4faa4190cb063804f715598b8f3a4d7f1
parent 8b277e713899b4be0f884cf8f90e2d4f8c1d57e3
Author: triesap <tyson@radroots.org>
Date:   Thu, 19 Feb 2026 21:19:17 +0000

build: rename `radroots-events` bindings package to @radroots/events

Diffstat:
Mevents/bindings/ts/package.json | 2+-
Mevents/bindings/ts/src/types.ts | 2++
Mpnpm-lock.yaml | 2+-
Mtrade/bindings/ts/package.json | 4++--
Mtrade/bindings/ts/src/types.ts | 4++++
Mturbo.json | 7+++----
6 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/events/bindings/ts/package.json b/events/bindings/ts/package.json @@ -1,5 +1,5 @@ { - "name": "@radroots/events-bindings", + "name": "@radroots/events", "version": "1.0.0", "private": true, "license": "AGPLv3", diff --git a/events/bindings/ts/src/types.ts b/events/bindings/ts/src/types.ts @@ -1,3 +1,5 @@ +import type { RadrootsCoreDecimal, RadrootsCoreDiscount, RadrootsCoreDiscountValue, RadrootsCoreMoney, RadrootsCorePercent, RadrootsCoreQuantity, RadrootsCoreQuantityPrice, RadrootsCoreUnit } from "@radroots/core"; + // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. export type JobFeedbackStatus = "payment_required" | "processing" | "error" | "success" | "partial"; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml @@ -86,7 +86,7 @@ importers: '@radroots/core': specifier: workspace:* version: link:../../../core/bindings/ts - '@radroots/events-bindings': + '@radroots/events': specifier: workspace:* version: link:../../../events/bindings/ts zod: diff --git a/trade/bindings/ts/package.json b/trade/bindings/ts/package.json @@ -23,7 +23,7 @@ "build:cjs": "tsc -p tsconfig.cjs.json", "build": "npm run build:esm && npm run build:cjs", "prebuild": "npm run clean && npm run prepend-imports", - "prepend-imports": "bash -c 'f=./src/types.ts; line=\"import type { RadrootsCoreCurrency, RadrootsCoreDecimal, RadrootsCoreDiscount, RadrootsCoreDiscountValue, RadrootsCoreMoney, RadrootsCoreQuantity, RadrootsCoreQuantityPrice, RadrootsCoreUnit } from \\\"@radroots/core\\\";\"; grep -qxF \"$line\" \"$f\" || (echo -e \"$line\\n\\n$(cat $f)\" > \"$f\")' && bash -c 'f=./src/types.ts; old=\"import type { RadrootsListingDiscount, RadrootsListingImage, RadrootsNostrEventPtr } from \\\"@radroots/events-bindings\\\";\"; if grep -qxF \"$old\" \"$f\"; then grep -vxF \"$old\" \"$f\" > \"$f.tmp\" && mv \"$f.tmp\" \"$f\"; fi; old2=\"import type { RadrootsListingImage, RadrootsNostrEventPtr } from \\\"@radroots/events-bindings\\\";\"; if grep -qxF \"$old2\" \"$f\"; then grep -vxF \"$old2\" \"$f\" > \"$f.tmp\" && mv \"$f.tmp\" \"$f\"; fi; line=\"import type { RadrootsListingImage, RadrootsNostrEventPtr, RadrootsPlotRef, RadrootsResourceAreaRef } from \\\"@radroots/events-bindings\\\";\"; grep -qxF \"$line\" \"$f\" || (echo -e \"$line\\n\\n$(cat $f)\" > \"$f\")'", + "prepend-imports": "bash -c 'f=./src/types.ts; line=\"import type { RadrootsCoreCurrency, RadrootsCoreDecimal, RadrootsCoreDiscount, RadrootsCoreDiscountValue, RadrootsCoreMoney, RadrootsCoreQuantity, RadrootsCoreQuantityPrice, RadrootsCoreUnit } from \\\"@radroots/core\\\";\"; grep -qxF \"$line\" \"$f\" || (echo -e \"$line\\n\\n$(cat $f)\" > \"$f\")' && bash -c 'f=./src/types.ts; old=\"import type { RadrootsListingDiscount, RadrootsListingImage, RadrootsNostrEventPtr } from \\\"@radroots/events-bindings\\\";\"; if grep -qxF \"$old\" \"$f\"; then grep -vxF \"$old\" \"$f\" > \"$f.tmp\" && mv \"$f.tmp\" \"$f\"; fi; old2=\"import type { RadrootsListingImage, RadrootsNostrEventPtr } from \\\"@radroots/events-bindings\\\";\"; if grep -qxF \"$old2\" \"$f\"; then grep -vxF \"$old2\" \"$f\" > \"$f.tmp\" && mv \"$f.tmp\" \"$f\"; fi; old3=\"import type { RadrootsListingDiscount, RadrootsListingImage, RadrootsNostrEventPtr } from \\\"@radroots/events\\\";\"; if grep -qxF \"$old3\" \"$f\"; then grep -vxF \"$old3\" \"$f\" > \"$f.tmp\" && mv \"$f.tmp\" \"$f\"; fi; old4=\"import type { RadrootsListingImage, RadrootsNostrEventPtr } from \\\"@radroots/events\\\";\"; if grep -qxF \"$old4\" \"$f\"; then grep -vxF \"$old4\" \"$f\" > \"$f.tmp\" && mv \"$f.tmp\" \"$f\"; fi; line=\"import type { RadrootsListingImage, RadrootsNostrEventPtr, RadrootsPlotRef, RadrootsResourceAreaRef } from \\\"@radroots/events\\\";\"; grep -qxF \"$line\" \"$f\" || (echo -e \"$line\\n\\n$(cat $f)\" > \"$f\")'", "clean": "rimraf dist", "dev": "npm run watch", "watch": "tsc -w" @@ -35,7 +35,7 @@ }, "dependencies": { "@radroots/core": "workspace:*", - "@radroots/events-bindings": "workspace:*", + "@radroots/events": "workspace:*", "zod": "^4.0.5" }, "publishConfig": { diff --git a/trade/bindings/ts/src/types.ts b/trade/bindings/ts/src/types.ts @@ -1,3 +1,7 @@ +import type { RadrootsListingImage, RadrootsNostrEventPtr, RadrootsPlotRef, RadrootsResourceAreaRef } from "@radroots/events"; + +import type { RadrootsCoreCurrency, RadrootsCoreDecimal, RadrootsCoreDiscount, RadrootsCoreDiscountValue, RadrootsCoreMoney, RadrootsCoreQuantity, RadrootsCoreQuantityPrice, RadrootsCoreUnit } from "@radroots/core"; + // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. export type RadrootsListing = { d_tag: string, farm: RadrootsListingFarmRef, product: RadrootsListingProduct, primary_bin_id: string, bins: Array<RadrootsListingBin>, resource_area?: RadrootsResourceAreaRef | null, plot?: RadrootsPlotRef | null, discounts?: RadrootsCoreDiscount[] | null, inventory_available?: RadrootsCoreDecimal | null, availability?: RadrootsListingAvailability | null, delivery_method?: RadrootsListingDeliveryMethod | null, location?: RadrootsListingLocation | null, images?: RadrootsListingImage[] | null, }; diff --git a/turbo.json b/turbo.json @@ -33,7 +33,7 @@ "@radroots/tsconfig#build" ] }, - "@radroots/events-bindings#build": { + "@radroots/events#build": { "dependsOn": [ "@radroots/tsconfig#build", "@radroots/core#build" @@ -48,8 +48,8 @@ "dependsOn": [ "@radroots/tsconfig#build", "@radroots/core#build", - "@radroots/events-bindings#build" + "@radroots/events#build" ] } } -} -\ No newline at end of file +}