Bläddra i källkod

chore(dev-server): Update readme & tsconfig

Michael Bromley 1 år sedan
förälder
incheckning
cb0307482b
2 ändrade filer med 9 tillägg och 4 borttagningar
  1. 5 3
      packages/dev-server/README.md
  2. 4 1
      packages/dev-server/tsconfig.json

+ 5 - 3
packages/dev-server/README.md

@@ -27,13 +27,15 @@ DB=sqlite npm run populate
 ## Testing custom ui extension compilation
 ## Testing custom ui extension compilation
 
 
 In order to compile ui extensions within this monorepo, you need to add the following entry to
 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
 ## Load testing

+ 4 - 1
packages/dev-server/tsconfig.json

@@ -4,8 +4,11 @@
     "module": "commonjs",
     "module": "commonjs",
     "sourceMap": true,
     "sourceMap": true,
     "jsx": "react",
     "jsx": "react",
+    "paths": {
+      "@vendure/admin-ui/*": ["../admin-ui/package/*"]
+    }
   },
   },
   "exclude": [
   "exclude": [
     "node_modules"
     "node_modules"
-  ]
+  ],
 }
 }