verteilen-core 1.3.28 → 1.3.30
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PluginGenData, PluginNode } from '../interface';
|
|
2
|
-
export declare const PluginBuild: (plugins: PluginNode, templates: PluginGenData) => void;
|
|
2
|
+
export declare const PluginBuild: (root: string, plugins: PluginNode, templates: PluginGenData) => void;
|
|
@@ -37,18 +37,18 @@ exports.PluginBuild = void 0;
|
|
|
37
37
|
const fs = __importStar(require("fs"));
|
|
38
38
|
const path = __importStar(require("path"));
|
|
39
39
|
const interface_1 = require("../interface");
|
|
40
|
-
const PluginBuild = (plugins, templates) => {
|
|
40
|
+
const PluginBuild = (root, plugins, templates) => {
|
|
41
41
|
console.log("Activate Plugin Build Process...");
|
|
42
|
-
const root = path.join(__dirname, 'dist');
|
|
43
42
|
const root_p = path.join(root, 'project');
|
|
44
43
|
const root_d = path.join(root, 'database');
|
|
45
44
|
const m_path = path.join(root, 'manifest.json');
|
|
45
|
+
console.log("Root: ", root);
|
|
46
46
|
if (!fs.existsSync(root))
|
|
47
|
-
fs.mkdirSync(root);
|
|
47
|
+
fs.mkdirSync(root, { recursive: true });
|
|
48
48
|
if (!fs.existsSync(root_p))
|
|
49
|
-
fs.mkdirSync(root_p);
|
|
49
|
+
fs.mkdirSync(root_p, { recursive: true });
|
|
50
50
|
if (!fs.existsSync(root_d))
|
|
51
|
-
fs.mkdirSync(root_d);
|
|
51
|
+
fs.mkdirSync(root_d, { recursive: true });
|
|
52
52
|
let manifest = {
|
|
53
53
|
thumbnail: "",
|
|
54
54
|
icon: "",
|
package/package.json
CHANGED
|
@@ -2,15 +2,15 @@ import * as fs from 'fs'
|
|
|
2
2
|
import * as path from 'path'
|
|
3
3
|
import { CreateDefaultProject, DatabaseContainer, PluginContainer, PluginGenData, PluginNode, Project } from '../interface'
|
|
4
4
|
|
|
5
|
-
export const PluginBuild = (plugins:PluginNode, templates:PluginGenData) => {
|
|
5
|
+
export const PluginBuild = (root:string, plugins:PluginNode, templates:PluginGenData) => {
|
|
6
6
|
console.log("Activate Plugin Build Process...")
|
|
7
|
-
const root = path.join(__dirname, 'dist')
|
|
8
7
|
const root_p = path.join(root, 'project')
|
|
9
8
|
const root_d = path.join(root, 'database')
|
|
10
9
|
const m_path = path.join(root, 'manifest.json')
|
|
11
|
-
|
|
12
|
-
if(!fs.existsSync(
|
|
13
|
-
if(!fs.existsSync(
|
|
10
|
+
console.log("Root: ", root)
|
|
11
|
+
if(!fs.existsSync(root)) fs.mkdirSync(root, { recursive: true })
|
|
12
|
+
if(!fs.existsSync(root_p)) fs.mkdirSync(root_p, { recursive: true })
|
|
13
|
+
if(!fs.existsSync(root_d)) fs.mkdirSync(root_d, { recursive: true })
|
|
14
14
|
|
|
15
15
|
let manifest:PluginContainer = {
|
|
16
16
|
thumbnail: "",
|