unplugin-env 0.1.3 → 0.1.5

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/dist/rollup.js CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  import {
7
7
  unpluginFactory
8
- } from "./chunk-MNU7HARO.js";
8
+ } from "./chunk-2KZLPXSE.js";
9
9
 
10
10
  // src/rollup.ts
11
11
  import { createRollupPlugin } from "unplugin";
package/dist/types.d.cts CHANGED
@@ -26,10 +26,17 @@ interface Options {
26
26
  */
27
27
  build?: RegExp;
28
28
  };
29
+ compress?: {
30
+ outDir?: string;
31
+ ignoreBase?: boolean;
32
+ };
29
33
  }
30
- interface ResolvedOptions extends Required<Options> {
34
+ type DeepRequired<T> = {
35
+ [P in keyof T]-?: T[P] extends object ? DeepRequired<T[P]> : T[P];
36
+ };
37
+ type ResolvedOptions = DeepRequired<Options> & {
31
38
  date: string;
32
- }
39
+ };
33
40
  interface GenerateScript {
34
41
  code: string;
35
42
  script: string;
@@ -38,7 +45,7 @@ interface GenerateScript {
38
45
  source: string;
39
46
  fileName: string;
40
47
  };
41
- watchFolder: string;
48
+ watchFiles: string[];
42
49
  }
43
50
 
44
- export type { GenerateScript, Options, ResolvedOptions };
51
+ export type { DeepRequired, GenerateScript, Options, ResolvedOptions };
package/dist/types.d.ts CHANGED
@@ -26,10 +26,17 @@ interface Options {
26
26
  */
27
27
  build?: RegExp;
28
28
  };
29
+ compress?: {
30
+ outDir?: string;
31
+ ignoreBase?: boolean;
32
+ };
29
33
  }
30
- interface ResolvedOptions extends Required<Options> {
34
+ type DeepRequired<T> = {
35
+ [P in keyof T]-?: T[P] extends object ? DeepRequired<T[P]> : T[P];
36
+ };
37
+ type ResolvedOptions = DeepRequired<Options> & {
31
38
  date: string;
32
- }
39
+ };
33
40
  interface GenerateScript {
34
41
  code: string;
35
42
  script: string;
@@ -38,7 +45,7 @@ interface GenerateScript {
38
45
  source: string;
39
46
  fileName: string;
40
47
  };
41
- watchFolder: string;
48
+ watchFiles: string[];
42
49
  }
43
50
 
44
- export type { GenerateScript, Options, ResolvedOptions };
51
+ export type { DeepRequired, GenerateScript, Options, ResolvedOptions };