@next-core/build-next-bricks 1.14.6 → 1.15.1

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.
@@ -2,6 +2,7 @@
2
2
  import path from "node:path";
3
3
  import { existsSync } from "node:fs";
4
4
  import { mkdir, rm, writeFile } from "node:fs/promises";
5
+ import { pathToFileURL } from "node:url";
5
6
  import build from "../src/build.js";
6
7
  import scanBricks from "../src/scanBricks.js";
7
8
  import generatePkgBuild from "../src/generatePkgBuild.js";
@@ -24,7 +25,7 @@ try {
24
25
  /** @type {MaybeArray<BuildNextBricksConfig>} */
25
26
  let rawConfig = {};
26
27
  if (existsSync(configJs)) {
27
- rawConfig = (await import(configJs)).default;
28
+ rawConfig = (await import(pathToFileURL(configJs))).default;
28
29
  }
29
30
 
30
31
  /** @type {Array<BuildNextBricksConfig>} */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-core/build-next-bricks",
3
- "version": "1.14.6",
3
+ "version": "1.15.1",
4
4
  "description": "Build next bricks",
5
5
  "homepage": "https://github.com/easyops-cn/next-core/tree/v3/packages/build-next-bricks",
6
6
  "license": "GPL-3.0",
@@ -51,7 +51,7 @@
51
51
  "webpack": "^5.89.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@next-core/brick-manifest": "^0.5.1"
54
+ "@next-core/brick-manifest": "^0.6.0"
55
55
  },
56
- "gitHead": "f1dbcc4d91c0036395d385c9e60af7b4159a292f"
56
+ "gitHead": "d042ef8de2125fe8ec30dd673b4bc8c85c2eb289"
57
57
  }
@@ -99,6 +99,12 @@ export default function makeBrickManifest(name, alias, nodePath, source) {
99
99
  });
100
100
  break;
101
101
  }
102
+ case "category": {
103
+ if (tag.description) {
104
+ manifest.category = tag.description;
105
+ }
106
+ break;
107
+ }
102
108
  }
103
109
  }
104
110
  }