Files
mattermostest/scripts/patch_macos_notification_state.js
Devin Binnie 83b6c64cf3 Fix macos-notification-state build issue (#2310)
* Fix macos-notification-state build issue

* Fix windows build, a bit of cleanup
2022-10-24 10:43:45 -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,
);
});