Use this guide to migrate your project from Thulite v1 to Thulite v2.

Prerequisites

Updating

Follow the steps below to update your project.

  1. Remove currently installed dependencies to avoid version conflicts:

  2. Update package.json

    Replace the contents of your project’s package.json with the following template:

    // package.json
    {
      "name": "thulite-project",
      "version": "0.0.0",
      "description": "Thulite",
      "author": "Thulite",
      "license": "MIT",
      "scripts": {
        "create": "hugo new",
        "dev": "hugo server --disableFastRender --noHTTPCache",
        "format": "prettier **/** -w -c",
        "build": "hugo --minify --gc",
        "preview": "vite preview --outDir public"
      },
      "engines": {
        "node": ">=20.11.0"
      }
    }
  3. Install the latest Thulite dependency in your project:

  4. Install the latest versions of Prettier and Vite as devDependencies:

  5. Optionally, install the recommended integrations in your project:

Need to continue?

After upgrading Thulite to the latest version, you may not need to make any changes to your project at all!

If you notice errors or unexpected behavior, review the sections below to identify project changes you may still need to make.

Configuration

Review your project configuration for Thulite and the recommended integrations:

Known Issues

ENOENT

If you get an ENOENT error, run the following command: