File tree 3 files changed +30
-1
lines changed
3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 40
40
"magic-error" : " ^0.0.0"
41
41
},
42
42
"devDependencies" : {
43
+ "@rollup/plugin-typescript" : " 3" ,
43
44
"@stoplight/eslint-config" : " ^1.2.0" ,
44
45
"@stoplight/scripts" : " 8.2.1" ,
45
46
"@stoplight/types" : " ^11.9.0" ,
Original file line number Diff line number Diff line change
1
+ import typescript from '@rollup/plugin-typescript' ;
2
+ import * as path from 'path' ;
3
+
4
+ const BASE_PATH = process . cwd ( ) ;
5
+
6
+ const plugins = [
7
+ typescript ( {
8
+ tsconfig : path . resolve ( BASE_PATH , 'tsconfig.build.json' ) ,
9
+ include : [ 'src/**/*.{ts,tsx}' ] ,
10
+ } ) ,
11
+ ] ;
12
+
13
+ export default [
14
+ {
15
+ input : path . resolve ( BASE_PATH , 'src/index.ts' ) ,
16
+ plugins,
17
+ output : [
18
+ {
19
+ file : path . resolve ( BASE_PATH , 'dist/index.cjs.js' ) ,
20
+ format : 'cjs' ,
21
+ } ,
22
+ {
23
+ file : path . resolve ( BASE_PATH , 'dist/index.es.js' ) ,
24
+ format : 'esm' ,
25
+ } ,
26
+ ] ,
27
+ } ,
28
+ ] ;
Original file line number Diff line number Diff line change 802
802
dependencies :
803
803
" @types/node" " >= 8"
804
804
805
- " @rollup/plugin-typescript@^3.0.0 " :
805
+ " @rollup/plugin-typescript@3 " , "@rollup/plugin-typescript@ ^3.0.0":
806
806
version "3.1.1"
807
807
resolved "https://registry.yarnpkg.com/@rollup/plugin-typescript/-/plugin-typescript-3.1.1.tgz#a39175a552ed82a3e424862e6bb403bf9da451ee"
808
808
integrity sha512-VPY1MbzIJT+obpav9Kns4MlipVJ1FuefwzO4s1uCVXAzVWya+bhhNauOmmqR/hy1zj7tePfh3t9iBN+HbIzyRA==
You can’t perform that action at this time.
0 commit comments