mattermost-desktop/scripts/patch_macos_notification_state.js
Mattermost Build 27a64cce1c
Fix macos-notification-state build issue (#2310) (#2313)
* Fix macos-notification-state build issue

* Fix windows build, a bit of cleanup

(cherry picked from commit 83b6c64cf3)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-10-24 10:43:56 -04:00

16 lines
418 B
JavaScript

// 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,
);
});