Skip to content

Commit 6ffe17f

Browse files
author
Conventional Changelog Action
committed
chore(release): v1.0.44
1 parent 4aef61f commit 6ffe17f

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

CHANGELOG.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
## <small>1.0.44 (2021-10-26)</small>
2+
3+
* feat: git add multiple files at once ([4aef61f](https://github.com/simonecorsi/mawesome/commit/4aef61f))
4+
5+
6+
17
## <small>1.0.43 (2021-10-15)</small>
28

9+
* chore(release): v1.0.43 ([5e0ef82](https://github.com/simonecorsi/mawesome/commit/5e0ef82))
310
* feat: reduce json output size ([94635fe](https://github.com/simonecorsi/mawesome/commit/94635fe))
411

512

@@ -27,10 +34,3 @@
2734

2835

2936

30-
## <small>1.0.39 (2021-08-31)</small>
31-
32-
* chore(release): v1.0.39 ([f7a8341](https://github.com/simonecorsi/mawesome/commit/f7a8341))
33-
* build(deps): bump path-parse from 1.0.6 to 1.0.7 ([ef137b5](https://github.com/simonecorsi/mawesome/commit/ef137b5))
34-
35-
36-

index.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21291,7 +21291,16 @@ class Git {
2129121291
}));
2129221292
};
2129321293
this.config = (prop, value) => this.exec(`config ${prop} "${value}"`);
21294-
this.add = (file) => this.exec(`add ${file}`);
21294+
this.add = (file) => {
21295+
let str = '';
21296+
if (Array.isArray(file)) {
21297+
file.map((f) => (str += ` ${f}`));
21298+
}
21299+
else {
21300+
str = file;
21301+
}
21302+
return this.exec(`add ${str}`);
21303+
};
2129521304
this.commit = (message) => this.exec(`commit -m "${message}"`);
2129621305
this.pull = () => __awaiter(this, void 0, void 0, function* () {
2129721306
const args = ['pull'];
@@ -21515,10 +21524,8 @@ function pushNewFiles(files = []) {
2151521524
if (!files.length)
2151621525
return;
2151721526
yield git_1.default.pull();
21518-
yield Promise.all(files.map(({ filename, data }) => __awaiter(this, void 0, void 0, function* () {
21519-
yield fsp.writeFile(filename, data);
21520-
yield git_1.default.add(filename);
21521-
})));
21527+
yield Promise.all(files.map(({ filename, data }) => fsp.writeFile(filename, data)));
21528+
yield git_1.default.add(files.map(({ filename }) => filename));
2152221529
yield git_1.default.commit(`chore(updates): updated entries in files`);
2152321530
yield git_1.default.push();
2152421531
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mawesome",
3-
"version": "1.0.43",
3+
"version": "1.0.44",
44
"description": "Generate awesome list from user starred repositories",
55
"main": "index.js",
66
"author": "Simone Corsi<simonecorsi.dev@gmail.com>",

0 commit comments

Comments
 (0)