Sfoglia il codice sorgente

add local file plugin

olivermrbl 2 anni fa
parent
commit
0294b24a99
3 ha cambiato i file con 9 aggiunte e 22 eliminazioni
  1. 2 1
      medusa-config.js
  2. 2 1
      package.json
  3. 5 20
      yarn.lock

+ 2 - 1
medusa-config.js

@@ -29,13 +29,14 @@ const ADMIN_CORS =
 const STORE_CORS = process.env.STORE_CORS || "http://localhost:8000";
 
 const DATABASE_URL =
-  process.env.DATABASE_URL || "postgres://localhost/test-postgres";
+  process.env.DATABASE_URL || "postgres://localhost/medusa-db";
   
 const REDIS_URL = process.env.REDIS_URL || "redis://localhost:6379";
 
 const plugins = [
   `medusa-fulfillment-manual`,
   `medusa-payment-manual`,
+  `@medusajs/file-local`,
   // To enable the admin plugin, uncomment the following lines and run `yarn add @medusajs/admin`
   // {
   //   resolve: "@medusajs/admin",

+ 2 - 1
package.json

@@ -29,6 +29,7 @@
     "@medusajs/cache-redis": "^1.8.6",
     "@medusajs/event-bus-local": "^1.9.3",
     "@medusajs/event-bus-redis": "^1.8.6",
+    "@medusajs/file-local": "^1.0.1-next-20230529135657",
     "@medusajs/medusa": "^1.11.1-next-20230529115831",
     "@medusajs/medusa-cli": "^1.3.14",
     "babel-preset-medusa-package": "^1.1.13",
@@ -39,7 +40,7 @@
     "medusa-interfaces": "^1.3.7",
     "medusa-payment-manual": "^1.0.23",
     "medusa-payment-stripe": "5.0.0",
-    "typeorm": "npm:@medusajs/typeorm@next"
+    "typeorm": "^0.3.16"
   },
   "devDependencies": {
     "@babel/cli": "^7.14.3",

+ 5 - 20
yarn.lock

@@ -1320,6 +1320,11 @@
     bullmq "^3.5.6"
     ioredis "^5.2.5"
 
+"@medusajs/file-local@^1.0.1-next-20230529135657":
+  version "1.0.1-next-20230529135657"
+  resolved "https://registry.yarnpkg.com/@medusajs/file-local/-/file-local-1.0.1-next-20230529135657.tgz#82c5897b7dd91baeb3b9318a566b0ead7cb7e412"
+  integrity sha512-D6gUB1UXUbeQz3daDZ29iSePbxC3O/2JHitpVywzDguxV68otR0eN8Wp4czhrh88MbfobdoqwBI1uQWm27OwhA==
+
 "@medusajs/medusa-cli@1.3.15-next-20230529115831":
   version "1.3.15-next-20230529115831"
   resolved "https://registry.yarnpkg.com/@medusajs/medusa-cli/-/medusa-cli-1.3.15-next-20230529115831.tgz#347e1c220b059456be7f6bc464ee8399650fe6a9"
@@ -6883,26 +6888,6 @@ typeorm@^0.3.16:
     uuid "^9.0.0"
     yargs "^17.6.2"
 
-"typeorm@npm:@medusajs/typeorm@next":
-  version "0.3.16-next.0"
-  resolved "https://registry.npmjs.org/@medusajs/typeorm/-/typeorm-0.3.16-next.0.tgz"
-  integrity sha512-ffURo/Whi40IAs8u9t44UYvZWtpWU/4fDO2oVG5N212nVbFWfiC6xlcjhf0sHzfsjah8NB2+Xgg/qPRHnDUvCQ==
-  dependencies:
-    "@sqltools/formatter" "^1.2.5"
-    app-root-path "^3.1.0"
-    buffer "^6.0.3"
-    chalk "^4.1.2"
-    cli-highlight "^2.1.11"
-    debug "^4.3.4"
-    dotenv "^16.0.3"
-    glob "^8.1.0"
-    mkdirp "^2.1.3"
-    reflect-metadata "^0.1.13"
-    sha.js "^2.4.11"
-    tslib "^2.5.0"
-    uuid "^9.0.0"
-    yargs "^17.6.2"
-
 typescript@^4.5.2:
   version "4.9.5"
   resolved "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz"