mini-entry
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -5,3 +5,3 @@ /* | ||
* @Last Modified by: youzhao.zhou | ||
* @Last Modified time: 2021-04-21 17:02:51 | ||
* @Last Modified time: 2021-04-21 22:12:42 | ||
* @Description 生成node_modules中的组件入口 | ||
@@ -59,10 +59,13 @@ * js wxml json wxss? | ||
const entry = [ | ||
`${moduleDirName}/${entryPath}.${compiledSuffix.js}`, | ||
`${moduleDirName}/${entryPath}.${compiledSuffix.xml}`, | ||
`${moduleDirName}/${entryPath}.json`, | ||
join(process.cwd(), `${moduleDirName}/${entryPath}.${compiledSuffix.js}`), | ||
join(process.cwd(), `${moduleDirName}/${entryPath}.${compiledSuffix.xml}`), | ||
join(process.cwd(), `${moduleDirName}/${entryPath}.json`), | ||
]; | ||
const stylePath = `${moduleDirName}/${entryPath}.${compiledSuffix.css}`; | ||
const stylePath = join( | ||
process.cwd(), | ||
`${moduleDirName}/${entryPath}.${compiledSuffix.css}`, | ||
); | ||
if (fs.existsSync(join(process.cwd(), stylePath))) { | ||
if (fs.existsSync(stylePath)) { | ||
entry.push(stylePath); | ||
@@ -69,0 +72,0 @@ } |
{ | ||
"name": "mini-entry", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "解析小程序json", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13576
466
0