@arkenv/vite-plugin 0.0.8 → 0.0.10

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/index.cjs CHANGED
@@ -20,14 +20,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
- default: () => index_default
23
+ default: () => arkenv
24
24
  });
25
25
  module.exports = __toCommonJS(index_exports);
26
26
  var import_arkenv = require("arkenv");
27
27
  var import_vite = require("vite");
28
- var index_default = (options) => ({
29
- name: "@arkenv/vite-plugin",
30
- config(_config, { mode }) {
31
- (0, import_arkenv.createEnv)(options, (0, import_vite.loadEnv)(mode, process.cwd(), ""));
32
- }
33
- });
28
+ function arkenv(options) {
29
+ return {
30
+ name: "@arkenv/vite-plugin",
31
+ config(_config, { mode }) {
32
+ (0, import_arkenv.createEnv)(options, (0, import_vite.loadEnv)(mode, process.cwd(), ""));
33
+ }
34
+ };
35
+ }
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { EnvSchema } from 'arkenv';
2
2
  import { Plugin } from 'vite';
3
3
 
4
- declare const _default: <T extends Record<string, string | undefined>>(options: EnvSchema<T>) => Plugin;
4
+ declare function arkenv<const T extends Record<string, string | undefined>>(options: EnvSchema<T>): Plugin;
5
5
 
6
- export { _default as default };
6
+ export { arkenv as default };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { EnvSchema } from 'arkenv';
2
2
  import { Plugin } from 'vite';
3
3
 
4
- declare const _default: <T extends Record<string, string | undefined>>(options: EnvSchema<T>) => Plugin;
4
+ declare function arkenv<const T extends Record<string, string | undefined>>(options: EnvSchema<T>): Plugin;
5
5
 
6
- export { _default as default };
6
+ export { arkenv as default };
package/dist/index.js CHANGED
@@ -1,12 +1,14 @@
1
1
  // src/index.ts
2
2
  import { createEnv } from "arkenv";
3
3
  import { loadEnv } from "vite";
4
- var index_default = (options) => ({
5
- name: "@arkenv/vite-plugin",
6
- config(_config, { mode }) {
7
- createEnv(options, loadEnv(mode, process.cwd(), ""));
8
- }
9
- });
4
+ function arkenv(options) {
5
+ return {
6
+ name: "@arkenv/vite-plugin",
7
+ config(_config, { mode }) {
8
+ createEnv(options, loadEnv(mode, process.cwd(), ""));
9
+ }
10
+ };
11
+ }
10
12
  export {
11
- index_default as default
13
+ arkenv as default
12
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkenv/vite-plugin",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "author": "Yam Borodetsky <yam@yam.codes>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,10 +9,14 @@
9
9
  "main": "./dist/index.cjs",
10
10
  "module": "./dist/index.js",
11
11
  "dependencies": {
12
- "arkenv": "0.5.0"
12
+ "arkenv": "0.7.0"
13
13
  },
14
14
  "devDependencies": {
15
+ "@types/react": "^19.1.12",
16
+ "@types/react-dom": "^19.1.9",
15
17
  "@vitejs/plugin-react": "^5.0.2",
18
+ "react": "^19.1.1",
19
+ "react-dom": "^19.1.1",
16
20
  "tsup": "^8.5.0",
17
21
  "typescript": "^5.9.2",
18
22
  "vite": "^7.1.5",