submodule-version 1.1.2 → 1.1.4

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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -55,7 +55,7 @@ const getName = url => {
55
55
 
56
56
  const checkout = (url, version) => {
57
57
  const module = isGitUrl(url) ? `${config.dir}/${getName(url)}` : url;
58
- logger('checkout', module);
58
+ logger('Verify or update', module, 'version');
59
59
  try {
60
60
  execSync(`git -C ${module} checkout ${version} -q`);
61
61
  } catch {
@@ -116,8 +116,8 @@ const validate = (sv, name) => {
116
116
  const errors = computeErrors();
117
117
  if (errors) abort(errors);
118
118
 
119
- Object.entries(graph).forEach(([url, versions]) => {
120
- checkout(`${config.dir}/${url}`, versions[0]);
119
+ Object.entries(graph).forEach(([moduleName, versions]) => {
120
+ checkout(`${config.dir}/${moduleName}`, Object.keys(versions)[0]);
121
121
  });
122
122
 
123
123
  logger('Everything is up to date.');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "submodule-version",
3
3
  "description": "Git <S>ubmodule <V>ersioning tool",
4
- "version": "1.1.2",
4
+ "version": "1.1.4",
5
5
  "bin": {
6
6
  "sv": "index.js"
7
7
  },