Fix macos-notification-state build issue (#2310)
* Fix macos-notification-state build issue * Fix windows build, a bit of cleanup
This commit is contained in:
15
scripts/patch_macos_notification_state.js
Normal file
15
scripts/patch_macos_notification_state.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
const jq = require('node-jq');
|
||||
const fs = require('fs');
|
||||
|
||||
jq.run(
|
||||
'.scripts.install = "node-gyp rebuild"',
|
||||
'./node_modules/macos-notification-state/package.json',
|
||||
).then((result) => {
|
||||
fs.writeFileSync(
|
||||
'./node_modules/macos-notification-state/package.json',
|
||||
result,
|
||||
);
|
||||
});
|
Reference in New Issue
Block a user