Skip to content

Commit e2cd335

Browse files
committed
chore: upgrade lerna to the latest version + fix eslint errors
1 parent 29e509e commit e2cd335

File tree

6 files changed

+6
-13
lines changed

6 files changed

+6
-13
lines changed

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"lerna": "3.2.1",
2+
"lerna": "3.10.8",
33
"packages": [
44
"packages/*"
55
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"lerna": "3.2.1",
3+
"lerna": "3.10.8",
44
"prettier": "^1.14.3",
55
"pretty-quick": "^1.8.0"
66
},

packages/core/src/lib/addPattern.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict';
22

3-
const _ = require('lodash');
4-
53
const logger = require('./log');
64

75
module.exports = function(pattern, patternlab) {

packages/core/src/lib/markModifiedPatterns.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ module.exports = function(lastModified, patternlab) {
2828
array.forEach(func);
2929
}
3030
};
31-
const modifiedOrNot = _.groupBy(
32-
patternlab.patterns,
33-
p =>
34-
changes_hunter.needsRebuild(lastModified, p) ? 'modified' : 'notModified'
31+
const modifiedOrNot = _.groupBy(patternlab.patterns, p =>
32+
changes_hunter.needsRebuild(lastModified, p) ? 'modified' : 'notModified'
3533
);
3634

3735
// For all unmodified patterns load their rendered template output

packages/core/src/lib/object_factory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ const Pattern = function(relPath, data, patternlab) {
7777
this.patternLink = this.patternSectionSubtype
7878
? `$${this.name}/index.html`
7979
: patternlab
80-
? this.getPatternLink(patternlab, 'rendered')
81-
: null;
80+
? this.getPatternLink(patternlab, 'rendered')
81+
: null;
8282

8383
// The canonical "key" by which this pattern is known. This is the callable
8484
// name of the pattern. UPDATE: this.key is now known as this.patternPartial

packages/core/src/lib/plugin_manager.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
const plugin_manager = function() {
44
const path = require('path');
55
const findModules = require('./findModules');
6-
7-
const _ = require('lodash');
8-
96
const logger = require('./log');
107

118
const pluginMatcher = /^plugin-(.*)$/;

0 commit comments

Comments
 (0)