@socotra/ec-react-schemas 0.0.0-alpha.1 → 2.0.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.
- package/README.md +48 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# @socotra/ec-react
|
|
2
|
+
|
|
3
|
+
Zod schemas for validating requests and responses from EC.
|
|
4
|
+
|
|
5
|
+
- **Package name**: `@socotra/ec-react-schemas`
|
|
6
|
+
- **Repo Path**: `packages/schemas`
|
|
7
|
+
- **Install**:
|
|
8
|
+
```sh
|
|
9
|
+
npm i @socotra/ec-react-schemas
|
|
10
|
+
```
|
|
11
|
+
- **Usage**:
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import { mySchema } from '@socotra/ec-react-schemas';
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Running the Project
|
|
18
|
+
|
|
19
|
+
To build the package:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
pnpm run build
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
To run tests:
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
pnpm run test
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
To run the linter:
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
pnpm run lint
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
To run the sandbox
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
cd ../sandbox
|
|
41
|
+
pnpm run dev
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Installing directly for local development
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
pnpm i ../path/to/this/packages/components
|
|
48
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socotra/ec-react-schemas",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.umd.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@rjsf/utils": "^5.18.4",
|
|
25
25
|
"zod": "^3.23.8"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "5e96b14b598fbda3cefa31ed17ba298a4b4c2f90"
|
|
28
28
|
}
|