mini-entry
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -5,3 +5,3 @@ /* | ||
* @Last Modified by: youzhao.zhou | ||
* @Last Modified time: 2021-04-22 15:01:40 | ||
* @Last Modified time: 2021-04-22 18:00:30 | ||
* @Description 获取webpack入口 | ||
@@ -24,2 +24,3 @@ * | ||
isAbsolute, | ||
extname, | ||
} = require("path"); | ||
@@ -82,4 +83,10 @@ const globby = require("globby"); | ||
let appJson = getAppEntry(appEntryFilePath); | ||
if (!appEntryFilePath.includes(normalize("src/app.json"))) { | ||
appJson = {}; | ||
} | ||
const entry = { | ||
...getAppEntry(appEntryFilePath), | ||
...appJson, | ||
...appEntry, | ||
@@ -86,0 +93,0 @@ ...componentEntry, |
{ | ||
"name": "mini-entry", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "解析小程序json", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -16,3 +16,3 @@ interface IMiniEntryOptions { | ||
js: "js" | "ts"; | ||
miniJs: "wxs" | "sjs"; | ||
miniJs?: "wxs" | "sjs"; | ||
xml: "wxml" | "axml" | "html"; | ||
@@ -28,9 +28,13 @@ | ||
css: string; | ||
miniJs: string; | ||
miniJs?: string; | ||
xml: string; | ||
[key: string]: any; | ||
}; | ||
/** | ||
* 忽略文件 | ||
*/ | ||
ignoreEntry: string[]; | ||
} | ||
type IMiniEntryReturn = { | ||
interface IMiniEntryReturn { | ||
/** | ||
@@ -45,3 +49,3 @@ * 所有入口 | ||
*/ | ||
jsonFile: { | ||
jsonFiles: { | ||
[entryName: string]: string[]; | ||
@@ -53,3 +57,3 @@ }; | ||
subPackagesDir: string[]; | ||
}; | ||
} | ||
@@ -56,0 +60,0 @@ declare function getEntry(options: IMiniEntryOptions): IMiniEntryReturn; |
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
14968
530