@take-out/scripts 0.2.4 → 0.2.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 +3 -14
- package/src/helpers/env-load.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@take-out/scripts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/cmd.ts",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -29,19 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@clack/prompts": "^0.8.2",
|
|
32
|
-
"@take-out/helpers": "0.2.
|
|
33
|
-
"@take-out/run": "0.2.
|
|
32
|
+
"@take-out/helpers": "0.2.5",
|
|
33
|
+
"@take-out/run": "0.2.5",
|
|
34
34
|
"picocolors": "^1.1.1"
|
|
35
|
-
},
|
|
36
|
-
"peerDependencies": {
|
|
37
|
-
"vxrn": "*"
|
|
38
|
-
},
|
|
39
|
-
"peerDependenciesMeta": {
|
|
40
|
-
"vxrn": {
|
|
41
|
-
"optional": true
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"devDependencies": {
|
|
45
|
-
"vxrn": "*"
|
|
46
35
|
}
|
|
47
36
|
}
|
package/src/helpers/env-load.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import fs from 'node:fs'
|
|
2
2
|
import { join } from 'node:path'
|
|
3
3
|
|
|
4
|
-
import { loadEnv as vxrnLoadEnv } from 'vxrn/loadEnv'
|
|
5
|
-
|
|
6
4
|
export async function loadEnv(
|
|
7
5
|
environment: 'development' | 'production' | 'dev-prod',
|
|
8
6
|
options?: { optional?: string[]; envPath?: string }
|
|
9
7
|
) {
|
|
8
|
+
const { loadEnv: vxrnLoadEnv } = await import('vxrn/loadEnv')
|
|
9
|
+
|
|
10
10
|
// loads env into process.env
|
|
11
11
|
await vxrnLoadEnv(environment)
|
|
12
12
|
|