tsds-lib-test 1.12.18 → 1.12.19
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.
|
@@ -42,36 +42,44 @@ function installGitRepo(repo, dest, options, callback) {
|
|
|
42
42
|
repo,
|
|
43
43
|
_path.default.basename(dest)
|
|
44
44
|
], {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
cwd: _path.default.dirname(dest),
|
|
46
|
+
stdio: 'inherit'
|
|
47
47
|
}));
|
|
48
48
|
} else {
|
|
49
49
|
queue.defer(_crossspawncb.default.bind(null, 'git', [
|
|
50
50
|
'clean',
|
|
51
51
|
'-fd'
|
|
52
52
|
], {
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
cwd: dest,
|
|
54
|
+
stdio: 'inherit'
|
|
55
55
|
}));
|
|
56
56
|
queue.defer(_crossspawncb.default.bind(null, 'git', [
|
|
57
57
|
'reset',
|
|
58
58
|
'--hard',
|
|
59
59
|
'HEAD'
|
|
60
60
|
], {
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
cwd: dest,
|
|
62
|
+
stdio: 'inherit'
|
|
63
63
|
}));
|
|
64
64
|
queue.defer(_crossspawncb.default.bind(null, 'git', [
|
|
65
65
|
'pull',
|
|
66
66
|
'--rebase'
|
|
67
67
|
], {
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
cwd: dest,
|
|
69
|
+
stdio: 'inherit'
|
|
70
70
|
}));
|
|
71
71
|
}
|
|
72
|
-
// install
|
|
72
|
+
// npm ci - not working due to binary incompatibilities - install without lockfile - https://github.com/npm/cli/issues/4828#issuecomment-2514987829
|
|
73
|
+
queue.defer(_crossspawncb.default.bind(null, 'git', [
|
|
74
|
+
'checkout',
|
|
75
|
+
'master',
|
|
76
|
+
'--',
|
|
77
|
+
'package-lock.json'
|
|
78
|
+
], {
|
|
79
|
+
cwd: dest,
|
|
80
|
+
stdio: 'inherit'
|
|
81
|
+
}));
|
|
73
82
|
queue.defer(_crossspawncb.default.bind(null, 'npm', [
|
|
74
|
-
'--silent',
|
|
75
83
|
'install'
|
|
76
84
|
], {
|
|
77
85
|
cwd: dest
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-dev-stack/packages/tsds-lib-test/src/lib/installGitRepo.ts"],"sourcesContent":["import path from 'path';\nimport spawn from 'cross-spawn-cb';\nimport access from 'fs-access-compat';\nimport mkdirp from 'mkdirp-classic';\nimport Queue from 'queue-cb';\nimport rimraf2 from 'rimraf2';\n\nexport default function installGitRepo(repo: string, dest: string, options, callback?) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n options = options || {};\n console.log('installGitRepo', repo, dest);\n // options.clean = true;\n\n function checkOrClean(dest, callback) {\n options.clean ? rimraf2(dest, { disableGlob: true }, callback.bind(null, new Error('clone'))) : access(dest, callback);\n }\n\n checkOrClean(dest, (err) => {\n const queue = new Queue(1);\n queue.defer(mkdirp.bind(null, dest));\n\n // does not exist - clone\n if (err) {\n queue.defer(spawn.bind(null, 'git', ['clone', repo, path.basename(dest)], {
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-dev-stack/packages/tsds-lib-test/src/lib/installGitRepo.ts"],"sourcesContent":["import path from 'path';\nimport spawn from 'cross-spawn-cb';\nimport access from 'fs-access-compat';\nimport mkdirp from 'mkdirp-classic';\nimport Queue from 'queue-cb';\nimport rimraf2 from 'rimraf2';\n\nexport default function installGitRepo(repo: string, dest: string, options, callback?) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n options = options || {};\n console.log('installGitRepo', repo, dest);\n // options.clean = true;\n\n function checkOrClean(dest, callback) {\n options.clean ? rimraf2(dest, { disableGlob: true }, callback.bind(null, new Error('clone'))) : access(dest, callback);\n }\n\n checkOrClean(dest, (err) => {\n const queue = new Queue(1);\n queue.defer(mkdirp.bind(null, dest));\n\n // does not exist - clone\n if (err) {\n queue.defer(spawn.bind(null, 'git', ['clone', repo, path.basename(dest)], { cwd: path.dirname(dest), stdio: 'inherit' }));\n }\n // exists - reset git\n else {\n queue.defer(spawn.bind(null, 'git', ['clean', '-fd'], { cwd: dest, stdio: 'inherit' }));\n queue.defer(spawn.bind(null, 'git', ['reset', '--hard', 'HEAD'], { cwd: dest, stdio: 'inherit' }));\n queue.defer(spawn.bind(null, 'git', ['pull', '--rebase'], { cwd: dest, stdio: 'inherit' }));\n }\n\n // npm ci - not working due to binary incompatibilities - install without lockfile - https://github.com/npm/cli/issues/4828#issuecomment-2514987829\n queue.defer(spawn.bind(null, 'git', ['checkout', 'master', '--', 'package-lock.json'], { cwd: dest, stdio: 'inherit' }));\n queue.defer(spawn.bind(null, 'npm', ['install'], { cwd: dest }));\n\n queue.await(callback);\n });\n}\n"],"names":["installGitRepo","repo","dest","options","callback","console","log","checkOrClean","clean","rimraf2","disableGlob","bind","Error","access","err","queue","Queue","defer","mkdirp","spawn","path","basename","cwd","dirname","stdio","await"],"mappings":";;;;+BAOA;;;eAAwBA;;;2DAPP;mEACC;qEACC;oEACA;8DACD;8DACE;;;;;;AAEL,SAASA,eAAeC,IAAY,EAAEC,IAAY,EAAEC,OAAO,EAAEC,QAAS;IACnF,IAAI,OAAOD,YAAY,YAAY;QACjCC,WAAWD;QACXA,UAAU,CAAC;IACb;IACAA,UAAUA,WAAW,CAAC;IACtBE,QAAQC,GAAG,CAAC,kBAAkBL,MAAMC;IACpC,wBAAwB;IAExB,SAASK,aAAaL,IAAI,EAAEE,QAAQ;QAClCD,QAAQK,KAAK,GAAGC,IAAAA,gBAAO,EAACP,MAAM;YAAEQ,aAAa;QAAK,GAAGN,SAASO,IAAI,CAAC,MAAM,IAAIC,MAAM,aAAaC,IAAAA,uBAAM,EAACX,MAAME;IAC/G;IAEAG,aAAaL,MAAM,SAACY;QAClB,IAAMC,QAAQ,IAAIC,gBAAK,CAAC;QACxBD,MAAME,KAAK,CAACC,sBAAM,CAACP,IAAI,CAAC,MAAMT;QAE9B,yBAAyB;QACzB,IAAIY,KAAK;YACPC,MAAME,KAAK,CAACE,qBAAK,CAACR,IAAI,CAAC,MAAM,OAAO;gBAAC;gBAASV;gBAAMmB,aAAI,CAACC,QAAQ,CAACnB;aAAM,EAAE;gBAAEoB,KAAKF,aAAI,CAACG,OAAO,CAACrB;gBAAOsB,OAAO;YAAU;QACxH,OAEK;YACHT,MAAME,KAAK,CAACE,qBAAK,CAACR,IAAI,CAAC,MAAM,OAAO;gBAAC;gBAAS;aAAM,EAAE;gBAAEW,KAAKpB;gBAAMsB,OAAO;YAAU;YACpFT,MAAME,KAAK,CAACE,qBAAK,CAACR,IAAI,CAAC,MAAM,OAAO;gBAAC;gBAAS;gBAAU;aAAO,EAAE;gBAAEW,KAAKpB;gBAAMsB,OAAO;YAAU;YAC/FT,MAAME,KAAK,CAACE,qBAAK,CAACR,IAAI,CAAC,MAAM,OAAO;gBAAC;gBAAQ;aAAW,EAAE;gBAAEW,KAAKpB;gBAAMsB,OAAO;YAAU;QAC1F;QAEA,mJAAmJ;QACnJT,MAAME,KAAK,CAACE,qBAAK,CAACR,IAAI,CAAC,MAAM,OAAO;YAAC;YAAY;YAAU;YAAM;SAAoB,EAAE;YAAEW,KAAKpB;YAAMsB,OAAO;QAAU;QACrHT,MAAME,KAAK,CAACE,qBAAK,CAACR,IAAI,CAAC,MAAM,OAAO;YAAC;SAAU,EAAE;YAAEW,KAAKpB;QAAK;QAE7Da,MAAMU,KAAK,CAACrB;IACd;AACF"}
|
|
@@ -27,36 +27,44 @@ export default function installGitRepo(repo, dest, options, callback) {
|
|
|
27
27
|
repo,
|
|
28
28
|
path.basename(dest)
|
|
29
29
|
], {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
cwd: path.dirname(dest),
|
|
31
|
+
stdio: 'inherit'
|
|
32
32
|
}));
|
|
33
33
|
} else {
|
|
34
34
|
queue.defer(spawn.bind(null, 'git', [
|
|
35
35
|
'clean',
|
|
36
36
|
'-fd'
|
|
37
37
|
], {
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
cwd: dest,
|
|
39
|
+
stdio: 'inherit'
|
|
40
40
|
}));
|
|
41
41
|
queue.defer(spawn.bind(null, 'git', [
|
|
42
42
|
'reset',
|
|
43
43
|
'--hard',
|
|
44
44
|
'HEAD'
|
|
45
45
|
], {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
cwd: dest,
|
|
47
|
+
stdio: 'inherit'
|
|
48
48
|
}));
|
|
49
49
|
queue.defer(spawn.bind(null, 'git', [
|
|
50
50
|
'pull',
|
|
51
51
|
'--rebase'
|
|
52
52
|
], {
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
cwd: dest,
|
|
54
|
+
stdio: 'inherit'
|
|
55
55
|
}));
|
|
56
56
|
}
|
|
57
|
-
// install
|
|
57
|
+
// npm ci - not working due to binary incompatibilities - install without lockfile - https://github.com/npm/cli/issues/4828#issuecomment-2514987829
|
|
58
|
+
queue.defer(spawn.bind(null, 'git', [
|
|
59
|
+
'checkout',
|
|
60
|
+
'master',
|
|
61
|
+
'--',
|
|
62
|
+
'package-lock.json'
|
|
63
|
+
], {
|
|
64
|
+
cwd: dest,
|
|
65
|
+
stdio: 'inherit'
|
|
66
|
+
}));
|
|
58
67
|
queue.defer(spawn.bind(null, 'npm', [
|
|
59
|
-
'--silent',
|
|
60
68
|
'install'
|
|
61
69
|
], {
|
|
62
70
|
cwd: dest
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-dev-stack/packages/tsds-lib-test/src/lib/installGitRepo.ts"],"sourcesContent":["import path from 'path';\nimport spawn from 'cross-spawn-cb';\nimport access from 'fs-access-compat';\nimport mkdirp from 'mkdirp-classic';\nimport Queue from 'queue-cb';\nimport rimraf2 from 'rimraf2';\n\nexport default function installGitRepo(repo: string, dest: string, options, callback?) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n options = options || {};\n console.log('installGitRepo', repo, dest);\n // options.clean = true;\n\n function checkOrClean(dest, callback) {\n options.clean ? rimraf2(dest, { disableGlob: true }, callback.bind(null, new Error('clone'))) : access(dest, callback);\n }\n\n checkOrClean(dest, (err) => {\n const queue = new Queue(1);\n queue.defer(mkdirp.bind(null, dest));\n\n // does not exist - clone\n if (err) {\n queue.defer(spawn.bind(null, 'git', ['clone', repo, path.basename(dest)], {
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-dev-stack/packages/tsds-lib-test/src/lib/installGitRepo.ts"],"sourcesContent":["import path from 'path';\nimport spawn from 'cross-spawn-cb';\nimport access from 'fs-access-compat';\nimport mkdirp from 'mkdirp-classic';\nimport Queue from 'queue-cb';\nimport rimraf2 from 'rimraf2';\n\nexport default function installGitRepo(repo: string, dest: string, options, callback?) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n options = options || {};\n console.log('installGitRepo', repo, dest);\n // options.clean = true;\n\n function checkOrClean(dest, callback) {\n options.clean ? rimraf2(dest, { disableGlob: true }, callback.bind(null, new Error('clone'))) : access(dest, callback);\n }\n\n checkOrClean(dest, (err) => {\n const queue = new Queue(1);\n queue.defer(mkdirp.bind(null, dest));\n\n // does not exist - clone\n if (err) {\n queue.defer(spawn.bind(null, 'git', ['clone', repo, path.basename(dest)], { cwd: path.dirname(dest), stdio: 'inherit' }));\n }\n // exists - reset git\n else {\n queue.defer(spawn.bind(null, 'git', ['clean', '-fd'], { cwd: dest, stdio: 'inherit' }));\n queue.defer(spawn.bind(null, 'git', ['reset', '--hard', 'HEAD'], { cwd: dest, stdio: 'inherit' }));\n queue.defer(spawn.bind(null, 'git', ['pull', '--rebase'], { cwd: dest, stdio: 'inherit' }));\n }\n\n // npm ci - not working due to binary incompatibilities - install without lockfile - https://github.com/npm/cli/issues/4828#issuecomment-2514987829\n queue.defer(spawn.bind(null, 'git', ['checkout', 'master', '--', 'package-lock.json'], { cwd: dest, stdio: 'inherit' }));\n queue.defer(spawn.bind(null, 'npm', ['install'], { cwd: dest }));\n\n queue.await(callback);\n });\n}\n"],"names":["path","spawn","access","mkdirp","Queue","rimraf2","installGitRepo","repo","dest","options","callback","console","log","checkOrClean","clean","disableGlob","bind","Error","err","queue","defer","basename","cwd","dirname","stdio","await"],"mappings":"AAAA,OAAOA,UAAU,OAAO;AACxB,OAAOC,WAAW,iBAAiB;AACnC,OAAOC,YAAY,mBAAmB;AACtC,OAAOC,YAAY,iBAAiB;AACpC,OAAOC,WAAW,WAAW;AAC7B,OAAOC,aAAa,UAAU;AAE9B,eAAe,SAASC,eAAeC,IAAY,EAAEC,IAAY,EAAEC,OAAO,EAAEC,QAAS;IACnF,IAAI,OAAOD,YAAY,YAAY;QACjCC,WAAWD;QACXA,UAAU,CAAC;IACb;IACAA,UAAUA,WAAW,CAAC;IACtBE,QAAQC,GAAG,CAAC,kBAAkBL,MAAMC;IACpC,wBAAwB;IAExB,SAASK,aAAaL,IAAI,EAAEE,QAAQ;QAClCD,QAAQK,KAAK,GAAGT,QAAQG,MAAM;YAAEO,aAAa;QAAK,GAAGL,SAASM,IAAI,CAAC,MAAM,IAAIC,MAAM,aAAaf,OAAOM,MAAME;IAC/G;IAEAG,aAAaL,MAAM,CAACU;QAClB,MAAMC,QAAQ,IAAIf,MAAM;QACxBe,MAAMC,KAAK,CAACjB,OAAOa,IAAI,CAAC,MAAMR;QAE9B,yBAAyB;QACzB,IAAIU,KAAK;YACPC,MAAMC,KAAK,CAACnB,MAAMe,IAAI,CAAC,MAAM,OAAO;gBAAC;gBAAST;gBAAMP,KAAKqB,QAAQ,CAACb;aAAM,EAAE;gBAAEc,KAAKtB,KAAKuB,OAAO,CAACf;gBAAOgB,OAAO;YAAU;QACxH,OAEK;YACHL,MAAMC,KAAK,CAACnB,MAAMe,IAAI,CAAC,MAAM,OAAO;gBAAC;gBAAS;aAAM,EAAE;gBAAEM,KAAKd;gBAAMgB,OAAO;YAAU;YACpFL,MAAMC,KAAK,CAACnB,MAAMe,IAAI,CAAC,MAAM,OAAO;gBAAC;gBAAS;gBAAU;aAAO,EAAE;gBAAEM,KAAKd;gBAAMgB,OAAO;YAAU;YAC/FL,MAAMC,KAAK,CAACnB,MAAMe,IAAI,CAAC,MAAM,OAAO;gBAAC;gBAAQ;aAAW,EAAE;gBAAEM,KAAKd;gBAAMgB,OAAO;YAAU;QAC1F;QAEA,mJAAmJ;QACnJL,MAAMC,KAAK,CAACnB,MAAMe,IAAI,CAAC,MAAM,OAAO;YAAC;YAAY;YAAU;YAAM;SAAoB,EAAE;YAAEM,KAAKd;YAAMgB,OAAO;QAAU;QACrHL,MAAMC,KAAK,CAACnB,MAAMe,IAAI,CAAC,MAAM,OAAO;YAAC;SAAU,EAAE;YAAEM,KAAKd;QAAK;QAE7DW,MAAMM,KAAK,CAACf;IACd;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsds-lib-test",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.19",
|
|
4
4
|
"description": "Development stack for TypeScript libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dev",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=0.8"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "65f179efd5d31a0b3f98c4bac18872621a932b6e",
|
|
59
59
|
"tsds": {
|
|
60
60
|
"source": "src/index.ts"
|
|
61
61
|
}
|