UNPKG

schafott-cli

Version:

Scaffold CLI is a command line tool to generate scaffolds for your projects. It takes away the pain of creating the same files and folders over and over again for every new library project you start. Also it comes with ready-to-use configurations for Type

2 lines (1 loc) 818 B
export declare const rollupConfigLib = "// rollup.config.js\nimport typescript from '@rollup/plugin-typescript'\nimport terser from '@rollup/plugin-terser'\nimport pkg from './package.json' assert { type: 'json' }\n\nexport default {\n input: 'src/index.ts',\n output: [\n {\n file: pkg.module,\n format: 'es',\n sourcemap: true,\n },\n {\n file: pkg.main,\n\n format: 'cjs',\n sourcemap: true,\n },\n ],\n plugins: [\n typescript(),\n terser({\n format: {\n comments: (node, comment) => {\n const text = comment.value\n const type = comment.type\n if (type === 'comment2') {\n // multiline comment\n return /@preserve|@license|@cc_on/i.test(text)\n }\n },\n },\n }),\n ],\n}\n";