({ root, external }: CreateOptions)
| 11 | } |
| 12 | |
| 13 | export const createBuild = ({ root, external }: CreateOptions) => { |
| 14 | const build: BuildOptions = { |
| 15 | outDir: resolve(root, 'dist'), |
| 16 | emptyOutDir: true, |
| 17 | sourcemap: true, |
| 18 | lib: { |
| 19 | entry: resolve(root, 'src/index.ts'), |
| 20 | formats: ['es', 'cjs'], |
| 21 | fileName: (format) => `index${format === 'es' ? '.js' : '.cjs'}`, |
| 22 | }, |
| 23 | rollupOptions: { |
| 24 | external: [EXTERNAL_REPO_PKG, ...(external ?? [])], |
| 25 | }, |
| 26 | } |
| 27 | return build |
| 28 | } |
no outgoing calls
no test coverage detected