mirror of
https://github.com/immich-app/immich.git
synced 2026-09-30 13:23:21 +08:00
feat: NestJS 12 and ESM (#31237)
This commit is contained in:
@@ -21,8 +21,8 @@ import micromatch from 'micromatch';
|
||||
import { Stats, createReadStream, existsSync } from 'node:fs';
|
||||
import { stat, unlink } from 'node:fs/promises';
|
||||
import path, { basename } from 'node:path';
|
||||
import { Queue } from 'src/queue';
|
||||
import { BaseOptions, Batcher, authenticate, crawl, requirePermissions, s, sha1 } from 'src/utils';
|
||||
import { Queue } from 'src/queue.js';
|
||||
import { BaseOptions, Batcher, authenticate, crawl, requirePermissions, s, sha1 } from 'src/utils.js';
|
||||
|
||||
const UPLOAD_WATCH_BATCH_SIZE = 100;
|
||||
const UPLOAD_WATCH_DEBOUNCE_TIME_MS = 10_000;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { getAssetStatistics, getMyUser, getServerVersion, getSupportedMediaTypes, Permission } from '@immich/sdk';
|
||||
import { authenticate, BaseOptions, requirePermissions } from 'src/utils';
|
||||
import { authenticate, BaseOptions, requirePermissions } from 'src/utils.js';
|
||||
|
||||
export const serverInfo = async (options: BaseOptions) => {
|
||||
const { url } = await authenticate(options);
|
||||
|
||||
@@ -3,9 +3,9 @@ import { AssetVisibility } from '@immich/sdk';
|
||||
import { Command, Option } from 'commander';
|
||||
import os from 'node:os';
|
||||
import path from 'node:path';
|
||||
import { upload } from 'src/commands/asset';
|
||||
import { login, logout } from 'src/commands/auth';
|
||||
import { serverInfo } from 'src/commands/server-info';
|
||||
import { upload } from 'src/commands/asset.js';
|
||||
import { login, logout } from 'src/commands/auth.js';
|
||||
import { serverInfo } from 'src/commands/server-info.js';
|
||||
import { version } from '../package.json';
|
||||
|
||||
const defaultConfigDirectory = path.join(os.homedir(), '.config/immich/');
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import mockfs from 'mock-fs';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { Batcher, CrawlOptions, crawl } from 'src/utils';
|
||||
import { Batcher, CrawlOptions, crawl } from 'src/utils.js';
|
||||
import { Mock } from 'vitest';
|
||||
|
||||
interface Test {
|
||||
|
||||
@@ -8,10 +8,10 @@ import {
|
||||
RELEASE_TYPES,
|
||||
ReleaseError,
|
||||
ReleaseInputError,
|
||||
ReleaseOptions,
|
||||
ReleaseType,
|
||||
type ReleaseOptions,
|
||||
type ReleaseType,
|
||||
TextFile,
|
||||
} from 'src/types';
|
||||
} from 'src/types.js';
|
||||
|
||||
const root = join(dirname(fileURLToPath(import.meta.url)), '../../../');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user