@systemfsoftware/effect-schema-vite 0.1.0 → 1.1.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/package.json +8 -6
- package/dist/effect-schema-vite.d.ts +0 -26
- package/dist/index.d.mts +0 -25
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@systemfsoftware/effect-schema-vite",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"author": "Ryan Lee <drdgvhbh@gmail.com>",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"oxc-
|
|
38
|
-
"
|
|
37
|
+
"@oxc-project/types": "^0.140.0",
|
|
38
|
+
"oxc-parser": "^0.140.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@microsoft/api-extractor": "^7.58.7",
|
|
@@ -45,9 +45,10 @@
|
|
|
45
45
|
"tsdown": "^0.22.9",
|
|
46
46
|
"vite": "^7",
|
|
47
47
|
"vitest": "^4",
|
|
48
|
-
"@systemfsoftware/effect-schema-law": "^0.
|
|
48
|
+
"@systemfsoftware/effect-schema-law": "^0.3.0",
|
|
49
49
|
"@systemfsoftware/oxlint-config": "^0.1.0",
|
|
50
|
-
"@systemfsoftware/tsconfig": "^1.
|
|
50
|
+
"@systemfsoftware/tsconfig": "^1.1.0",
|
|
51
|
+
"@systemfsoftware/arethetypeswrong-cli": "^1.0.0",
|
|
51
52
|
"@systemfsoftware/vitest-config": "^0.1.0"
|
|
52
53
|
},
|
|
53
54
|
"peerDependencies": {
|
|
@@ -64,6 +65,7 @@
|
|
|
64
65
|
"test:run": "vitest run",
|
|
65
66
|
"api:check": "api-extractor run",
|
|
66
67
|
"api:update": "api-extractor run --local",
|
|
67
|
-
"lint": "oxlint . ${AGENT:+--format=unix --quiet}"
|
|
68
|
+
"lint": "oxlint . ${AGENT:+--format=unix --quiet}",
|
|
69
|
+
"attw": "attw --pack ."
|
|
68
70
|
}
|
|
69
71
|
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Plugin as Plugin_2 } from 'vite';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Vite plugin that walks the consumer's `src/` directory, finds every
|
|
5
|
-
* exported Effect `Schema`, and auto-injects `ruleOfSchemas` round-trip
|
|
6
|
-
* property tests for each one.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* // vitest.config.ts
|
|
11
|
-
* import { inlineSchemaTests } from '@systemfsoftware/effect-schema-vite'
|
|
12
|
-
*
|
|
13
|
-
* export default defineConfig({
|
|
14
|
-
* plugins: [inlineSchemaTests()],
|
|
15
|
-
* })
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export declare const inlineSchemaTests: (options?: InlineSchemaTestsOptions) => Plugin_2;
|
|
19
|
-
|
|
20
|
-
/** @since 0.1.0 */
|
|
21
|
-
export declare interface InlineSchemaTestsOptions {
|
|
22
|
-
/** Directory to scan for schema files, relative to Vite root. Default: `"src"`. */
|
|
23
|
-
dir?: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { }
|
package/dist/index.d.mts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Plugin } from "vite";
|
|
2
|
-
//#region src/vite-inline-schema-tests.d.ts
|
|
3
|
-
/** @since 0.1.0 */
|
|
4
|
-
interface InlineSchemaTestsOptions {
|
|
5
|
-
/** Directory to scan for schema files, relative to Vite root. Default: `"src"`. */
|
|
6
|
-
dir?: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Vite plugin that walks the consumer's `src/` directory, finds every
|
|
10
|
-
* exported Effect `Schema`, and auto-injects `ruleOfSchemas` round-trip
|
|
11
|
-
* property tests for each one.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* // vitest.config.ts
|
|
16
|
-
* import { inlineSchemaTests } from '@systemfsoftware/effect-schema-vite'
|
|
17
|
-
*
|
|
18
|
-
* export default defineConfig({
|
|
19
|
-
* plugins: [inlineSchemaTests()],
|
|
20
|
-
* })
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
declare const inlineSchemaTests: (options?: InlineSchemaTestsOptions) => Plugin;
|
|
24
|
-
//#endregion
|
|
25
|
-
export { type InlineSchemaTestsOptions, inlineSchemaTests };
|