@next-core/build-next-bricks 1.22.3 → 1.23.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-core/build-next-bricks",
3
- "version": "1.22.3",
3
+ "version": "1.23.0",
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",
@@ -46,16 +46,16 @@
46
46
  "less-loader": "^12.2.0",
47
47
  "lodash": "^4.17.21",
48
48
  "mini-css-extract-plugin": "^2.9.0",
49
- "postcss": "^8.4.38",
49
+ "postcss": "^8.4.39",
50
50
  "postcss-loader": "^8.1.1",
51
- "postcss-preset-env": "^9.5.14",
51
+ "postcss-preset-env": "^9.5.15",
52
52
  "prettier": "^3.3.2",
53
53
  "style-loader": "^4.0.0",
54
- "typescript": "^5.5.2",
54
+ "typescript": "^5.5.3",
55
55
  "webpack": "^5.92.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@next-core/brick-manifest": "^0.7.1"
59
59
  },
60
- "gitHead": "36c8a4716968dd00ad9f35a10e5bcf5c5748f0a1"
60
+ "gitHead": "a99b2a11f649a14bdbc2b6f32f39c9ea0552200e"
61
61
  }
package/src/scanBricks.js CHANGED
@@ -288,7 +288,10 @@ export default async function scanBricks(packageDir) {
288
288
  if (fullName.includes(".")) {
289
289
  [editorNamespace, editorName] = fullName.split(".");
290
290
 
291
- if (editorNamespace !== packageName) {
291
+ if (
292
+ editorNamespace !== packageName &&
293
+ packageName !== "widget-editors"
294
+ ) {
292
295
  throw new Error(
293
296
  `Invalid editor: "${fullName}", expecting prefixed with the package name: "${packageName}"`
294
297
  );