Skip to content

Commit a6747ce

Browse files
Deku-nattsuhybrist
authored andcommitted
refactor(@angular/build): fix LmdbCacheStore typo
1 parent 3bb9d0e commit a6747ce

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

packages/angular/build/src/private.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export { SassWorkerImplementation } from './tools/sass/sass-service';
3636

3737
export { SourceFileCache } from './tools/esbuild/angular/source-file-cache';
3838
export { Cache } from './tools/esbuild/cache';
39-
export { LmbdCacheStore } from './tools/esbuild/lmdb-cache-store';
39+
export { LmdbCacheStore } from './tools/esbuild/lmdb-cache-store';
4040
export { createJitResourceTransformer } from './tools/angular/transformers/jit-resource-transformer';
4141
export { JavaScriptTransformer } from './tools/esbuild/javascript-transformer';
4242

packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ export function createCompilerPlugin(
7373

7474
// Initialize a worker pool for JavaScript transformations.
7575
// Webcontainers currently do not support this persistent cache store.
76-
let cacheStore: import('../lmdb-cache-store').LmbdCacheStore | undefined;
76+
let cacheStore: import('../lmdb-cache-store').LmdbCacheStore | undefined;
7777
if (pluginOptions.sourceFileCache?.persistentCachePath && !process.versions.webcontainer) {
7878
try {
79-
const { LmbdCacheStore } = await import('../lmdb-cache-store');
80-
cacheStore = new LmbdCacheStore(
79+
const { LmdbCacheStore } = await import('../lmdb-cache-store');
80+
cacheStore = new LmdbCacheStore(
8181
path.join(pluginOptions.sourceFileCache.persistentCachePath, 'angular-compiler.db'),
8282
);
8383
} catch (e) {

packages/angular/build/src/tools/esbuild/i18n-inliner.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { createHash } from 'node:crypto';
1111
import { extname, join } from 'node:path';
1212
import { WorkerPool } from '../../utils/worker-pool';
1313
import { BuildOutputFile, BuildOutputFileType } from './bundler-context';
14-
import type { LmbdCacheStore } from './lmdb-cache-store';
14+
import type { LmdbCacheStore } from './lmdb-cache-store';
1515
import { createOutputFile } from './utils';
1616

1717
/**
@@ -39,7 +39,7 @@ export interface I18nInlinerOptions {
3939
export class I18nInliner {
4040
#cacheInitFailed = false;
4141
#workerPool: WorkerPool;
42-
#cache: LmbdCacheStore | undefined;
42+
#cache: LmdbCacheStore | undefined;
4343
readonly #localizeFiles: ReadonlyMap<string, BuildOutputFile>;
4444
readonly #unmodifiedFiles: Array<BuildOutputFile>;
4545

@@ -274,9 +274,9 @@ export class I18nInliner {
274274

275275
// Initialize a persistent cache for i18n transformations.
276276
try {
277-
const { LmbdCacheStore } = await import('./lmdb-cache-store');
277+
const { LmdbCacheStore } = await import('./lmdb-cache-store');
278278

279-
this.#cache = new LmbdCacheStore(join(persistentCachePath, 'angular-i18n.db'));
279+
this.#cache = new LmdbCacheStore(join(persistentCachePath, 'angular-i18n.db'));
280280
} catch {
281281
this.#cacheInitFailed = true;
282282

packages/angular/build/src/tools/esbuild/lmdb-cache-store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import { RootDatabase, open } from 'lmdb';
1010
import { Cache, CacheStore } from './cache';
1111

12-
export class LmbdCacheStore implements CacheStore<unknown> {
12+
export class LmdbCacheStore implements CacheStore<unknown> {
1313
readonly #cacheFileUrl;
1414
#db: RootDatabase | undefined;
1515

0 commit comments

Comments
 (0)