@we-debug/gulp-tool 0.31.6 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.33.0](https://github.com/dlhandsome/we-debug/compare/v0.32.3...v0.33.0) (2024-08-08)
7
+
8
+
9
+ ### Features
10
+
11
+ * **gulp-tool:** 兼容subPackages写法 ([17bd7df](https://github.com/dlhandsome/we-debug/commit/17bd7df33f51c4eae3cbc54040913ff16cecf23e))
12
+
13
+
14
+
15
+
16
+
17
+ # [0.32.0](https://github.com/dlhandsome/we-debug/compare/v0.31.18...v0.32.0) (2024-06-24)
18
+
19
+ **Note:** Version bump only for package @we-debug/gulp-tool
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.31.6](https://github.com/dlhandsome/we-debug/compare/v0.31.5...v0.31.6) (2024-01-17)
7
26
 
8
27
 
package/dist/lookup.js CHANGED
@@ -18,7 +18,7 @@ function lookupPages(projectDir) {
18
18
  try {
19
19
  var appJson = require(appPath);
20
20
  pages = appJson.pages;
21
- subpackages = appJson.subpackages || [];
21
+ subpackages = appJson.subpackages || appJson.subPackages || [];
22
22
  pages = pages.map(function (p) {
23
23
  return path_1.default.resolve(projectDir, p);
24
24
  });
package/dist/types.d.ts CHANGED
@@ -11,6 +11,7 @@ export declare namespace WechatMiniprogram {
11
11
  interface IAppJson {
12
12
  pages: string[];
13
13
  subpackages?: AppJsonSubpages;
14
+ subPackages?: AppJsonSubpages;
14
15
  }
15
16
  }
16
17
  export type ProcessDefine = (file: File, encoding?: string) => File | void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@we-debug/gulp-tool",
3
- "version": "0.31.6",
3
+ "version": "0.33.0",
4
4
  "description": "we-debug, gulp",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types.d.ts",
@@ -32,5 +32,5 @@
32
32
  "readme": "ERROR: No README data found!",
33
33
  "_id": "@we-debug/gulp-tool@0.1.3",
34
34
  "_commitid": "f35f53c",
35
- "gitHead": "4f1d347d1c23c71efd2cea0e6635395f0d0e72b0"
35
+ "gitHead": "80c2980c0b35506f81896f14ec657580cf3bf796"
36
36
  }
package/src/lookup.ts CHANGED
@@ -21,7 +21,7 @@ export function lookupPages (projectDir: string) {
21
21
  const appJson: WechatMiniprogram.IAppJson = require(appPath);
22
22
 
23
23
  pages = appJson.pages;
24
- subpackages = appJson.subpackages || [];
24
+ subpackages = appJson.subpackages || appJson.subPackages || [];
25
25
 
26
26
  pages = pages.map(p => {
27
27
  return path.resolve(projectDir, p);
package/src/types.ts CHANGED
@@ -14,6 +14,7 @@ export namespace WechatMiniprogram {
14
14
  export interface IAppJson {
15
15
  pages: string[];
16
16
  subpackages?: AppJsonSubpages;
17
+ subPackages?: AppJsonSubpages;
17
18
  }
18
19
  }
19
20