Procházet zdrojové kódy

Updated package list to use namespaces

James Peret před 1 rokem
rodič
revize
3c1a3d33e1
2 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 2 2
      index.js
  2. 1 1
      package.json

+ 2 - 2
index.js

@@ -2,7 +2,7 @@ var chalk = {};
 
 module.exports = function() {
     return {
-        name: 'mws-carmen-castillo-landing-page',
+        name: '@mws/carmen-castillo-landing-page',
         type: 'website',
         auto_load: true,
         initialize: function(system) {
@@ -13,7 +13,7 @@ module.exports = function() {
             this.system.carmenLandingPage = this;
             if(this.system.carmenLandingPage == undefined) 
                 this.system.log(this.system.chalk.red('Error: mws-carmen-castillo-landing-page module not found on system!'));
-            this.server = this.system.module_loader.instantiate_module(this.system, 'mws-server');
+            this.server = this.system.module_loader.instantiate_module(this.system, '@mws/server');
             if(this.server == undefined) 
                 this.system.log(this.system.chalk.red('Error: Could not install mws-server for mws-carmen-castillo-landing-page module.'));
             else {

+ 1 - 1
package.json

@@ -1,5 +1,5 @@
 {
-  "name": "mws-carmen-castillo-landing-page",
+  "name": "@mws/carmen-castillo-landing-page",
   "version": "0.0.1",
   "description": "A landing page for the Carmen Castillo Imoveis project",
   "main": "index.js",