UNPKG

lbundle

Version:

Small zero-configuration bundler build on top of Rollup.js and SWC for NPM libraries

10 lines (7 loc) 298 B
import path from 'path'; const isTs = (pkg)=>{ if (pkg.source && path.extname(pkg.source).includes('ts')) return true; return !!pkg.dependencies?.typescript || !!pkg.devDependencies?.typescript || !!pkg.peerDependencies?.typescript; }; export { isTs }; //# sourceMappingURL=is-ts.mjs.map