File tree Expand file tree Collapse file tree 1 file changed +28
-15
lines changed
Expand file tree Collapse file tree 1 file changed +28
-15
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,32 @@ import typescript from '@rollup/plugin-typescript';
22import { dts } from 'rollup-plugin-dts' ;
33
44/** @type {import('rollup').RollupOptions } */
5- export default {
6- input : './src/index.ts' ,
7- external : [ '@prisma/client' , 'chalk' , 'object-hash' ] ,
8- output : {
9- dir : 'dist' ,
10- exports : 'named' ,
11- preserveModules : true ,
12- sourcemap : true
5+ export default [
6+ {
7+ input : './src/index.ts' ,
8+ external : [ '@prisma/client' , 'chalk' , 'object-hash' ] ,
9+ output : {
10+ dir : 'dist' ,
11+ preserveModules : true ,
12+ exports : 'named' ,
13+ sourcemap : true
14+ } ,
15+ plugins : [ typescript ( ) ]
1316 } ,
14- plugins : [
15- typescript ( ) ,
16- dts ( {
17- tsconfig : './tsconfig.json'
18- } )
19- ]
20- } ;
17+ {
18+ input : './src/index.ts' ,
19+ output : {
20+ dir : 'dist' ,
21+ exports : 'named' ,
22+ preserveModules : true ,
23+ sourcemap : true
24+ } ,
25+ plugins : [
26+ dts ( ) ,
27+ // Use typescript only to resolve aliases
28+ typescript ( {
29+ noEmit : true
30+ } )
31+ ]
32+ }
33+ ] ;
You can’t perform that action at this time.
0 commit comments