Implementation:PrefectHQ Prefect UI Legacy Package Lock
| Knowledge Sources | |
|---|---|
| Domains | Frontend, Dependency_Management, Build_System |
| Last Updated | 2026-02-09 22:00 GMT |
Overview
NPM dependency lock file that pins exact versions of all direct and transitive dependencies for the legacy Vue-based Prefect UI.
Description
The ui/package-lock.json is an auto-generated file produced by npm that records the resolved version, integrity hash, and complete dependency tree for every installed package in the legacy Prefect UI project. This Vue-based application uses the prefect-design shared component library and Tailwind CSS. The lock file ensures reproducible builds by pinning exact versions of all direct and transitive dependencies across all environments.
Usage
This file is consumed automatically by `npm install` (or `npm ci` in CI). It should be committed to version control and never edited manually. It is regenerated when dependencies in the legacy UI's `package.json` change.
Code Reference
Source Location
- Repository: PrefectHQ_Prefect
- File: ui/package-lock.json
- Lines: 1-12318
Signature
{
"name": "prefect-ui",
"lockfileVersion": 3,
"packages": {
"": {
"dependencies": { ... },
"devDependencies": { ... }
}
}
}
Import
# Not importable; consumed by npm automatically
cd ui
npm ci # Install exact locked versions (preferred for CI)
npm install # Install and potentially update lock file
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| package.json | file | Yes | Declares desired dependency ranges for the legacy UI |
| npm registry | network | Yes | Source for resolving package versions |
Outputs
| Name | Type | Description |
|---|---|---|
| node_modules/ | directory | Installed packages matching locked versions |
| Deterministic builds | guarantee | Identical dependency tree across all environments |
Usage Examples
Clean Install in CI
cd ui
npm ci # Uses package-lock.json for deterministic install
npm run build # Build the legacy Vue UI with locked dependencies