File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,6 @@ async function build(path) {
100100async function rollupTypes ( package ) {
101101 console . log ( 'TYPES' , package . absolutePath ) ;
102102
103- let parts = package . outPath . dir . split ( '/' ) ;
104- let relativeTemp = Array ( parts . length ) . fill ( '..' ) . join ( '/' ) ;
105-
106103 try {
107104 const bundle = await rollup ( {
108105 input : path . format ( {
@@ -113,11 +110,12 @@ async function rollupTypes(package) {
113110 plugins : [
114111 dts ( {
115112 compilerOptions : {
116- baseUrl : `tmp/build-types/${ package . outPath . dir } ` ,
113+ // Unless explicit, we don't want anything other than relative imports to be picked up
114+ baseUrl : null ,
117115 incremental : true ,
118116 paths : {
119- [ ` ${ package . outPath . dir } /*` ] : [ '*' ] ,
120- '@ember/-internals/*' : [ `${ relativeTemp } /@ember/-internals/*` ] ,
117+ // We want to inline these types
118+ '@ember/-internals/*' : [ `${ __dirname } /tmp/build-types /@ember/-internals/*` ] ,
121119 } ,
122120 } ,
123121 } ) ,
@@ -151,7 +149,8 @@ function extract(package) {
151149 compiler : {
152150 tsconfigFilePath : '<projectFolder>/tsconfig.json' ,
153151 overrideTsconfig : {
154- include : [ `tmp/rollup-types/**/*.ts` ] ,
152+ include : [ ] ,
153+ files : [ package . absolutePath ] ,
155154 } ,
156155 } ,
157156 projectFolder : __dirname ,
You can’t perform that action at this time.
0 commit comments