Yuki Takei 9 年之前
父節點
當前提交
de6a755c8a
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      packages/growi-commons/package.json
  2. 1 1
      packages/growi-commons/src/util/ModulePathResolver.js

+ 1 - 1
packages/growi-commons/package.json

@@ -1,6 +1,6 @@
 {
   "name": "crowi-pluginkit",
-  "version": "1.0.4",
+  "version": "1.0.5",
   "description": "The Crowi Plugin Kit to develop plugins",
   "main": "lib/index.js",
   "files": [

+ 1 - 1
packages/growi-commons/src/util/ModulePathResolver.js

@@ -7,7 +7,7 @@ import * as appRoot from 'app-root-path';
 export class ModulePathResolver {
 
   relativeFromRoot(modulePath) {
-    return path.relative(appRoot.path, path.join(__dirname, modulePath))
+    return path.relative(appRoot.path, modulePath)
   }
 
 }