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:
Devin Binnie
2022-10-24 10:43:45 -04:00
committed by GitHub
parent 33da0afce5
commit 83b6c64cf3
7 changed files with 1861 additions and 50 deletions

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