Skip to content

Commit cc12f16

Browse files
committed
Update browserslist on course build
1 parent ea43a01 commit cc12f16

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

plugins/output/adapt/publish.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,13 @@ function publishCourse(courseId, mode, request, response, next) {
155155
callback(error);
156156
});
157157
},
158+
function(callback) {
159+
if (!isRebuildRequired) {
160+
return callback();
161+
}
162+
logger.log('info', 'Attempting to update browserslist');
163+
exec('npx browserslist --update-db', { cwd: FRAMEWORK_ROOT_FOLDER }, e => callback(e));
164+
},
158165
function(callback) {
159166
if (!isRebuildRequired) {
160167
resultObject.success = true;

0 commit comments

Comments
 (0)