@tego/devkit 1.6.0-alpha.2 → 1.6.0-alpha.4
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.
|
@@ -249,6 +249,15 @@ async function buildPluginServer(cwd, userConfig, sourcemap, log) {
|
|
|
249
249
|
})
|
|
250
250
|
);
|
|
251
251
|
await buildServerDeps(cwd, serverFiles, log);
|
|
252
|
+
const gitkeepFiles = fg.globSync("src/server/collections/.gitkeep", { cwd, absolute: true });
|
|
253
|
+
if (gitkeepFiles.length > 0) {
|
|
254
|
+
const collectionsDistDir = path.join(cwd, target_dir, "server", "collections");
|
|
255
|
+
await fs.ensureDir(collectionsDistDir);
|
|
256
|
+
for (const gitkeepFile of gitkeepFiles) {
|
|
257
|
+
const destFile = path.join(collectionsDistDir, ".gitkeep");
|
|
258
|
+
await fs.copyFile(gitkeepFile, destFile);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
252
261
|
}
|
|
253
262
|
async function buildPluginClient(cwd, userConfig, sourcemap, log) {
|
|
254
263
|
log("build plugin client");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tego/devkit",
|
|
3
|
-
"version": "1.6.0-alpha.
|
|
3
|
+
"version": "1.6.0-alpha.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"update-notifier": "^7.3.1",
|
|
57
57
|
"vite": "^7.1.10",
|
|
58
58
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
59
|
-
"@tachybase/test": "1.6.0-alpha.
|
|
59
|
+
"@tachybase/test": "1.6.0-alpha.4"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/fs-extra": "^11.0.4",
|