{
    "name": "frontend-distribution-suite",
    "version": "1.0.0",
    "private": true,
    "author": "The Orchard",
    "engines": {
        "node": ">=20"
    },
    "license": "MIT",
    "main": "index.js",
    "scripts": {
        "build": "frontend build",
        "clean": "rm -rf node_modules && rm -rf .cache && yarn install --force",
        "format": "prettier --write .",
        "format:check": "prettier --check .",
        "generate:types": "yarn generate:types:neighbouringRights && yarn generate:types:physical && yarn generate:types:ownershipRights",
        "generate:types:neighbouringRights": "MODULE_NAME=neighbouringRights yarn graphql-codegen",
        "generate:types:ownershipRights": "MODULE_NAME=ownershipRights yarn graphql-codegen",
        "generate:types:physical": "MODULE_NAME=physical yarn graphql-codegen",
        "lint:css": "stylelint '(src|modules)/**/*.scss'",
        "lint:css:neighbouringRights": "stylelint 'modules/neighbouringRights/**/*.scss'",
        "lint:css:ownershipRights": "stylelint 'modules/ownershipRights/**/*.scss'",
        "lint:css:physical": "stylelint 'modules/physical/**/*.scss'",
        "lint:js": "eslint --ext .js,.ts,.tsx,.jsx --cache --cache-location .cache/.eslintcache src modules",
        "lint:js:neighbouringRights": "eslint --ext .js,.ts,.tsx,.jsx --cache --cache-location .cache/neighbouringRights.eslintcache modules/neighbouringRights",
        "lint:js:ownershipRights": "eslint --ext .js,.ts,.tsx,.jsx --cache --cache-location .cache/ownershipRights.eslintcache modules/ownershipRights",
        "lint:js:physical": "eslint --ext .js,.ts,.tsx,.jsx --cache --cache-location .cache/physical.eslintcache modules/physical",
        "lint": "yarn lint:css && yarn lint:js",
        "lint:neighbouringRights": "yarn lint:css:neighbouringRights && yarn lint:js:neighbouringRights",
        "lint:ownershipRights": "yarn lint:css:ownershipRights && yarn lint:js:ownershipRights",
        "lint:physical": "yarn lint:css:physical && yarn lint:js:physical",
        "start": "frontend start",
        "test:unit": "jest",
        "test:unit:neighbouringRights": "jest --selectProjects neighbouringRights",
        "test:unit:ownershipRights": "jest --selectProjects ownershipRights",
        "test:unit:physical": "jest --selectProjects physical",
        "test:types": "yarn test:types:neighbouringRights && yarn test:types:physical && yarn test:types:root && yarn test:types:ownershipRights",
        "test:types:root": "yarn tsc --project tsconfig.json --noEmit",
        "test:types:neighbouringRights": "yarn tsc --project modules/neighbouringRights/tsconfig.json --noEmit",
        "test:types:ownershipRights": "yarn tsc --project modules/ownershipRights/tsconfig.json --noEmit",
        "test:types:physical": "yarn tsc --project modules/physical/tsconfig.json --noEmit",
        "test:neighbouringRights": "yarn lint:css:neighbouringRights && yarn lint:js:neighbouringRights && yarn test:types:neighbouringRights && yarn test:unit:neighbouringRights",
        "test:ownershipRights": "yarn lint:css:ownershipRights && yarn lint:js:ownershipRights && yarn test:types:ownershipRights && yarn test:unit:ownershipRights",
        "test:physical": "yarn lint:css:physical && yarn lint:js:physical && yarn test:types:physical && yarn test:unit:physical",
        "test": "yarn format:check && yarn lint && yarn test:types && yarn test:unit",
        "prepare": "husky install"
    },
    "browserslist": {
        "production": [
            ">0.2%",
            "not dead",
            "not op_mini all"
        ],
        "development": [
            "last 1 chrome version",
            "last 1 firefox version",
            "last 1 safari version"
        ]
    },
    "jest": {
        "preset": "@theorchard/jest-config",
        "projects": [
            "src",
            "modules/*"
        ]
    },
    "prettier": "@theorchard/prettier-config",
    "lint-staged": {
        "*.{js,jsx,ts,tsx,scss,css,json,md,yaml}": [
            "prettier --write"
        ],
        "*.scss": "stylelint --fix",
        "*.{js,css,md}": "prettier --write"
    },
    "dependencies": {
        "@apollo/client": "^3.8.10",
        "@aws-sdk/client-s3": "^3.779.0",
        "@theorchard/suite-components": "^12.18.3",
        "@theorchard/suite-frontend": "^8.8.0",
        "@theorchard/suite-icons": "^7.10.0",
        "classnames": "^2.3.1",
        "dayjs": "^1.11.7",
        "file-saver": "^2.0.5",
        "graphql": "^15.3.0",
        "lodash": "^4.17.21",
        "papaparse": "^5.5.2",
        "react": "^17.0.2",
        "react-dom": "^17.0.2",
        "react-hook-form": "^7.34.0",
        "react-router-dom": "^5.3.0"
    },
    "devDependencies": {
        "@graphql-codegen/cli": "^4.0.1",
        "@graphql-codegen/near-operation-file-preset": "^2.5.0",
        "@graphql-codegen/typescript": "^4.0.1",
        "@graphql-codegen/typescript-operations": "^4.0.1",
        "@graphql-tools/jest-transform": "^1.2.2",
        "@testing-library/jest-dom": "^5.14.1",
        "@testing-library/react": "^11.2.7",
        "@testing-library/react-hooks": "^3.7.0",
        "@theorchard/eslint-config-react-ts-prettier": "^2.2.3",
        "@theorchard/frontend-cli": "^4.0.0",
        "@theorchard/frontend-cli-webpack": "^2.0.4",
        "@theorchard/jest-config": "^3.0.0",
        "@theorchard/prettier-config": "^1.0.0",
        "@theorchard/stylelint-config-prettier": "^1.1.2",
        "@theorchard/suite-testing": "^3.1.0",
        "@types/classnames": "^2.3.1",
        "@types/file-saver": "^2.0.5",
        "@types/glob": "^7.2.0",
        "@types/jest": "^29.2.0",
        "@types/lodash": "^4.14.182",
        "@types/minimatch": "^3.0.1",
        "@types/papaparse": "^5.3.7",
        "@types/react": "17.0.3",
        "@types/react-dom": "17.0.3",
        "@types/react-router-dom": "^5.1.8",
        "dotenv": "^16.3.1",
        "graphql-codegen-typescript-operation-types": "^2.0.1",
        "husky": "^8.0.3",
        "jest": "^29.2.1",
        "jest-environment-jsdom": "^29.2.1",
        "lint-staged": "^13.1.0",
        "prettier": "^2.7.1",
        "react-test-renderer": "^17.0.2",
        "stylelint": "^14.16.1",
        "ts-jest": "^29.0.3",
        "ts-node": "^10.9.1",
        "typescript": "^5.4.5"
    },
    "resolutions": {
        "@babel/helper-compilation-targets": "^7.23.6",
        "@babel/core": "^7.24.0",
        "@babel/traverse": "^7.24.0",
        "@babel/helper-replace-supers": "^7.24.0",
        "@babel/preset-env": "^7.24.0",
        "@types/react": "17.0.3",
        "@types/react-dom": "17.0.3"
    }
}
