{
  "name": "@lit-labs/ssr",
  "type": "module",
  "version": "4.1.0",
  "publishConfig": {
    "access": "public"
  },
  "description": "SSR for Lit",
  "main": "index.js",
  "scripts": {
    "build": "wireit",
    "build:ts": "wireit",
    "demo:vm-modules": "wireit",
    "demo:global": "wireit",
    "test": "wireit",
    "test:integration": "wireit",
    "test:integration:shimmed:dev": "wireit",
    "test:integration:unshimmed:dev": "wireit",
    "test:integration:shimmed:prod": "wireit",
    "test:integration:unshimmed:prod": "wireit",
    "test:unit": "wireit",
    "test:types": "wireit"
  },
  "wireit": {
    "build": {
      "dependencies": [
        "build:ts",
        "../ssr-client:build",
        "../../lit:build"
      ]
    },
    "build:ts": {
      "command": "tsc --build --pretty",
      "clean": "if-file-deleted",
      "dependencies": [
        "../ssr-client:build:ts:types",
        "../ssr-dom-shim:build:ts",
        "../../lit:build:ts:types",
        "../../lit-html:build:ts:types",
        "../../lit-element:build:ts:types"
      ],
      "files": [
        "src/**/*.ts",
        "custom_typings/**/*.ts",
        "tsconfig.json"
      ],
      "output": [
        "lib/",
        "test/",
        "demo/",
        "index.{d.ts,d.ts.map,js,js.map}",
        "tsconfig.tsbuildinfo"
      ]
    },
    "demo:vm-modules": {
      "command": "node --experimental-vm-modules ./demo/vm-modules/server.js",
      "dependencies": [
        "build"
      ],
      "service": true,
      "files": []
    },
    "demo:global": {
      "command": "node ./demo/global/server.js",
      "dependencies": [
        "build"
      ],
      "service": true,
      "files": []
    },
    "test": {
      "dependencies": [
        "test:unit",
        "test:integration",
        "test:types"
      ]
    },
    "test:unit": {
      "command": "NODE_OPTIONS=\"--experimental-vm-modules --enable-source-maps\" uvu test \"lib/.*_test\\.js$\"",
      "#comment": [
        "These unit tests use the default export condition, so they require a",
        "full build of all dependencies."
      ],
      "dependencies": [
        "build"
      ],
      "files": [],
      "output": []
    },
    "test:integration": {
      "dependencies": [
        "test:integration:shimmed:dev",
        "test:integration:shimmed:prod",
        "test:integration:unshimmed:dev",
        "test:integration:unshimmed:prod"
      ]
    },
    "test:integration:shimmed:dev": {
      "command": "node ../../tests/run-web-tests.js test/integration/client/**/*-shimmed_test.js",
      "env": {
        "MODE": "dev",
        "NODE_OPTIONS": "--experimental-vm-modules",
        "BROWSERS": {
          "external": true
        }
      },
      "#comment": [
        "TODO(aomarks) It seems like this should only depend on build:ts",
        "but it errors on missing .js files that come from core library Rollup builds"
      ],
      "dependencies": [
        "build",
        "../../tests:build"
      ],
      "files": [
        "web-test-runner.config.js",
        "../../tests/web-test-runner.config.js"
      ],
      "output": []
    },
    "test:integration:shimmed:prod": {
      "command": "node ../../tests/run-web-tests.js test/integration/client/**/*-shimmed_test.js",
      "env": {
        "MODE": "prod",
        "NODE_OPTIONS": "--experimental-vm-modules",
        "BROWSERS": {
          "external": true
        }
      },
      "dependencies": [
        "build",
        "../../tests:build"
      ],
      "files": [
        "web-test-runner.config.js",
        "../../tests/web-test-runner.config.js"
      ],
      "output": []
    },
    "test:integration:unshimmed:dev": {
      "command": "node ../../tests/run-web-tests.js test/integration/client/**/*-unshimmed_test.js",
      "env": {
        "MODE": "dev",
        "NODE_OPTIONS": "--experimental-vm-modules",
        "BROWSERS": {
          "external": true
        }
      },
      "dependencies": [
        "build",
        "../../tests:build"
      ],
      "files": [
        "web-test-runner.config.js",
        "../../tests/web-test-runner.config.js"
      ],
      "output": []
    },
    "test:integration:unshimmed:prod": {
      "command": "node ../../tests/run-web-tests.js test/integration/client/**/*-unshimmed_test.js",
      "env": {
        "MODE": "prod",
        "NODE_OPTIONS": "--experimental-vm-modules",
        "BROWSERS": {
          "external": true
        }
      },
      "dependencies": [
        "build",
        "../../tests:build"
      ],
      "files": [
        "web-test-runner.config.js",
        "../../tests/web-test-runner.config.js"
      ],
      "output": []
    },
    "test:types": {
      "command": "tsc --pretty --noEmit",
      "dependencies": [
        "../ssr-client:build:ts:types",
        "../ssr-dom-shim:build:ts",
        "../../lit:build:ts:types",
        "../../lit-html:build:ts:types",
        "../../lit-element:build:ts:types"
      ],
      "files": [
        "src/**/*.ts",
        "custom_typings/**/*.ts",
        "tsconfig.json"
      ],
      "output": []
    }
  },
  "files": [
    "/lib/",
    "/index.{d.ts,d.ts.map,js,js.map}"
  ],
  "author": "Google LLC",
  "license": "BSD-3-Clause",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/lit/lit.git",
    "directory": "packages/labs/ssr"
  },
  "devDependencies": {
    "@koa/router": "^12.0.0",
    "@open-wc/testing": "^3.2.0",
    "@open-wc/testing-karma": "^4.0.9",
    "@types/command-line-args": "^5.0.0",
    "@types/koa": "^2.0.49",
    "@types/koa__router": "^8.0.2",
    "@types/koa-cors": "*",
    "@types/koa-mount": "^4.0.2",
    "@types/koa-static": "^4.0.1",
    "@types/node": "^20.0.0",
    "@types/resolve": "^1.20.2",
    "@webcomponents/template-shadowroot": "^0.1.0",
    "command-line-args": "^5.1.1",
    "deepmerge": "^4.2.2",
    "koa": "^2.7.0",
    "koa-cors": "^0.0.16",
    "koa-mount": "^4.0.0",
    "koa-node-resolve": "^1.0.0-pre.5",
    "koa-static": "^5.0.0"
  },
  "dependencies": {
    "@lit-labs/ssr-client": "^1.1.7",
    "@lit-labs/ssr-dom-shim": "^1.6.0",
    "@lit/reactive-element": "^2.0.4",
    "@parse5/tools": "^0.3.0",
    "enhanced-resolve": "^5.10.0",
    "lit": "^3.1.2",
    "lit-element": "^4.0.4",
    "lit-html": "^3.1.2",
    "node-fetch": "^3.2.8",
    "parse5": "^7.1.1"
  },
  "peerDependencies": {
    "@types/node": ">=20.0.0 <25.0.0"
  },
  "peerDependenciesMeta": {
    "@types/node": {
      "optional": true
    }
  },
  "engines": {
    "node": ">=13.9.0"
  }
}
