From 0b5292118119f338da3bc7166987a6d80d8c009e Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sat, 13 Sep 2025 11:07:27 +0200 Subject: [PATCH] build: put licenses in separate file --- scripts/client.rollup.config.js | 9 ++++----- scripts/launcher.rollup.config.js | 9 ++++----- scripts/license-header.txt | 7 ------- scripts/server.rollup.config.js | 9 ++++----- 4 files changed, 12 insertions(+), 22 deletions(-) delete mode 100644 scripts/license-header.txt diff --git a/scripts/client.rollup.config.js b/scripts/client.rollup.config.js index 90300305..81cc45b4 100644 --- a/scripts/client.rollup.config.js +++ b/scripts/client.rollup.config.js @@ -72,11 +72,10 @@ module.exports = { } }, watch ? {} :license({ - banner: { - content: { - file: path.join(__dirname, 'license-header.txt'), - }, - } + thirdParty: { + includeSelf: true, + output: 'app/client/LICENSES', + }, }), watch ? {} : copy({ targets: [ diff --git a/scripts/launcher.rollup.config.js b/scripts/launcher.rollup.config.js index e5aba7d1..4c093eb7 100644 --- a/scripts/launcher.rollup.config.js +++ b/scripts/launcher.rollup.config.js @@ -32,11 +32,10 @@ module.exports = { nodeResolve(), terser(), license({ - banner: { - content: { - file: path.join(__dirname, 'license-header.txt'), - }, - } + thirdParty: { + includeSelf: true, + output: 'app/launcher/LICENSES', + }, }), copy({ targets: [ diff --git a/scripts/license-header.txt b/scripts/license-header.txt deleted file mode 100644 index f699fcdd..00000000 --- a/scripts/license-header.txt +++ /dev/null @@ -1,7 +0,0 @@ -Bundle of <%= pkg.name %> -Generated: <%= moment().format('YYYY-MM-DD') %> -Version: <%= pkg.version %> -Dependencies: -<% _.forEach(dependencies, function (dependency) { %> - <%= dependency.text() %> -<% }) %> diff --git a/scripts/server.rollup.config.js b/scripts/server.rollup.config.js index 859a50c1..84d77869 100644 --- a/scripts/server.rollup.config.js +++ b/scripts/server.rollup.config.js @@ -37,11 +37,10 @@ module.exports = { preferBuiltins: true }), license({ - banner: { - content: { - file: path.join(__dirname, 'license-header.txt'), - }, - } + thirdParty: { + includeSelf: true, + output: 'app/server/LICENSES', + }, }), terser({ sourceMap: true,