@penvhq/cli 0.3.0 → 0.3.1
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 +1 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +10 -9
package/dist/index.js
CHANGED
|
@@ -683,6 +683,7 @@ import { pathToFileURL as pathToFileURL2 } from "url";
|
|
|
683
683
|
import {
|
|
684
684
|
accessPath as accessPath2,
|
|
685
685
|
checkNameCollisions as checkNameCollisions2,
|
|
686
|
+
jitiFor,
|
|
686
687
|
NameCollisionError,
|
|
687
688
|
PenvError as PenvError5,
|
|
688
689
|
ReservedTokenError as ReservedTokenError2,
|
|
@@ -691,7 +692,6 @@ import {
|
|
|
691
692
|
validateConfig
|
|
692
693
|
} from "@penvhq/core";
|
|
693
694
|
import { defineCommand as defineCommand2 } from "citty";
|
|
694
|
-
import { createJiti } from "jiti";
|
|
695
695
|
var SCHEMA_EXPORT = "schema";
|
|
696
696
|
var LABELS = {
|
|
697
697
|
config: "Config",
|
|
@@ -770,7 +770,7 @@ function loadSchema(project, environment) {
|
|
|
770
770
|
return exclusively(() => loadSchemaExclusively(file, schemaPath, environment));
|
|
771
771
|
}
|
|
772
772
|
async function loadSchemaExclusively(file, schemaPath, environment) {
|
|
773
|
-
const jiti =
|
|
773
|
+
const jiti = jitiFor(file);
|
|
774
774
|
const previous = process.env.PENV_ENV;
|
|
775
775
|
process.env.PENV_ENV = environment;
|
|
776
776
|
let loaded;
|