diff --git a/packages/dev-server/README.md b/packages/dev-server/README.md index 3d76496871..0c6960324d 100644 --- a/packages/dev-server/README.md +++ b/packages/dev-server/README.md @@ -27,13 +27,15 @@ DB=sqlite npm run populate ## Testing custom ui extension compilation In order to compile ui extensions within this monorepo, you need to add the following entry to -this package's `package.json` devDependencies: +the [temporary admin ui `tsconfig.json`](./custom-admin-ui/tsconfig.json) file: ``` - "@vendure/admin-ui": "./packages/admin-ui/package", + "paths": { + "@vendure/admin-ui/*": ["../../admin-ui/package/*"] + } ``` -and then run `npm install`. Make sure you already built the admin-ui package first. + ## Load testing diff --git a/packages/dev-server/tsconfig.json b/packages/dev-server/tsconfig.json index b5588f8da2..e2f535efa7 100644 --- a/packages/dev-server/tsconfig.json +++ b/packages/dev-server/tsconfig.json @@ -4,8 +4,11 @@ "module": "commonjs", "sourceMap": true, "jsx": "react", + "paths": { + "@vendure/admin-ui/*": ["../admin-ui/package/*"] + } }, "exclude": [ "node_modules" - ] + ], }