generated from AthennaIO/Template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from AthennaIO/develop
feat(exec): add Exec.install() method
- Loading branch information
Showing
9 changed files
with
327 additions
and
65 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@athenna/common", | ||
"version": "4.34.0", | ||
"version": "4.35.0", | ||
"description": "The Athenna common helpers to use in any Node.js ESM project.", | ||
"license": "MIT", | ||
"author": "João Lenon <[email protected]>", | ||
|
@@ -62,7 +62,7 @@ | |
"collect.js": "^4.36.1", | ||
"csv-parser": "^3.0.0", | ||
"execa": "^8.0.1", | ||
"fastify": "^4.26.0", | ||
"fastify": "^4.26.1", | ||
"got": "^12.6.1", | ||
"http-status-codes": "^2.2.0", | ||
"is-wsl": "^2.2.0", | ||
|
@@ -82,7 +82,7 @@ | |
"youch-terminal": "^2.2.2" | ||
}, | ||
"devDependencies": { | ||
"@athenna/test": "^4.18.0", | ||
"@athenna/test": "^4.22.0", | ||
"@athenna/tsconfig": "^4.12.0", | ||
"@types/bytes": "^3.1.1", | ||
"@types/callsite": "^1.0.31", | ||
|
This file was deleted.
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
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,66 @@ | ||
/** | ||
* @athenna/common | ||
* | ||
* (c) João Lenon <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
export type InstallPackageOptions = { | ||
/** | ||
* Define the path where the install command should ran. | ||
* | ||
* @default Path.pwd() | ||
*/ | ||
cwd?: string | ||
|
||
/** | ||
* Define if the libraries should be installed as | ||
* devDependencies or not. | ||
* | ||
* @default false | ||
*/ | ||
dev?: boolean | ||
|
||
/** | ||
* Add additional arguments for the registry CLI you | ||
* are using to install the libraries. | ||
* | ||
* @default [] | ||
*/ | ||
args?: string[] | ||
|
||
/** | ||
* Define if the registry should use cached libraries when | ||
* installing it. | ||
* | ||
* @default false | ||
*/ | ||
cached?: boolean | ||
|
||
/** | ||
* Define if the libraries installation should display the | ||
* logs from the registry or not. | ||
* | ||
* @default true | ||
*/ | ||
silent?: boolean | ||
|
||
/** | ||
* Throw errors if something goes wrong when trying to | ||
* install the libraries. | ||
* | ||
* @default true | ||
*/ | ||
reject?: boolean | ||
|
||
/** | ||
* Define the registry that will be used to install the | ||
* dependencies. Tested only with `npm`, but | ||
* you can try to use whatever you like. | ||
* | ||
* @default "npm" | ||
*/ | ||
registry?: string | ||
} |
Oops, something went wrong.