tsds-lib-test 1.12.18 → 1.12.20

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,37 +42,36 @@ function installGitRepo(repo, dest, options, callback) {
42
42
  repo,
43
43
  _path.default.basename(dest)
44
44
  ], {
45
- stdio: 'inherit',
46
- cwd: _path.default.dirname(dest)
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
- stdio: 'inherit',
54
- cwd: dest
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
- stdio: 'inherit',
62
- cwd: dest
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
- stdio: 'inherit',
69
- cwd: dest
68
+ cwd: dest,
69
+ stdio: 'inherit'
70
70
  }));
71
71
  }
72
- // install
73
72
  queue.defer(_crossspawncb.default.bind(null, 'npm', [
74
- '--silent',
75
- 'install'
73
+ 'install',
74
+ '--silent'
76
75
  ], {
77
76
  cwd: dest
78
77
  }));
@@ -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)], { stdio: 'inherit', cwd: path.dirname(dest) }));\n }\n // exists - reset git\n else {\n queue.defer(spawn.bind(null, 'git', ['clean', '-fd'], { stdio: 'inherit', cwd: dest }));\n queue.defer(spawn.bind(null, 'git', ['reset', '--hard', 'HEAD'], { stdio: 'inherit', cwd: dest }));\n queue.defer(spawn.bind(null, 'git', ['pull', '--rebase'], { stdio: 'inherit', cwd: dest }));\n }\n\n // install\n queue.defer(spawn.bind(null, 'npm', ['--silent', '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","stdio","cwd","dirname","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,OAAO;gBAAWC,KAAKH,aAAI,CAACI,OAAO,CAACtB;YAAM;QACxH,OAEK;YACHa,MAAME,KAAK,CAACE,qBAAK,CAACR,IAAI,CAAC,MAAM,OAAO;gBAAC;gBAAS;aAAM,EAAE;gBAAEW,OAAO;gBAAWC,KAAKrB;YAAK;YACpFa,MAAME,KAAK,CAACE,qBAAK,CAACR,IAAI,CAAC,MAAM,OAAO;gBAAC;gBAAS;gBAAU;aAAO,EAAE;gBAAEW,OAAO;gBAAWC,KAAKrB;YAAK;YAC/Fa,MAAME,KAAK,CAACE,qBAAK,CAACR,IAAI,CAAC,MAAM,OAAO;gBAAC;gBAAQ;aAAW,EAAE;gBAAEW,OAAO;gBAAWC,KAAKrB;YAAK;QAC1F;QAEA,UAAU;QACVa,MAAME,KAAK,CAACE,qBAAK,CAACR,IAAI,CAAC,MAAM,OAAO;YAAC;YAAY;SAAU,EAAE;YAAEY,KAAKrB;QAAK;QAEzEa,MAAMU,KAAK,CAACrB;IACd;AACF"}
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 queue.defer(spawn.bind(null, 'npm', ['install', '--silent'], { 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;QAEAT,MAAME,KAAK,CAACE,qBAAK,CAACR,IAAI,CAAC,MAAM,OAAO;YAAC;YAAW;SAAW,EAAE;YAAEW,KAAKpB;QAAK;QAEzEa,MAAMU,KAAK,CAACrB;IACd;AACF"}
@@ -27,37 +27,36 @@ export default function installGitRepo(repo, dest, options, callback) {
27
27
  repo,
28
28
  path.basename(dest)
29
29
  ], {
30
- stdio: 'inherit',
31
- cwd: path.dirname(dest)
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
- stdio: 'inherit',
39
- cwd: dest
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
- stdio: 'inherit',
47
- cwd: dest
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
- stdio: 'inherit',
54
- cwd: dest
53
+ cwd: dest,
54
+ stdio: 'inherit'
55
55
  }));
56
56
  }
57
- // install
58
57
  queue.defer(spawn.bind(null, 'npm', [
59
- '--silent',
60
- 'install'
58
+ 'install',
59
+ '--silent'
61
60
  ], {
62
61
  cwd: dest
63
62
  }));
@@ -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)], { stdio: 'inherit', cwd: path.dirname(dest) }));\n }\n // exists - reset git\n else {\n queue.defer(spawn.bind(null, 'git', ['clean', '-fd'], { stdio: 'inherit', cwd: dest }));\n queue.defer(spawn.bind(null, 'git', ['reset', '--hard', 'HEAD'], { stdio: 'inherit', cwd: dest }));\n queue.defer(spawn.bind(null, 'git', ['pull', '--rebase'], { stdio: 'inherit', cwd: dest }));\n }\n\n // install\n queue.defer(spawn.bind(null, 'npm', ['--silent', '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","stdio","cwd","dirname","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,OAAO;gBAAWC,KAAKvB,KAAKwB,OAAO,CAAChB;YAAM;QACxH,OAEK;YACHW,MAAMC,KAAK,CAACnB,MAAMe,IAAI,CAAC,MAAM,OAAO;gBAAC;gBAAS;aAAM,EAAE;gBAAEM,OAAO;gBAAWC,KAAKf;YAAK;YACpFW,MAAMC,KAAK,CAACnB,MAAMe,IAAI,CAAC,MAAM,OAAO;gBAAC;gBAAS;gBAAU;aAAO,EAAE;gBAAEM,OAAO;gBAAWC,KAAKf;YAAK;YAC/FW,MAAMC,KAAK,CAACnB,MAAMe,IAAI,CAAC,MAAM,OAAO;gBAAC;gBAAQ;aAAW,EAAE;gBAAEM,OAAO;gBAAWC,KAAKf;YAAK;QAC1F;QAEA,UAAU;QACVW,MAAMC,KAAK,CAACnB,MAAMe,IAAI,CAAC,MAAM,OAAO;YAAC;YAAY;SAAU,EAAE;YAAEO,KAAKf;QAAK;QAEzEW,MAAMM,KAAK,CAACf;IACd;AACF"}
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 queue.defer(spawn.bind(null, 'npm', ['install', '--silent'], { 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;QAEAL,MAAMC,KAAK,CAACnB,MAAMe,IAAI,CAAC,MAAM,OAAO;YAAC;YAAW;SAAW,EAAE;YAAEM,KAAKd;QAAK;QAEzEW,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.18",
3
+ "version": "1.12.20",
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": "edc52c2f5d9f5a04ece7ed5f617b7f3b6dd53d96",
58
+ "gitHead": "523c4f4e9e559a6f12f90f4badb1836d4a17fdf2",
59
59
  "tsds": {
60
60
  "source": "src/index.ts"
61
61
  }