@arkenv/vite-plugin 0.0.2 → 0.0.4
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/README.md +3 -3
- package/dist/index.cjs +2 -12
- package/dist/index.js +2 -2
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# `@arkenv/vite-plugin`
|
|
2
|
-
|
|
3
|
-
A Vite plugin for using
|
|
1
|
+
# `@arkenv/vite-plugin`
|
|
2
|
+
|
|
3
|
+
A Vite plugin for using ArkEnv to validate environment variables at build time.
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
15
|
}
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
19
|
|
|
30
20
|
// src/index.ts
|
|
@@ -33,11 +23,11 @@ __export(index_exports, {
|
|
|
33
23
|
default: () => index_default
|
|
34
24
|
});
|
|
35
25
|
module.exports = __toCommonJS(index_exports);
|
|
36
|
-
var
|
|
26
|
+
var import_arkenv = require("arkenv");
|
|
37
27
|
var import_vite = require("vite");
|
|
38
28
|
var index_default = (options) => ({
|
|
39
29
|
name: "@arkenv/vite-plugin",
|
|
40
30
|
config(_config, { mode }) {
|
|
41
|
-
|
|
31
|
+
(0, import_arkenv.defineEnv)(options, (0, import_vite.loadEnv)(mode, process.cwd(), ""));
|
|
42
32
|
}
|
|
43
33
|
});
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
|
-
import
|
|
2
|
+
import { defineEnv } from "arkenv";
|
|
3
3
|
import { loadEnv } from "vite";
|
|
4
4
|
var index_default = (options) => ({
|
|
5
5
|
name: "@arkenv/vite-plugin",
|
|
6
6
|
config(_config, { mode }) {
|
|
7
|
-
|
|
7
|
+
defineEnv(options, loadEnv(mode, process.cwd(), ""));
|
|
8
8
|
}
|
|
9
9
|
});
|
|
10
10
|
export {
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkenv/vite-plugin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"author": "Yam Borodetsky <yam@yam.codes>",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/yamcodes/
|
|
7
|
+
"url": "git+https://github.com/yamcodes/arkenv.git"
|
|
8
8
|
},
|
|
9
9
|
"main": "./dist/index.cjs",
|
|
10
10
|
"module": "./dist/index.js",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"
|
|
12
|
+
"arkenv": "0.2.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"tsup": "^8.
|
|
16
|
-
"typescript": "^5.
|
|
15
|
+
"tsup": "^8.5.0",
|
|
16
|
+
"typescript": "^5.9.2"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"arktype": "^2.0.0",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"import": "./dist/index.js",
|
|
25
25
|
"require": "./dist/index.cjs"
|
|
26
26
|
},
|
|
27
|
-
"bugs": "https://github.com/yamcodes/
|
|
28
|
-
"description": "Vite plugin for
|
|
27
|
+
"bugs": "https://github.com/yamcodes/arkenv/labels/%40arkenv%2Fvite-plugin",
|
|
28
|
+
"description": "Vite plugin for ArkEnv",
|
|
29
29
|
"files": [
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
|
-
"homepage": "https://yam.codes/
|
|
32
|
+
"homepage": "https://yam.codes/arkenv",
|
|
33
33
|
"keywords": [
|
|
34
34
|
"arktype",
|
|
35
35
|
"arkenv",
|
|
36
|
-
"
|
|
36
|
+
"arkenv",
|
|
37
37
|
"environment",
|
|
38
38
|
"variables",
|
|
39
39
|
"vite",
|