UNPKG

@storm-stack/core

Version:

A build toolkit and runtime used by Storm Software in TypeScript applications

1 lines 2.23 kB
{"version":3,"sources":["../../src/lib/utilities/file-header.ts"],"names":["getBaseFileHeader","getFileHeader","directive","prettierIgnore","process","env","STORM_STACK_LOCAL","replaceAll"],"mappings":";;;;;AAkBO,SAASA,iBAAAA,GAAAA;AACd,EAAA,OAAO;;;;AAIT;AALgBA,wBAAAA,CAAAA,iBAAAA,EAAAA,mBAAAA,CAAAA;AAOT,SAASC,aAAAA,CACdC,SAAAA,GAA2B,EAAA,EAC3BC,cAAAA,GAAiB,KAAA,EAAK;AAEtB,EAAA,IAAID,SAAAA,IAAaE,OAAAA,CAAQC,GAAAA,CAAIC,iBAAAA,EAAmB;AAC9CJ,IAAAA,SAAAA,GAAYA,SAAAA,CAAUK,UAAAA,CACpB,oBAAA,EACA,2BAAA,CAAA;AAEJ,EAAA;AAEA,EAAA,OAAO,CAAA;;EAEPJ,cAAAA,GAAiB,CAAA,kBAAA,CAAA,GAAuB,EAAA,CAAA,EAAKD,SAAAA,GAAY;;EAAOA,SAAAA;IAAgB,IAAA;AAChFF,EAAAA,iBAAAA,EAAAA;;;AAGF;AAjBgBC,wBAAAA,CAAAA,aAAAA,EAAAA,eAAAA,CAAAA","file":"chunk-ONBGOAON.cjs","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Storm Stack\n\n This code was released as part of the Storm Stack project. Storm Stack\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/storm-stack.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/storm-stack\n Documentation: https://docs.stormsoftware.com/projects/storm-stack\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport function getBaseFileHeader(): string {\n return `\n// Generated with Storm Stack\n// Note: Do not edit this file manually - it will be overwritten automatically\n`;\n}\n\nexport function getFileHeader(\n directive: string | null = \"\",\n prettierIgnore = false\n): string {\n if (directive && process.env.STORM_STACK_LOCAL) {\n directive = directive.replaceAll(\n \"@storm-stack/types\",\n \"../../dist/packages/types\"\n );\n }\n\n return `/* eslint-disable */\n// biome-ignore lint: disable\n${prettierIgnore ? `// prettier-ignore` : \"\"}${directive ? `\\n\\n${directive}\\n` : \"\\n\"}\n${getBaseFileHeader()}\n\n`;\n}\n"]}