2023-07-06 16:37:47 +02:00
|
|
|
{
|
2023-11-20 00:16:24 +02:00
|
|
|
"name": "@immich/cli",
|
2024-01-02 00:37:52 +02:00
|
|
|
"version": "2.0.6",
|
2023-11-20 15:04:20 +02:00
|
|
|
"description": "Command Line Interface (CLI) for Immich",
|
2023-11-20 00:16:24 +02:00
|
|
|
"main": "dist/index.js",
|
|
|
|
"bin": {
|
2023-11-21 21:12:40 +02:00
|
|
|
"immich": "./dist/src/index.js"
|
2023-11-20 00:16:24 +02:00
|
|
|
},
|
2023-11-20 15:04:20 +02:00
|
|
|
"license": "MIT",
|
2023-11-21 23:09:19 +02:00
|
|
|
"keywords": [
|
|
|
|
"immich",
|
|
|
|
"cli"
|
|
|
|
],
|
2023-07-06 16:37:47 +02:00
|
|
|
"dependencies": {
|
2024-01-12 14:36:27 +02:00
|
|
|
"@immich/sdk": "file:../open-api/typescript-sdk",
|
2023-11-20 00:16:24 +02:00
|
|
|
"axios": "^1.6.2",
|
2023-07-22 06:01:20 +02:00
|
|
|
"byte-size": "^8.1.1",
|
|
|
|
"cli-progress": "^3.12.0",
|
|
|
|
"commander": "^11.0.0",
|
2023-07-06 16:37:47 +02:00
|
|
|
"form-data": "^4.0.0",
|
2023-07-22 06:01:20 +02:00
|
|
|
"glob": "^10.3.1",
|
2023-12-19 17:40:29 +02:00
|
|
|
"graceful-fs": "^4.2.11",
|
2023-07-22 06:01:20 +02:00
|
|
|
"yaml": "^2.3.1"
|
2023-07-06 16:37:47 +02:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2023-12-19 04:29:26 +02:00
|
|
|
"@testcontainers/postgresql": "^10.4.0",
|
2023-07-06 16:37:47 +02:00
|
|
|
"@types/byte-size": "^8.1.0",
|
|
|
|
"@types/cli-progress": "^3.11.0",
|
|
|
|
"@types/jest": "^29.5.2",
|
|
|
|
"@types/mock-fs": "^4.13.1",
|
|
|
|
"@types/node": "^20.3.1",
|
2023-11-29 04:11:43 +02:00
|
|
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
|
|
"@typescript-eslint/parser": "^6.0.0",
|
2023-07-06 16:37:47 +02:00
|
|
|
"eslint": "^8.43.0",
|
2023-11-20 16:39:00 +02:00
|
|
|
"eslint-config-prettier": "^9.0.0",
|
2023-07-06 16:37:47 +02:00
|
|
|
"eslint-plugin-jest": "^27.2.2",
|
2023-11-21 20:31:50 +02:00
|
|
|
"eslint-plugin-prettier": "^5.0.0",
|
2024-01-01 21:28:19 +02:00
|
|
|
"eslint-plugin-unicorn": "^50.0.0",
|
2023-12-19 04:29:26 +02:00
|
|
|
"immich": "file:../server",
|
2023-07-06 16:37:47 +02:00
|
|
|
"jest": "^29.5.0",
|
|
|
|
"jest-extended": "^4.0.0",
|
|
|
|
"jest-message-util": "^29.5.0",
|
|
|
|
"jest-mock-axios": "^4.7.2",
|
|
|
|
"jest-when": "^3.5.2",
|
|
|
|
"mock-fs": "^5.2.0",
|
|
|
|
"ts-jest": "^29.1.0",
|
|
|
|
"ts-node": "^10.9.1",
|
|
|
|
"tslib": "^2.5.3",
|
2023-11-29 05:06:09 +02:00
|
|
|
"typescript": "^5.0.0"
|
2023-07-06 16:37:47 +02:00
|
|
|
},
|
|
|
|
"scripts": {
|
2023-07-21 20:10:01 +02:00
|
|
|
"build": "tsc --project tsconfig.build.json",
|
2023-12-19 04:29:26 +02:00
|
|
|
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\" --max-warnings 0",
|
|
|
|
"lint:fix": "npm run lint -- --fix",
|
2023-11-20 15:04:20 +02:00
|
|
|
"prepack": "npm run build",
|
2023-07-06 16:37:47 +02:00
|
|
|
"test": "jest",
|
|
|
|
"test:cov": "jest --coverage",
|
2023-11-20 00:16:24 +02:00
|
|
|
"format": "prettier --check .",
|
|
|
|
"format:fix": "prettier --write .",
|
2023-12-19 04:29:26 +02:00
|
|
|
"check": "tsc --noEmit",
|
2024-01-12 14:36:27 +02:00
|
|
|
"test:e2e": "jest --config test/e2e/jest-e2e.json --runInBand"
|
2023-07-21 20:10:01 +02:00
|
|
|
},
|
|
|
|
"jest": {
|
|
|
|
"clearMocks": true,
|
|
|
|
"moduleFileExtensions": [
|
|
|
|
"js",
|
|
|
|
"json",
|
|
|
|
"ts"
|
|
|
|
],
|
|
|
|
"rootDir": ".",
|
|
|
|
"testRegex": ".*\\.spec\\.ts$",
|
|
|
|
"transform": {
|
|
|
|
"^.+\\.ts$": "ts-jest"
|
|
|
|
},
|
|
|
|
"collectCoverageFrom": [
|
2023-12-19 04:29:26 +02:00
|
|
|
"<rootDir>/src/**/*.(t|j)s",
|
|
|
|
"!**/open-api/**"
|
2023-07-21 20:10:01 +02:00
|
|
|
],
|
2023-11-20 00:16:24 +02:00
|
|
|
"moduleNameMapper": {
|
2023-12-19 04:29:26 +02:00
|
|
|
"^@api(|/.*)$": "<rootDir>/src/api/$1",
|
|
|
|
"^@test(|/.*)$": "<rootDir>../server/test/$1",
|
|
|
|
"^@app/immich(|/.*)$": "<rootDir>../server/src/immich/$1",
|
|
|
|
"^@app/infra(|/.*)$": "<rootDir>../server/src/infra/$1",
|
|
|
|
"^@app/domain(|/.*)$": "<rootDir>../server/src/domain/$1"
|
2023-11-20 00:16:24 +02:00
|
|
|
},
|
2023-07-21 20:10:01 +02:00
|
|
|
"coverageDirectory": "./coverage",
|
|
|
|
"testEnvironment": "node"
|
2023-11-20 15:36:17 +02:00
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2023-11-21 23:09:19 +02:00
|
|
|
"url": "github:immich-app/immich",
|
2023-11-20 15:36:17 +02:00
|
|
|
"directory": "cli"
|
2023-07-06 16:37:47 +02:00
|
|
|
}
|
|
|
|
}
|