lbundle
Version:
Small zero-configuration bundler build on top of Rollup.js and SWC for NPM libraries
1 lines • 1.77 kB
Source Map (JSON)
{"version":3,"file":"get-rollup-typescript-config.mjs","sources":["../../src/helpers/get-rollup-typescript-config.ts"],"sourcesContent":["import path from 'path';\nexport const getRollupTypescriptConfig = ({ options, pkg, resolvedSource, tsconfigPath, }) => {\n const declarationOptions = pkg.types\n ? {\n emitDeclarationOnly: true,\n declaration: true,\n declarationDir: path.resolve(options.cwd, path.dirname(pkg.types)),\n }\n : {};\n return {\n tsconfig: tsconfigPath ?? false,\n rootDir: resolvedSource ? path.dirname(resolvedSource) : undefined,\n sourceMap: false,\n exclude: [\n '**/__tests__/**',\n '**/*.test.*',\n '**/*.spec.*',\n '**/*.stories.*',\n '**/*.mock.*',\n ],\n ...declarationOptions,\n };\n};\n"],"names":["getRollupTypescriptConfig","options","pkg","resolvedSource","tsconfigPath","declarationOptions","types","emitDeclarationOnly","declaration","declarationDir","path","resolve","cwd","dirname","tsconfig","rootDir","undefined","sourceMap","exclude"],"mappings":";;MACaA,yBAA4B,GAAA,CAAA,KAAA,GAAA;AAAC,IAAA,IAAA,EAAEC,OAAO,EAAEC,GAAG,EAAEC,cAAc,EAAEC,YAAY,EAAG,GAAA,KAAA;IACrF,MAAMC,kBAAAA,GAAqBH,GAAII,CAAAA,KAAK,GAC9B;QACEC,mBAAqB,EAAA,IAAA;QACrBC,WAAa,EAAA,IAAA;QACbC,cAAgBC,EAAAA,IAAAA,CAAKC,OAAO,CAACV,OAAQW,CAAAA,GAAG,EAAEF,IAAKG,CAAAA,OAAO,CAACX,GAAAA,CAAII,KAAK,CAAA;AACpE,KAAA,GACE,EAAC;IACP,OAAO;AACHQ,QAAAA,QAAAA,EAAUV,YAAgB,IAAA,KAAA;AAC1BW,QAAAA,OAAAA,EAASZ,cAAiBO,GAAAA,IAAAA,CAAKG,OAAO,CAACV,cAAkBa,CAAAA,GAAAA,SAAAA;QACzDC,SAAW,EAAA,KAAA;QACXC,OAAS,EAAA;AACL,YAAA,iBAAA;AACA,YAAA,aAAA;AACA,YAAA,aAAA;AACA,YAAA,gBAAA;AACA,YAAA;AACH,SAAA;AACD,QAAA,GAAGb;AACP,KAAA;AACJ;;;;"}