env-checklist 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/dist/chunk-FEPVSWMN.js +2 -0
- package/dist/cli.cjs +3 -0
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +2 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -0
- package/package.json +37 -0
package/dist/cli.cjs
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";var p=Object.create;var t=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var u=(e,n,o,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of a(n))!v.call(e,s)&&s!==o&&t(e,s,{get:()=>n[s],enumerable:!(i=m(n,s))||i.enumerable});return e};var c=(e,n,o)=>(o=e!=null?p(h(e)):{},u(n||!e||!e.__esModule?t(o,"default",{value:e,enumerable:!0}):o,e));var r=c(require("fs"),1),f=c(require("path"),1);function l(e){let n=[],o={};for(let i of e){let s=process.env[i];s?o[i]=s:n.push(i)}return n.length>0&&(console.error(`
|
|
3
|
+
\u2708\uFE0F [env-preflight] Missing variables: ${n.join(", ")}`),process.exit(1)),o}var g=f.default.join(process.cwd(),".env.example");r.default.existsSync(g)||(console.error("No .env.example file found in this directory."),process.exit(1));var x=r.default.readFileSync(g,"utf-8"),y=x.match(/^[^#\s=]+/gm)||[];console.log("\u2708\uFE0F Checking environment variables...");l(y);console.log("All systems go. Environment is flight-ready.");
|
package/dist/cli.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{a as e}from"./chunk-FEPVSWMN.js";import o from"fs";import s from"path";var n=s.join(process.cwd(),".env.example");o.existsSync(n)||(console.error("No .env.example file found in this directory."),process.exit(1));var t=o.readFileSync(n,"utf-8"),i=t.match(/^[^#\s=]+/gm)||[];console.log("\u2708\uFE0F Checking environment variables...");e(i);console.log("All systems go. Environment is flight-ready.");
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var r=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var c=(e,n)=>{for(var o in n)r(e,o,{get:n[o],enumerable:!0})},l=(e,n,o,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of g(n))!f.call(e,i)&&i!==o&&r(e,i,{get:()=>n[i],enumerable:!(s=t(n,i))||s.enumerable});return e};var p=e=>l(r({},"__esModule",{value:!0}),e);var u={};c(u,{preflight:()=>a});module.exports=p(u);function a(e){let n=[],o={};for(let s of e){let i=process.env[s];i?o[s]=i:n.push(s)}return n.length>0&&(console.error(`
|
|
2
|
+
\u2708\uFE0F [env-preflight] Missing variables: ${n.join(", ")}`),process.exit(1)),o}0&&(module.exports={preflight});
|
package/dist/index.d.cts
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-FEPVSWMN.js";export{a as preflight};
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "env-checklist",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Ensure your environment variables are flight-ready before takeoff.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"bin": {
|
|
10
|
+
"env-checklist": "./dist/cli.js"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsup src/index.ts src/cli.ts --format cjs,esm --dts --clean --minify",
|
|
17
|
+
"dev": "tsup src/index.ts --watch",
|
|
18
|
+
"test": "vitest run",
|
|
19
|
+
"lint": "tsc --noEmit"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"env",
|
|
23
|
+
"dotenv",
|
|
24
|
+
"validation",
|
|
25
|
+
"checker",
|
|
26
|
+
"preflight",
|
|
27
|
+
"cli"
|
|
28
|
+
],
|
|
29
|
+
"author": "Your Name",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@types/node": "^20.19.37",
|
|
33
|
+
"tsup": "^8.5.1",
|
|
34
|
+
"typescript": "^5.9.3",
|
|
35
|
+
"vitest": "^4.0.18"
|
|
36
|
+
}
|
|
37
|
+
}
|