@purpleschool/infisical-env 0.1.3 → 0.1.5
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/package.json +1 -1
- package/src/cli.js +6 -3
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -44,7 +44,10 @@ async function main() {
|
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
const envFilePath = path.join(repoRoot, ".env");
|
|
47
|
-
const lines = values
|
|
47
|
+
const lines = values
|
|
48
|
+
.slice()
|
|
49
|
+
.sort((a, b) => a.name.localeCompare(b.name))
|
|
50
|
+
.map((item) => `${item.name}=${item.value}`);
|
|
48
51
|
fs.writeFileSync(envFilePath, lines.join(os.EOL), "utf8");
|
|
49
52
|
|
|
50
53
|
console.log(pc.green(`.env written to ${envFilePath}`));
|
|
@@ -99,14 +102,14 @@ function resolveInfisicalProject(packageJson) {
|
|
|
99
102
|
if (name.includes("rugpt")) {
|
|
100
103
|
return "48854e39-7129-4786-87ac-cfcce296991c";
|
|
101
104
|
}
|
|
102
|
-
if (name.includes("studdy")) {
|
|
105
|
+
if (name.includes("studdy") || name.includes("student-works")) {
|
|
103
106
|
return "b4b0abbd-f8e6-428a-a296-6289369ca8dd";
|
|
104
107
|
}
|
|
105
108
|
if (name.includes("multisite")) {
|
|
106
109
|
return "6531c08b-45e0-4d75-a8ab-08d14d0387bf";
|
|
107
110
|
}
|
|
108
111
|
throw new Error(
|
|
109
|
-
"Unable to resolve Infisical project from package.json name. Expected name to include rugpt, studdy, or multisite."
|
|
112
|
+
"Unable to resolve Infisical project from package.json name. Expected name to include rugpt, studdy, student-works, or multisite."
|
|
110
113
|
);
|
|
111
114
|
}
|
|
112
115
|
|