@next-core/brick-playground 1.15.51 → 1.15.52
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 +3 -3
- package/serve/index.js +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/brick-playground",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.52",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-core/tree/v3/packages/brick-playground",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@next-core/doc-helpers": "^0.2.16",
|
|
27
|
-
"@next-core/serve-helpers": "^1.2.
|
|
27
|
+
"@next-core/serve-helpers": "^1.2.5",
|
|
28
28
|
"compression": "^1.7.5",
|
|
29
29
|
"express": "^4.21.1",
|
|
30
30
|
"glob": "^8.1.0"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"monaco-editor-webpack-plugin": "^7.1.0",
|
|
41
41
|
"webpack-dev-server": "^5.1.0"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "8812cea851e26053421fa7f225af746eb2896ae6"
|
|
44
44
|
}
|
package/serve/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { existsSync } from "node:fs";
|
|
|
4
4
|
import express from "express";
|
|
5
5
|
import compression from "compression";
|
|
6
6
|
import glob from "glob";
|
|
7
|
+
import { serveBricks } from "@next-core/serve-helpers";
|
|
7
8
|
import bootstrapJson from "./bootstrapJson.js";
|
|
8
9
|
import examplesJson from "./examplesJson.js";
|
|
9
10
|
|
|
@@ -46,9 +47,7 @@ const localBrickFolders = (
|
|
|
46
47
|
)
|
|
47
48
|
).flat();
|
|
48
49
|
|
|
49
|
-
|
|
50
|
-
app.use("/preview/bricks/", express.static(folder));
|
|
51
|
-
}
|
|
50
|
+
app.use("/preview/bricks/", serveBricks({ localBrickFolders }));
|
|
52
51
|
|
|
53
52
|
app.use("/preview/", bootstrapJson(localBrickFolders));
|
|
54
53
|
app.use(examplesJson(rootDir));
|