mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-12 13:38:32 +00:00
* fix(@lucide/svelte): proper doc comments for svelte components * Update license text --------- Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
29 lines
627 B
TypeScript
29 lines
627 B
TypeScript
import fs from 'fs';
|
|
import pkg from '../package.json' with { type: 'json' };
|
|
|
|
const license = fs.readFileSync('LICENSE', 'utf-8');
|
|
|
|
export function getHTMLBanner() {
|
|
return `\
|
|
<!--
|
|
${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.
|
|
-->
|
|
|
|
`;
|
|
}
|
|
|
|
export function getJSBanner() {
|
|
return `\
|
|
/**
|
|
* @file
|
|
* @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.
|
|
*/
|
|
`;
|
|
}
|