@systemfsoftware/effect-schema-vite 0.1.0 → 1.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@systemfsoftware/effect-schema-vite",
3
3
  "license": "MIT",
4
- "version": "0.1.0",
4
+ "version": "1.0.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-parser": "^0.140.0",
38
- "@oxc-project/types": "^0.140.0"
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,7 +45,7 @@
45
45
  "tsdown": "^0.22.9",
46
46
  "vite": "^7",
47
47
  "vitest": "^4",
48
- "@systemfsoftware/effect-schema-law": "^0.1.0",
48
+ "@systemfsoftware/effect-schema-law": "^0.2.0",
49
49
  "@systemfsoftware/oxlint-config": "^0.1.0",
50
50
  "@systemfsoftware/tsconfig": "^1.0.0",
51
51
  "@systemfsoftware/vitest-config": "^0.1.0"
@@ -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 };