pm-auto 1.0.1 → 1.0.2
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/README.md +4 -5
- package/package.json +8 -2
- package/src/display.ts +2 -1
package/README.md
CHANGED
|
@@ -418,12 +418,11 @@ Found a bug? Have a suggestion?
|
|
|
418
418
|
## Contributors
|
|
419
419
|
|
|
420
420
|
Thank you to all the contributors who have helped make PM-Auto exist! 🎉
|
|
421
|
-
Wait I'm the only one 😅🤦
|
|
422
|
-
|
|
423
421
|
<!-- ALL-CONTRIBUTORS-LIST:START -->
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
422
|
+
[Elliot Otoijagha](https://github.com/Ellydev0)
|
|
423
|
+
|
|
424
|
+
[Triumph Aidenojie](https://github.com/WebsTechne)
|
|
425
|
+
|
|
427
426
|
|
|
428
427
|
Want to see your name here? Check out our [Contributing](#contributing) section!
|
|
429
428
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pm-auto",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A CLI tool to define and install your tech stack presets with one command.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pm-auto",
|
|
@@ -9,7 +9,13 @@
|
|
|
9
9
|
"auto"
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"author": "Elliot Otoijagha
|
|
12
|
+
"author": "Elliot Otoijagha",
|
|
13
|
+
"contributors": [
|
|
14
|
+
{
|
|
15
|
+
"name": "Triumph Aidenojie",
|
|
16
|
+
"email": "triumphaidenojie08@gmail.com"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
13
19
|
"type": "module",
|
|
14
20
|
"main": "dist/index.js",
|
|
15
21
|
"bin": {
|
package/src/display.ts
CHANGED
|
@@ -3,7 +3,8 @@ import chalk from "chalk";
|
|
|
3
3
|
|
|
4
4
|
type DisplayType = "error" | "success" | "warning" | "info" | "loading" | "";
|
|
5
5
|
|
|
6
|
-
export const stopSpinner = (
|
|
6
|
+
export const stopSpinner = (text: string, code: number = 0) => {
|
|
7
|
+
const s = spinner();
|
|
7
8
|
if (!s || typeof s.stop !== "function") return;
|
|
8
9
|
s.stop(code === 0 ? chalk.green(text) : chalk.red(text));
|
|
9
10
|
};
|