@bee-hole/server 1.81.2 → 1.81.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bee-hole/server",
|
|
3
|
-
"version": "1.81.
|
|
3
|
+
"version": "1.81.4",
|
|
4
4
|
"description": "www.bee-hole.com",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"directories": {
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"storage/**/*",
|
|
31
31
|
"resource/public/favicon.ico",
|
|
32
32
|
"resource/public/cp/**/*",
|
|
33
|
+
"resource/public/html/**/*",
|
|
33
34
|
"resource/template/**/*",
|
|
34
35
|
"resource/template/**/*",
|
|
35
36
|
"i18n/**/*",
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bee-home-admin-web",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "www.bee-hole.com admin web",
|
|
5
|
+
"main": "run.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "node ./run.js"
|
|
8
|
+
},
|
|
9
|
+
"author": "www.bee-hole.com",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"beehole-store-admin": "0.0.5"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const sourceDir = './node_modules/beehole-store-admin/dist';
|
|
4
|
+
const targetDir = './';
|
|
5
|
+
|
|
6
|
+
// 使用fs.stat()方法检查目录是否存在
|
|
7
|
+
fs.stat(sourceDir, (err, stats) => {
|
|
8
|
+
if (err) {
|
|
9
|
+
if (err.code === 'ENOENT') {
|
|
10
|
+
console.log('Directory does not exist. please run "npm install" first.');
|
|
11
|
+
} else {
|
|
12
|
+
console.error('Error checking directory:', err);
|
|
13
|
+
}
|
|
14
|
+
} else {
|
|
15
|
+
if (stats.isDirectory()) {
|
|
16
|
+
copyDirectory(sourceDir, targetDir);
|
|
17
|
+
console.log('ready!');
|
|
18
|
+
} else {
|
|
19
|
+
console.log('Path exists, but it is not a directory.');
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
function copyDirectory(sourceDir, targetDir) {
|
|
24
|
+
if (!fs.existsSync(targetDir)) {
|
|
25
|
+
fs.mkdirSync(targetDir);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const files = fs.readdirSync(sourceDir);
|
|
29
|
+
|
|
30
|
+
files.forEach((file) => {
|
|
31
|
+
const sourcePath = path.join(sourceDir, file);
|
|
32
|
+
const targetPath = path.join(targetDir, file);
|
|
33
|
+
|
|
34
|
+
if (fs.lstatSync(sourcePath).isDirectory()) {
|
|
35
|
+
copyDirectory(sourcePath, targetPath);
|
|
36
|
+
} else {
|
|
37
|
+
fs.copyFileSync(sourcePath, targetPath);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
|
package/version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v1.81.
|
|
1
|
+
v1.81.4
|