@next-core/build-next-bricks 1.7.0 → 1.7.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.
- package/package.json +2 -2
- package/src/scanBricks.js +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/build-next-bricks",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.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,5 +51,5 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@next-core/brick-manifest": "^0.1.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "b6ca0aa67aae992ed7e6866bc1a9bc384cdb8f7b"
|
|
55
55
|
}
|
package/src/scanBricks.js
CHANGED
|
@@ -449,6 +449,10 @@ export default async function scanBricks(packageDir) {
|
|
|
449
449
|
* @param {string | undefined} overrideImport
|
|
450
450
|
*/
|
|
451
451
|
async function scanByImport([dirname, files], importFrom, overrideImport) {
|
|
452
|
+
// Ignore missing imports (maybe auto generated)
|
|
453
|
+
if (!existsSync(dirname)) {
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
452
456
|
const dirents = await readdir(dirname, { withFileTypes: true });
|
|
453
457
|
const possibleFilenames = [...files].map(
|
|
454
458
|
(filename) => new RegExp(`${escapeRegExp(filename)}\\.[tj]sx?$`)
|