aboutsummaryrefslogtreecommitdiffstats
path: root/config/build-common.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/build-common.js')
-rw-r--r--config/build-common.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/config/build-common.js b/config/build-common.js
new file mode 100644
index 0000000..aea2335
--- /dev/null
+++ b/config/build-common.js
@@ -0,0 +1,33 @@
1// @ts-check
2
3// `resolveJsonModule` is disabled for this package, but vite will load the json nevertheless.
4// @ts-ignore
5const { chrome: chromeVersion, node: nodeVersion } = require('../.electron-vendors.cache.json');
6
7/** @type {string} */
8module.exports.banner = `/*!
9 * Copyright (C) 2021-2022 Sophie contributors
10 *
11 * This file is part of Sophie.
12 *
13 * Sophie is free software: you can redistribute it and/or modify
14 * it under the terms of the GNU Affero General Public License as
15 * published by the Free Software Foundation, version 3.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU Affero General Public License for more details.
21 *
22 * You should have received a copy of the GNU Affero General Public License
23 * along with this program. If not, see <https://www.gnu.org/licenses/>.
24 *
25 * SPDX-License-Identifier: AGPL-3.0-only
26 */
27`;
28
29/** @type {string} */
30module.exports.chrome = `chrome${chromeVersion}`;
31
32/** @type {string} */
33module.exports.node = `node${nodeVersion}`;