Skip to content

Commit cc3f254

Browse files
committed
Fix type and doc build
1 parent 13d5db2 commit cc3f254

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

build-docs.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const { default: dts } = require('rollup-plugin-dts');
99
const { existsSync } = require('fs');
1010
const { writeFile, mkdir, cp } = require('fs/promises');
1111
const TypeDoc = require('typedoc');
12+
const { exit } = require('process');
1213

1314
class Package {
1415
constructor(filePath) {
@@ -113,6 +114,7 @@ async function rollupTypes(package) {
113114
});
114115
} catch (e) {
115116
console.error('ERROR', e);
117+
exit(1);
116118
}
117119
}
118120

@@ -130,6 +132,9 @@ function extract(package) {
130132
},
131133
compiler: {
132134
tsconfigFilePath: '<projectFolder>/tsconfig.json',
135+
overrideTsconfig: {
136+
include: [`tmp/rollup-types/**/*.ts`],
137+
},
133138
},
134139
projectFolder: __dirname,
135140
},
@@ -146,6 +151,7 @@ function extract(package) {
146151
});
147152
} catch (e) {
148153
console.log('ERROR', e);
154+
exit(1);
149155
}
150156
}
151157

packages/@ember/-internals/runtime/lib/system/core_object.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ interface CoreObject {
236236
_super(...args: any[]): any;
237237
}
238238
class CoreObject {
239-
[OWNER]?: Owner;
239+
// Technically this should be here but it causes issue for type declaration exports.
240+
// [OWNER]?: Owner;
240241

241242
constructor(owner?: Owner) {
242243
this[OWNER] = owner;

0 commit comments

Comments
 (0)