Explorar o código

omit ModulePathResolver

Yuki Takei %!s(int64=9) %!d(string=hai) anos
pai
achega
deb8b60c1b

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

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

+ 0 - 1
packages/growi-commons/src/index.js

@@ -1,2 +1 @@
 export * from './util/BasicInterceptor';
-export * from './util/ModulePathResolver';

+ 0 - 13
packages/growi-commons/src/util/ModulePathResolver.js

@@ -1,13 +0,0 @@
-import * as path from 'path';
-
-/**
- * Resolve path tools
- */
-export class ModulePathResolver {
-
-  relativeFromRoot(modulePath) {
-    const appRoot = path.dirname(require.main.filename)
-    return path.relative(appRoot, modulePath)
-  }
-
-}