Skip to content

Commit d71ea48

Browse files
committed
fix(postinstall): use an absolute module path to core in postinstall scripts
1 parent b0978be commit d71ea48

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

packages/mongodb-memory-server-global-3.6/postinstall.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ function doesModuleExist(name) {
88
}
99
}
1010

11-
const modulePath = '../mongodb-memory-server-core/lib/util/postinstallHelper';
11+
const modulePath = 'mongodb-memory-server-core/lib/util/postinstallHelper';
1212

1313
if (!doesModuleExist(modulePath)) {
1414
console.log('Could not find file "postinstall" in core package!');
15+
1516
return;
1617
}
1718

packages/mongodb-memory-server-global-4.2/postinstall.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ function doesModuleExist(name) {
88
}
99
}
1010

11-
const modulePath = '../mongodb-memory-server-core/lib/util/postinstallHelper';
11+
const modulePath = 'mongodb-memory-server-core/lib/util/postinstallHelper';
1212

1313
if (!doesModuleExist(modulePath)) {
1414
console.log('Could not find file "postinstall" in core package!');
15+
1516
return;
1617
}
1718

packages/mongodb-memory-server-global-4.4/postinstall.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ function doesModuleExist(name) {
88
}
99
}
1010

11-
const modulePath = '../mongodb-memory-server-core/lib/util/postinstallHelper';
11+
const modulePath = 'mongodb-memory-server-core/lib/util/postinstallHelper';
1212

1313
if (!doesModuleExist(modulePath)) {
1414
console.log('Could not find file "postinstall" in core package!');
15+
1516
return;
1617
}
1718

packages/mongodb-memory-server-global/postinstall.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ function doesModuleExist(name) {
88
}
99
}
1010

11-
const modulePath = '../mongodb-memory-server-core/lib/util/postinstallHelper';
11+
const modulePath = 'mongodb-memory-server-core/lib/util/postinstallHelper';
1212

1313
if (!doesModuleExist(modulePath)) {
1414
console.log('Could not find file "postinstall" in core package!');
15+
1516
return;
1617
}
1718

packages/mongodb-memory-server/postinstall.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ function doesModuleExist(name) {
1818
}
1919
}
2020

21-
const modulePath = '../mongodb-memory-server-core/lib/util/postinstallHelper';
21+
const modulePath = 'mongodb-memory-server-core/lib/util/postinstallHelper';
2222

2323
if (!doesModuleExist(modulePath)) {
2424
console.log('Could not find file "postinstall" in core package!');
25+
2526
return;
2627
}
2728

0 commit comments

Comments
 (0)