@lingxiteam/bundle-less-theme-tools
Advanced tools
Comparing version 0.0.1-alpha.10 to 0.0.1-alpha.11
@@ -80,6 +80,2 @@ | ||
const moduleName = importPath.match(moduleNameMatch)[0].replace('~',''); | ||
const moduleMainEntry = require.resolve(moduleName); | ||
const moduleNameStartIndex= moduleMainEntry.indexOf(moduleName.replace(/\/.*/, '')); | ||
// 从模块主入口文件路径中,截取真正的模块目录路径 | ||
const modulePath = moduleMainEntry.slice(0, moduleNameStartIndex + moduleName.length); | ||
@@ -89,2 +85,6 @@ if(nodeModulesPath) { | ||
} else { | ||
const moduleMainEntry = require.resolve(moduleName); | ||
const moduleNameStartIndex= moduleMainEntry.indexOf(moduleName.replace(/\/.*/, '')); | ||
// 从模块主入口文件路径中,截取真正的模块目录路径 | ||
const modulePath = moduleMainEntry.slice(0, moduleNameStartIndex + moduleName.length); | ||
wholePath = path.join(modulePath, importPath.replace(moduleNameMatch, '')); | ||
@@ -91,0 +91,0 @@ } |
{ | ||
"name": "@lingxiteam/bundle-less-theme-tools", | ||
"version": "0.0.1-alpha.10", | ||
"version": "0.0.1-alpha.11", | ||
"description": "A tool for bundling less theme files.", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"license": "MIT", | ||
"gitHead": "9629afcf7af026f14a01ff8be0f8fc0387267b35" | ||
"gitHead": "fd401c4387501c0d0a43a77a7c017e8eb322599d" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5947