Skip to content

Commit 38dafee

Browse files
committed
Added bump version
1 parent 2e349be commit 38dafee

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const path = require('path');
22
const version = process.argv[2].trim();
33

4-
const { templates, updateNBVersionInJsonFile, isUniversalTemplate, executeShellCommand } = require('./utils');
4+
const { templates, updateNBVersionInJsonFile, isUniversalTemplate, bumpVersion, executeShellCommand } = require('./utils');
55

66

77
updateTemplates();
@@ -18,14 +18,14 @@ function updateTemplates() {
1818
templatePaths.forEach(templatePath => {
1919
const command = `cd ${templatePath} && yarn upgrade native-base@${version}`;
2020
executeShellCommand(command, `${name} nb version changed`);
21-
// bumpVersion(repoPath, name);
21+
bumpVersion(repoPath, name);
2222
});
2323
} else {
2424
//updates cra and universal templates
2525
updateNestedTemplates(templatePaths, name, version).then(() => {
2626
if (isUniversalTemplate(name))
2727
executeShellCommand(`cd ${repoPath} && yarn`, `yarn install done in ${name}`)
28-
// bumpVersion(repoPath, name);
28+
bumpVersion(repoPath, name);
2929
});
3030
}
3131
});

utils.js

-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ var self = {
120120
try {
121121
const fileData = await fs.readFile(filePath, "utf-8");
122122
const data = await JSON.parse(fileData);
123-
console.log(data);
124123
if (!self.isUniversalTemplate(templateName))
125124
data.package.dependencies['native-base'] = version;
126125
else

0 commit comments

Comments
 (0)