tsds-lib-test 1.12.19 → 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.
@@ -69,18 +69,9 @@ function installGitRepo(repo, dest, options, callback) {
69
69
  stdio: 'inherit'
70
70
  }));
71
71
  }
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
- }));
82
72
  queue.defer(_crossspawncb.default.bind(null, 'npm', [
83
- 'install'
73
+ 'install',
74
+ '--silent'
84
75
  ], {
85
76
  cwd: dest
86
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)], { 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"}
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"}
@@ -54,18 +54,9 @@ export default function installGitRepo(repo, dest, options, callback) {
54
54
  stdio: 'inherit'
55
55
  }));
56
56
  }
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
- }));
67
57
  queue.defer(spawn.bind(null, 'npm', [
68
- 'install'
58
+ 'install',
59
+ '--silent'
69
60
  ], {
70
61
  cwd: dest
71
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)], { 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,IA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,OAAO;YAAC;SAAU,EAAE;YAAEM,KAAKd;QAAK;QAE7DW,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,WA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M,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.19",
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": "65f179efd5d31a0b3f98c4bac18872621a932b6e",
58
+ "gitHead": "523c4f4e9e559a6f12f90f4badb1836d4a17fdf2",
59
59
  "tsds": {
60
60
  "source": "src/index.ts"
61
61
  }