Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions extensions/typeorm/src/typeorm.mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ import {
LifeCycleObserver,
MixinTarget,
} from '@loopback/core';
// `EventEmitter` required to allow tsdoc generation.
// see: https://github.com/loopbackio/loopback-next/issues/10205
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import type {EventEmitter} from 'events';
import debugFactory from 'debug';
import {Connection, ConnectionManager, ConnectionOptions} from 'typeorm';
import {TypeOrmConnectionBooter} from './';
Expand Down
28 changes: 25 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions packages/boot/src/mixins/boot.mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ import {
createBindingFromClass,
MixinTarget,
} from '@loopback/core';
// `EventEmitter` required to allow tsdoc generation.
// see: https://github.com/loopbackio/loopback-next/issues/10205
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import type {EventEmitter} from 'events';
import {BootComponent} from '../boot.component';
import {createComponentApplicationBooterBinding} from '../booters/component-application.booter';
import {Bootstrapper} from '../bootstrapper';
Expand Down
4 changes: 4 additions & 0 deletions packages/express/src/middleware-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import {
Context,
Provider,
} from '@loopback/core';
// `EventEmitter` required to allow tsdoc generation.
// see: https://github.com/loopbackio/loopback-next/issues/10205
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import type {EventEmitter} from 'events';
import {MiddlewareMixin} from './mixins/middleware.mixin';
import {
ExpressMiddlewareFactory,
Expand Down
6 changes: 5 additions & 1 deletion packages/express/src/mixins/middleware.mixin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
// Copyright IBM Corp. and LoopBack contributors 2020-2025. All Rights Reserved.
// Node module: @loopback/express
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
Expand All @@ -12,6 +12,10 @@ import {
MixinTarget,
Provider,
} from '@loopback/core';
// `EventEmitter` required to allow tsdoc generation.
// see: https://github.com/loopbackio/loopback-next/issues/10205
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import type {EventEmitter} from 'events';
import {
registerExpressMiddleware,
registerMiddleware,
Expand Down
4 changes: 4 additions & 0 deletions packages/repository/src/mixins/repository.mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import {
createBindingFromClass,
MixinTarget,
} from '@loopback/core';
// `EventEmitter` required to allow tsdoc generation.
// see: https://github.com/loopbackio/loopback-next/issues/10205
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import type {EventEmitter} from 'events';
import debugFactory from 'debug';
import {Class} from '../common-types';
import {SchemaMigrationOptions} from '../datasource';
Expand Down
4 changes: 4 additions & 0 deletions packages/service-proxy/src/mixins/service.mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import {
Provider,
ServiceOptions,
} from '@loopback/core';
// `EventEmitter` required to allow tsdoc generation.
// see: https://github.com/loopbackio/loopback-next/issues/10205
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import type {EventEmitter} from 'events';

/**
* Interface for classes with `new` operator.
Expand Down
11 changes: 0 additions & 11 deletions packages/tsdocs/src/monorepo-api-extractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,6 @@ export async function runExtractorForMonorepo(options: ExtractorOptions = {}) {
const errors: Record<string, unknown> = {};

for (const pkg of packages) {
// TODO: api-extractor failed to generate apidocs for the repos below.
// Excluding them for now
// https://github.com/loopbackio/loopback-next/issues/10205
if (
pkg.name === '@loopback/typeorm' ||
pkg.name === '@loopback/boot' ||
pkg.name === '@loopback/express' ||
pkg.name === '@loopback/repository' ||
pkg.name === '@loopback/service-proxy'
)
continue;
/* istanbul ignore if */
const err = invokeExtractorForPackage(pkg, options);
if (err != null) {
Expand Down
1 change: 1 addition & 0 deletions packages/tsdocs/src/update-api-md-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ async function addJekyllMetadata(

const docFile = path.join(apiDocsRoot, f);
let doc = await fs.readFile(docFile, 'utf-8');
doc = doc.replace(/<td>/g, '<td markdown="1">');

const pkgName = name.split('.')[0];
// Calculate the relative uri for the package
Expand Down
Loading