@arkenv/vite-plugin 0.0.9 → 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 +9 -7
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -7
- package/package.json +2 -2
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: () =>
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
(
|
|
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
|
|
4
|
+
declare function arkenv<const T extends Record<string, string | undefined>>(options: EnvSchema<T>): Plugin;
|
|
5
5
|
|
|
6
|
-
export {
|
|
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
|
|
4
|
+
declare function arkenv<const T extends Record<string, string | undefined>>(options: EnvSchema<T>): Plugin;
|
|
5
5
|
|
|
6
|
-
export {
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"author": "Yam Borodetsky <yam@yam.codes>",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"main": "./dist/index.cjs",
|
|
10
10
|
"module": "./dist/index.js",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"arkenv": "0.
|
|
12
|
+
"arkenv": "0.7.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@types/react": "^19.1.12",
|