require the use of node prefix on native imports
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -13,13 +13,13 @@ import { IndexableResultSet } from '@backstage/plugin-search-common';
|
||||
import { LoggerService } from '@backstage/backend-plugin-api';
|
||||
import { default as lunr_2 } from 'lunr';
|
||||
import { Permission } from '@backstage/plugin-permission-common';
|
||||
import { Readable } from 'stream';
|
||||
import { Readable } from 'node:stream';
|
||||
import { SchedulerServiceTaskFunction } from '@backstage/backend-plugin-api';
|
||||
import { SchedulerServiceTaskRunner } from '@backstage/backend-plugin-api';
|
||||
import { SearchQuery } from '@backstage/plugin-search-common';
|
||||
import { Transform } from 'stream';
|
||||
import { Transform } from 'node:stream';
|
||||
import { UrlReaderService } from '@backstage/backend-plugin-api';
|
||||
import { Writable } from 'stream';
|
||||
import { Writable } from 'node:stream';
|
||||
|
||||
// @public
|
||||
export abstract class BatchSearchEngineIndexer extends Writable {
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
DocumentCollatorFactory,
|
||||
DocumentDecoratorFactory,
|
||||
} from '@backstage/plugin-search-common';
|
||||
import { Readable, Transform } from 'stream';
|
||||
import { Readable, Transform } from 'node:stream';
|
||||
import { IndexBuilder } from './IndexBuilder';
|
||||
import { LunrSearchEngine, SearchEngine } from './index';
|
||||
import { mockServices } from '@backstage/backend-test-utils';
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
DocumentDecoratorFactory,
|
||||
DocumentTypeInfo,
|
||||
} from '@backstage/plugin-search-common';
|
||||
import { pipeline, Transform } from 'stream';
|
||||
import { pipeline, Transform } from 'node:stream';
|
||||
import { Scheduler } from './Scheduler';
|
||||
import {
|
||||
IndexBuilderOptions,
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { ConfigReader } from '@backstage/config';
|
||||
import { Readable } from 'stream';
|
||||
import { Readable } from 'node:stream';
|
||||
import { NewlineDelimitedJsonCollatorFactory } from './NewlineDelimitedJsonCollatorFactory';
|
||||
import { TestPipeline } from '../test-utils';
|
||||
import { mockServices } from '@backstage/backend-test-utils';
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
import { Config } from '@backstage/config';
|
||||
import { DocumentCollatorFactory } from '@backstage/plugin-search-common';
|
||||
import { Permission } from '@backstage/plugin-permission-common';
|
||||
import { Readable } from 'stream';
|
||||
import { Readable } from 'node:stream';
|
||||
import { parse as parseNdjson } from 'ndjson';
|
||||
import { LoggerService, UrlReaderService } from '@backstage/backend-plugin-api';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
import { assertError } from '@backstage/errors';
|
||||
import { IndexableDocument } from '@backstage/plugin-search-common';
|
||||
import { Writable } from 'stream';
|
||||
import { Writable } from 'node:stream';
|
||||
|
||||
/**
|
||||
* Options for {@link BatchSearchEngineIndexer}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
import { assertError } from '@backstage/errors';
|
||||
import { IndexableDocument } from '@backstage/plugin-search-common';
|
||||
import { Transform } from 'stream';
|
||||
import { Transform } from 'node:stream';
|
||||
|
||||
/**
|
||||
* Base class encapsulating simple async transformations. Useful as a base
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
import { IndexableDocument } from '@backstage/plugin-search-common';
|
||||
import { pipeline, Readable, Transform, Writable } from 'stream';
|
||||
import { pipeline, Readable, Transform, Writable } from 'node:stream';
|
||||
|
||||
/**
|
||||
* Object resolved after a test pipeline is executed.
|
||||
|
||||
@@ -25,7 +25,7 @@ import {
|
||||
IndexableResultSet,
|
||||
SearchQuery,
|
||||
} from '@backstage/plugin-search-common';
|
||||
import { Writable } from 'stream';
|
||||
import { Writable } from 'node:stream';
|
||||
|
||||
/**
|
||||
* Options required to instantiate the index builder.
|
||||
|
||||
Reference in New Issue
Block a user