@primitivedotdev/cli 0.29.0 → 0.30.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/bin/run.js +6 -6
- package/dist/oclif/index.js +1036 -169
- package/dist/oclif/proxy-auto-detect.js +35 -9
- package/package.json +1 -1
package/bin/run.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { applyProxyAutoDetect } from "../dist/oclif/proxy-auto-detect.js";
|
|
3
|
+
import { restartWithProxyEnvIfNeeded } from "../dist/oclif/proxy-auto-detect.js";
|
|
5
4
|
|
|
6
|
-
// Auto-
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
|
|
5
|
+
// Auto-restart with NODE_USE_ENV_PROXY=1 when HTTP(S)_PROXY is in the env.
|
|
6
|
+
// Node reads NODE_USE_ENV_PROXY during process startup, so mutating
|
|
7
|
+
// process.env inside this process is too late for built-in fetch.
|
|
8
|
+
restartWithProxyEnvIfNeeded();
|
|
10
9
|
|
|
10
|
+
const { execute } = await import("@oclif/core");
|
|
11
11
|
await execute({ dir: import.meta.url });
|