Repository navigation
arkenv@1.0.0-alpha.12
Pre-release
Pre-release
·
311 commits
to v1
since this release
Patch Changes
-
Harden runtime import guard for native ESM and CommonJS
#1591fec8d08@yamcodesSeparated the CLI binary executable (
src/bin.ts) from the package root export (src/index.ts) so that importing or requiringarkenvas a library unconditionally throws a descriptive migration error guiding users to@arkenv/core(or@arkenv/standard) in both ESM and CommonJS module systems.// Importing arkenv in ESM or requiring it in CJS throws immediately: import "arkenv"; // 🚨 [ArkEnv] You imported the 'arkenv' package as a library. Starting with v1.0.0, the 'arkenv' package is exclusively the interactive CLI. If you want to validate environment variables in your code, please install and import '@arkenv/core' (or '@arkenv/standard') instead, or run `npx arkenv@latest init` to guide you through setup.