Przeglądaj źródła

chore(dev-server): Update readme & tsconfig

Michael Bromley 1 rok temu
rodzic
commit
cb0307482b

+ 5 - 3
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

+ 4 - 1
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"
-  ]
+  ],
 }