toolcraft-schema 0.0.1 → 0.0.2
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 +2 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -14,8 +14,8 @@ Zero-dependency schema builder for typed command inputs and JSON Schema generati
|
|
|
14
14
|
## Usage
|
|
15
15
|
|
|
16
16
|
```ts
|
|
17
|
-
import { S, toJsonSchema } from "
|
|
18
|
-
import type { Static } from "
|
|
17
|
+
import { S, toJsonSchema } from "toolcraft-schema";
|
|
18
|
+
import type { Static } from "toolcraft-schema";
|
|
19
19
|
|
|
20
20
|
const schema = S.Object({
|
|
21
21
|
name: S.String({ description: "User name" }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toolcraft-schema",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "rm -rf dist && tsc",
|
|
15
|
-
"test": "cd ../.. && vitest run packages/
|
|
16
|
-
"test:unit": "cd ../.. && vitest run packages/
|
|
17
|
-
"lint": "cd ../.. && eslint packages/
|
|
15
|
+
"test": "cd ../.. && vitest run packages/toolcraft-schema/src/index.test.ts",
|
|
16
|
+
"test:unit": "cd ../.. && vitest run packages/toolcraft-schema/src/index.test.ts",
|
|
17
|
+
"lint": "cd ../.. && eslint packages/toolcraft-schema/src --ext ts && tsc -p packages/toolcraft-schema/tsconfig.json --noEmit"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
20
|
"dist"
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
27
|
"url": "git+https://github.com/poe-platform/poe-code.git",
|
|
28
|
-
"directory": "packages/
|
|
28
|
+
"directory": "packages/toolcraft-schema"
|
|
29
29
|
}
|
|
30
30
|
}
|