@wmfs/lerna-sync 1.13.0 → 1.15.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,32 @@
1
+ # [1.15.0](https://github.com/wmfs/lerna-sync/compare/v1.14.0...v1.15.0) (2022-11-02)
2
+
3
+
4
+ ### 🛠 Builds
5
+
6
+ * **deps-dev:** update dependency chai to v4.3.5 ([d18bbf0](https://github.com/wmfs/lerna-sync/commit/d18bbf01192c6c2dd3ad38ba77ac0fac948f4671))
7
+ * **deps-dev:** update dependency chai to v4.3.6 ([3ac172c](https://github.com/wmfs/lerna-sync/commit/3ac172c9ec4a69c09667e661cd95d6f80a5cbaef))
8
+ * **deps-dev:** update dependency mocha to v10 ([8f07f68](https://github.com/wmfs/lerna-sync/commit/8f07f685397d8d6ad83b2bcf7da9924d91fcbbb4))
9
+ * **deps-dev:** update dependency mocha to v10.1.0 ([ab2f08a](https://github.com/wmfs/lerna-sync/commit/ab2f08a9891b1dcb2119d456ea93fe3fd0c5a7e6))
10
+ * **deps-dev:** update dependency mocha to v9.2.1 ([47d99e2](https://github.com/wmfs/lerna-sync/commit/47d99e2cf3d47de46f3abfb1e2617b7187c31de4))
11
+ * **deps-dev:** update dependency mocha to v9.2.2 ([a26b2bd](https://github.com/wmfs/lerna-sync/commit/a26b2bd13c52a2c2266b7965ddd30237b9513f92))
12
+ * **deps-dev:** update dependency semantic-release to v19.0.3 ([ce9c027](https://github.com/wmfs/lerna-sync/commit/ce9c027f5165bc4135850872f16abdea4c7e75aa))
13
+ * **deps-dev:** update dependency semantic-release to v19.0.5 ([99d8bee](https://github.com/wmfs/lerna-sync/commit/99d8bee31fc69913317d1e386244ce62e0cdeab7))
14
+ * **deps-dev:** update dependency standard to v17 ([6714d36](https://github.com/wmfs/lerna-sync/commit/6714d366f06754a25139f37733a98762647bb411))
15
+ * **deps:** update dependency [@octokit](https://github.com/octokit)/graphql to v5 ([2b67de2](https://github.com/wmfs/lerna-sync/commit/2b67de25a1afa64fe8fc4ef29e8e09e524e63e74))
16
+
17
+
18
+ ### 💎 Styles
19
+
20
+ * standard --fix ([e5cd021](https://github.com/wmfs/lerna-sync/commit/e5cd021087d56c31fcb8b357386f833af88d4cb2))
21
+ * standard --fix ([1a5841f](https://github.com/wmfs/lerna-sync/commit/1a5841fd606a7d41c47a9bbcbcecdffa4a98c6b3))
22
+
23
+ # [1.14.0](https://github.com/wmfs/lerna-sync/compare/v1.13.0...v1.14.0) (2022-01-25)
24
+
25
+
26
+ ### 🛠 Builds
27
+
28
+ * **deps:** update dependency jsonfile to v6.1.0 ([256e70a](https://github.com/wmfs/lerna-sync/commit/256e70a792fc13f74ce334c76fe40fabeff73675))
29
+
1
30
  # [1.13.0](https://github.com/wmfs/lerna-sync/compare/v1.12.0...v1.13.0) (2022-01-25)
2
31
 
3
32
 
package/lib/index.js CHANGED
@@ -27,7 +27,7 @@ class LernaSync {
27
27
  const result = await graphql(
28
28
  query,
29
29
  {
30
- afterValue: afterValue,
30
+ afterValue,
31
31
  queryString: `org:${this.options.gitHubOrgName}`,
32
32
  headers: {
33
33
  authorization: `token ${this.options.gitHubToken}`
@@ -184,7 +184,7 @@ class LernaSync {
184
184
  type: 'CLONE',
185
185
  config: {
186
186
  packageName: rep.gitHubLernaPackageName,
187
- repoName: repoName
187
+ repoName
188
188
  }
189
189
  }
190
190
  )
@@ -197,7 +197,7 @@ class LernaSync {
197
197
  type: 'PULL',
198
198
  config: {
199
199
  packageName: rep.localLernaPackageName,
200
- repoName: repoName
200
+ repoName
201
201
  }
202
202
  }
203
203
  )
@@ -335,6 +335,7 @@ class LernaSync {
335
335
  .map(({ repoName, pkgName }) => {
336
336
  const destPath = path.join(this.options.monorepoPath, pkgName, repoName)
337
337
  const gitHeadPath = path.join(destPath, '.git', 'HEAD')
338
+
338
339
  if (fs.existsSync(destPath)) {
339
340
  if (fs.existsSync(gitHeadPath)) {
340
341
  const currentBranch = fs.readFileSync(gitHeadPath, 'utf-8').trim().split('refs/heads/')[1]
@@ -344,6 +345,8 @@ class LernaSync {
344
345
  }
345
346
  }
346
347
  }
348
+
349
+ return null
347
350
  })
348
351
  .filter(p => p)
349
352
 
@@ -14,9 +14,9 @@ module.exports = class Messages {
14
14
  }
15
15
  this.messages[domain].push(
16
16
  {
17
- repoName: repoName,
18
- level: level,
19
- err: err
17
+ repoName,
18
+ level,
19
+ err
20
20
  }
21
21
  )
22
22
  if (level === 'ERROR') {
package/lib/utils/run.js CHANGED
@@ -2,7 +2,7 @@ const { exec } = require('child_process')
2
2
 
3
3
  module.exports = function run (cmd, cwd = null) {
4
4
  return new Promise((resolve, reject) => {
5
- exec(cmd, { cwd: cwd }, (err, stdout, stderr) => {
5
+ exec(cmd, { cwd }, (err, stdout, stderr) => {
6
6
  // console.log(stdout)
7
7
  if (err) reject(err)
8
8
  else resolve(stdout)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wmfs/lerna-sync",
3
- "version": "1.13.0",
3
+ "version": "1.15.0",
4
4
  "description": "A package to synchronize distributed GitHub repos inside a Lerna monorepo.",
5
5
  "author": "West Midlands Fire Service",
6
6
  "homepage": "https://github.com/wmfs/lerna-sync#readme",
@@ -23,24 +23,24 @@
23
23
  "lib": "lib"
24
24
  },
25
25
  "dependencies": {
26
- "@octokit/graphql": "4.8.0",
26
+ "@octokit/graphql": "5.0.4",
27
27
  "chalk": "4.1.2",
28
28
  "dottie": "2.0.2",
29
29
  "git-repo-info": "2.1.1",
30
30
  "glob": "7.2.0",
31
31
  "humanize-duration": "3.27.1",
32
- "jsonfile": "6.0.1",
32
+ "jsonfile": "6.1.0",
33
33
  "lodash": "4.17.21"
34
34
  },
35
35
  "devDependencies": {
36
- "chai": "4.3.4",
36
+ "chai": "4.3.6",
37
37
  "codecov": "3.8.3",
38
38
  "conventional-changelog-metahub": "4.0.1",
39
39
  "cz-conventional-changelog": "3.3.0",
40
- "mocha": "9.2.0",
40
+ "mocha": "10.1.0",
41
41
  "nyc": "15.1.0",
42
- "semantic-release": "19.0.2",
43
- "standard": "14.3.4",
42
+ "semantic-release": "19.0.5",
43
+ "standard": "17.0.0",
44
44
  "@semantic-release/changelog": "6.0.1",
45
45
  "@semantic-release/git": "10.0.1"
46
46
  },