Skip to content

Commit 8d62688

Browse files
committed
Doc building tweaks
1 parent edff5a5 commit 8d62688

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

build-docs.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ async function build(path) {
100100
async 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,

0 commit comments

Comments
 (0)