mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-14 13:58:21 +00:00
Make sure license ends up in SvelteKit bundle (#2728)
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import fs from 'fs';
|
||||
import pkg from '../package.json' with { type: 'json' };
|
||||
|
||||
const license = fs.readFileSync('LICENSE', 'utf-8')
|
||||
|
||||
export function getJSBanner() {
|
||||
return `/**
|
||||
* @license ${pkg.name} v${pkg.version} - ${pkg.license}
|
||||
*
|
||||
* This source code is licensed under the ${pkg.license} license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
* ${license.split('\n').join('\n * ')}
|
||||
*/
|
||||
`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user