@@ -16,6 +16,7 @@ Currently available root commands:
-`pnpm install`
-`pnpm dev:admin`
-`pnpm build:admin`
-`pnpm test:admin`
-`pnpm lint:admin` — the inherited admin script uses `--fix`; inspect its diff and do not run it for read-only validation.
Learning commands (`dev:learning`, `build:learning`, `test:learning`, and `lint:learning`) and root verification commands are planned, but do not exist until their corresponding Stage 0 tasks create them.
Do not move `AGENTS.md`, `docs`, `.gitignore`, `.agents`, `.claude`, `readme.md`, or `skills-lock.json`.
-[]**Step 3: Rename the admin package without changing its dependencies**
-[]**Step 3: Rename the admin package and apply the approved Vite 8 compatibility updates**
Modify the first fields of `apps/admin/package.json`:
...
...
@@ -145,7 +145,9 @@ Modify the first fields of `apps/admin/package.json`:
}
```
Keep all existing dependencies and scripts in that file unchanged during this task.
Use pnpm 11.13.1 at the workspace root. Update the admin build stack to Vite ^8.1.5 and @vitejs/plugin-react ^6.0.3, remove @vitejs/plugin-react-swc, and remove the explicit @rollup/rollup-linux-x64-gnu optionalDependency so pnpm resolves the platform binding. Add the admin `test` command for the Redux Persist compatibility characterization.
Keep the legacy React 18 and Ant Design 5 application dependencies on their current major-version baseline. Isolate Redux Persist's `redux-persist/es/storage` import in a local ESM module and characterize it through Vite SSR with a map-backed `self.localStorage`; the test must assert the storage methods exist and round-trip/remove a value.
-[]**Step 5: Install from the workspace root and generate the single lockfile**
...
...
@@ -178,20 +185,21 @@ packages:
Run:
```bash
pnpm install
pnpm install--force
```
Expected: exit 0, root `pnpm-lock.yaml` exists, and `apps/admin/node_modules` is linked by pnpm.
Expected: exit 0 with pnpm 11.13.1, root `pnpm-lock.yaml` exists, `apps/admin/node_modules` is linked by pnpm, and no ignored-build-script warning is printed. `esbuild` is explicitly allowed; `es5-ext` is explicitly denied because its informational postinstall is not needed for the admin build.
-[]**Step 6: Verify the mechanically moved admin still builds**
Run:
```bash
pnpm test:admin
pnpm build:admin
```
Expected: exit 0. At this task boundary the output may still be `apps/admin/dist`; the output is changed in Task 2.
Expected: both commands exit 0. The ESM Redux Persist compatibility test loads the local storage module through Vite and verifies local-storage behavior. At this task boundary the output may still be `apps/admin/dist`; the output is changed in Task 2.