From f9c3762433d00dc27b17f1f7d689d54a5b589e12 Mon Sep 17 00:00:00 2001 From: Mathias Schreck Date: Tue, 26 Mar 2024 16:29:33 +0100 Subject: [PATCH] Rename schema-tools to schema-hub --- package-lock.json | 4 ++-- package.json | 5 ++--- packtory.config.js | 2 +- readme.md | 6 +++--- source/zod-error-formatter/readme.md | 4 ++-- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index f70ba72..8d1b110 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "schema-tools", + "name": "schema-hub", "version": "0.0.0-dev", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "schema-tools", + "name": "schema-hub", "version": "0.0.0-dev", "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 5698aa6..9e0241a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,6 @@ { - "name": "schema-tools", + "name": "schema-hub", "version": "0.0.0-dev", - "description": "Effortless code bundling and publishing for npm packages", "type": "module", "scripts": { "compile": "tsc --build", @@ -22,7 +21,7 @@ "license": "MIT", "repository": { "type": "git", - "url": "git+ssh://git@github.com/enormora/schema-tools.git" + "url": "git+ssh://git@github.com/enormora/schema-hub.git" }, "dependencies": { "tslib": "2.6.2" diff --git a/packtory.config.js b/packtory.config.js index c744205..2dcddd6 100644 --- a/packtory.config.js +++ b/packtory.config.js @@ -37,7 +37,7 @@ export async function buildConfig() { } }, packages: [{ - name: '@schema-tools/zod-error-formatter', + name: '@schema-hub/zod-error-formatter', entryPoints: [ { js: 'zod-error-formatter/formatter.js', diff --git a/readme.md b/readme.md index 2099aa7..95d3f66 100644 --- a/readme.md +++ b/readme.md @@ -1,9 +1,9 @@ -# schema-tools +# schema-hub This repository maintains a collection of tools designed to enhance the functionality and usability of typescript-based schema-validation libraries. ## Projects -Currently, the `@schema-tools` monorepo contains the following project: +Currently, the `@schema-hub` monorepo contains the following project: -- **[@schema-tools/zod-error-formatter](./source/zod-error-formatter/readme.md)**: A tool for formatting errors generated by the [`zod`](https://github.com/colinhacks/zod) schema-validation library into simple and easy-to-understand messages. +- **[@schema-hub/zod-error-formatter](./source/zod-error-formatter/readme.md)**: A tool for formatting errors generated by the [`zod`](https://github.com/colinhacks/zod) schema-validation library into simple and easy-to-understand messages. diff --git a/source/zod-error-formatter/readme.md b/source/zod-error-formatter/readme.md index c945c7a..3a84648 100644 --- a/source/zod-error-formatter/readme.md +++ b/source/zod-error-formatter/readme.md @@ -17,7 +17,7 @@ The error message deliberately excludes the actual input passed to the schema pa Input: ```typescript -import { safeParse } from '@schema-tools/zod-error-formatter'; +import { safeParse } from '@schema-hub/zod-error-formatter'; const schema = z.union([z.string(), z.number()]); const result = safeParse(schema, true); @@ -32,7 +32,7 @@ Validation failed: invalid value: expected one of string or number, but got bool ## Installation ```bash -npm install @schema-tools/zod-error-formatter +npm install @schema-hub/zod-error-formatter ``` ## Usage