Skip to content

Commit

Permalink
Merge pull request #13 from enormora/rename
Browse files Browse the repository at this point in the history
Rename schema-tools to schema-hub
  • Loading branch information
lo1tuma authored Mar 26, 2024
2 parents d4b4e3a + f9c3762 commit 5709145
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packtory.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 deletions source/zod-error-formatter/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit 5709145

Please sign in to comment.