浏览代码

chore: Remove admin from default installed packages

olivermrbl 2 年之前
父节点
当前提交
6c665516e2
共有 3 个文件被更改,包括 12 次插入1768 次删除
  1. 8 7
      medusa-config.js
  2. 0 1
      package.json
  3. 4 1760
      yarn.lock

+ 8 - 7
medusa-config.js

@@ -35,13 +35,14 @@ const REDIS_URL = process.env.REDIS_URL || "redis://localhost:6379";
 const plugins = [
 const plugins = [
   `medusa-fulfillment-manual`,
   `medusa-fulfillment-manual`,
   `medusa-payment-manual`,
   `medusa-payment-manual`,
-  {
-    resolve: "@medusajs/admin",
-    /** @type {import('@medusajs/admin').PluginOptions} */
-    options: {
-      autoRebuild: true,
-    },
-  },
+  // To enable the admin plugin, uncomment the following lines and run `yarn add @medusajs/admin`
+  // {
+  //   resolve: "@medusajs/admin",
+  //   /** @type {import('@medusajs/admin').PluginOptions} */
+  //   options: {
+  //     autoRebuild: true,
+  //   },
+  // },
 ];
 ];
 
 
 const modules = {
 const modules = {

+ 0 - 1
package.json

@@ -23,7 +23,6 @@
   },
   },
   "dependencies": {
   "dependencies": {
     "@babel/preset-typescript": "^7.21.4",
     "@babel/preset-typescript": "^7.21.4",
-    "@medusajs/admin": "^2.0.0",
     "@medusajs/cache-inmemory": "^1.8.0",
     "@medusajs/cache-inmemory": "^1.8.0",
     "@medusajs/cache-redis": "^1.8.0",
     "@medusajs/cache-redis": "^1.8.0",
     "@medusajs/event-bus-local": "^1.8.0",
     "@medusajs/event-bus-local": "^1.8.0",

文件差异内容过多而无法显示
+ 4 - 1760
yarn.lock


部分文件因为文件数量过多而无法显示