generated from telekom/reuse-template
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
110 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* Function to conditionally load the global-agent/bootstrap module */ | ||
export async function initializeGlobalAgent() { | ||
if (process.env.GLOBAL_AGENT_HTTP_PROXY) { | ||
/* Dynamically import global-agent/bootstrap */ | ||
await import("global-agent/bootstrap"); | ||
console.log("Proxy enabled via global-agent."); | ||
} else { | ||
console.log("No proxy configuration found. Continuing without proxy."); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@echo off | ||
|
||
rem Build dist/index.js file | ||
pnpm run build:ncc | ||
|
||
rem Add shebang to the top of dist/index.js | ||
rem Note: Windows doesn't use shebangs, so this step is optional | ||
echo // #!/usr/bin/env node > temp | ||
type dist\index.js >> temp | ||
move /y temp dist\index.js | ||
|
||
rem Make dist/index.js executable (not needed on Windows) | ||
rem chmod +x dist/index.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pnpm pack | ||
for /f %%i in ('dir /b /s *.tgz') do set "package=%%i" | ||
npm install -g %package% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/*types/global-agent.d.ts */ | ||
declare module "global-agent/bootstrap" { | ||
const anyType: any; | ||
export = anyType; | ||
} |