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