Skip to content

Commit f3170e7

Browse files
committed
fix(core): rename serverModule import to avoid conflict with CLI
1 parent a76e4a2 commit f3170e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/core/src/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ let fs = require('fs-extra'); // eslint-disable-line
2525
let ui_builder = require('./lib/ui_builder'); // eslint-disable-line
2626
let copier = require('./lib/copier'); // eslint-disable-line
2727
let pattern_exporter = new pe(); // eslint-disable-line
28-
let server = require('./lib/server'); // eslint-disable-line
28+
let serverModule = require('./lib/server'); // eslint-disable-line
2929

3030
//bootstrap update notifier
3131
updateNotifier({
@@ -54,7 +54,8 @@ const getVersion = function() {
5454
const patternlab_module = function(config) {
5555
const PatternLabClass = require('./lib/patternlab');
5656
const patternlab = new PatternLabClass(config);
57-
server = server(patternlab);
57+
const server = serverModule(patternlab);
58+
1;
5859

5960
const _api = {
6061
/**

0 commit comments

Comments
 (0)