@aj-shadow/z-abs-complayer-codeeditor-server 0.0.0-aj-beta.237 → 0.0.0-aj-beta.239
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/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aj-shadow/z-abs-complayer-codeeditor-server",
|
|
3
|
-
"version": "0.0.0-aj-beta.
|
|
3
|
+
"version": "0.0.0-aj-beta.239",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@aj-shadow/z-abs-complayer-codeeditor-server",
|
|
9
|
-
"version": "0.0.0-aj-beta.
|
|
9
|
+
"version": "0.0.0-aj-beta.239",
|
|
10
10
|
"license": "MIT"
|
|
11
11
|
}
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ const Os = require('os');
|
|
|
7
7
|
class TemplatePostinstall {
|
|
8
8
|
static create() {
|
|
9
9
|
const text = `
|
|
10
|
-
const
|
|
10
|
+
const { simpleGit } = require('simple-git');
|
|
11
11
|
const ChildProcess = require('child_process');
|
|
12
12
|
const Fs = require('fs');
|
|
13
13
|
const Path = require('path');
|
|
@@ -57,7 +57,7 @@ zRepos('actorjs-documentation-text', 'Documentation');
|
|
|
57
57
|
|
|
58
58
|
function cloneRepo(dir, repo) {
|
|
59
59
|
console.log('git clone repo ' + repo);
|
|
60
|
-
|
|
60
|
+
simpleGit(dir).clone(repo, (err, result) => {
|
|
61
61
|
console.log('git clone repo ' + repo + (err ? ', err: ' + err.message : ' SUCCESS') + (result ? ', result: ' + result : ''));
|
|
62
62
|
});
|
|
63
63
|
}
|
|
@@ -69,7 +69,7 @@ function isRepo(dir, handle) {
|
|
|
69
69
|
}
|
|
70
70
|
else {
|
|
71
71
|
if(stats.isDirectory()) {
|
|
72
|
-
|
|
72
|
+
simpleGit(dir).checkIsRepo((err, result) => {
|
|
73
73
|
handle && handle(err, result);
|
|
74
74
|
});
|
|
75
75
|
}
|