{
    "$schema": "../../node_modules/nx/schemas/project-schema.json",
    "projectType": "library",
    "targets": {
        "build": {
            "cache": true,
            "command": "vite build",
            "inputs": ["src"],
            "outputs": ["{projectRoot}/dist"],
            "options": { "cwd": "packages/shared-components" }
        },
        "start": {
            "command": "vite build --watch",
            "options": { "cwd": "packages/shared-components" },
            "continuous": true
        },
        "typedoc": {
            "cache": "true",
            "command": "typedoc",
            "inputs": ["src"],
            "outputs": ["{projectRoot}/typedoc"],
            "options": { "cwd": "packages/shared-components" }
        },
        "storybook": {
            "cache": "true",
            "inputs": ["src", "{projectRoot}/.storybook", "{projectRoot}/typedoc"],
            "outputs": ["{projectRoot}/storybook-static"],
            "executor": "nx:run-commands",
            "options": {
                "commands": ["storybook build", "node scripts/storybook-build-i18n.ts"],
                "parallel": false,
                "cwd": "packages/shared-components"
            },
            "dependsOn": ["build", "typedoc"]
        },
        "test:unit": {
            "command": "vitest --project=unit",
            "options": { "cwd": "packages/shared-components" }
        },
        "test:storybook": {
            "command": "vitest --project=storybook",
            "options": { "cwd": "packages/shared-components" },
            "dependsOn": ["typedoc"]
        },
        "test:storybook:update": {
            "command": "playwright-screenshots-experimental nx test:storybook --run --update",
            "options": {
                "env": {
                    "CI": "1"
                },
                "cwd": "packages/shared-components"
            },
            "dependsOn": ["typedoc"]
        }
    }
}
