tsds-web-test-runner 1.8.8 → 1.8.11
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/dist/cjs/command.js
CHANGED
|
@@ -79,9 +79,7 @@ function worker(args, options, callback) {
|
|
|
79
79
|
(0, _linkunlink.link)(cwd, (0, _tsdslib.installPath)(options), function(err, restore) {
|
|
80
80
|
if (err) return callback(err);
|
|
81
81
|
var queue = new _queuecb.default(1);
|
|
82
|
-
queue.defer(_crossspawncb.default.bind(null, spawnArgs[0], spawnArgs.slice(1),
|
|
83
|
-
cwd: cwd
|
|
84
|
-
}));
|
|
82
|
+
queue.defer(_crossspawncb.default.bind(null, spawnArgs[0], spawnArgs.slice(1), options));
|
|
85
83
|
queue.await(function(err) {
|
|
86
84
|
(0, _linkunlink.unlink)(restore, function(err2) {
|
|
87
85
|
callback(err || err2);
|
package/dist/cjs/command.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-dev-stack/packages/tsds-web-test-runner/src/command.ts"],"sourcesContent":["import path from 'path';\nimport url from 'url';\nimport spawn from 'cross-spawn-cb';\nimport getopts from 'getopts-compat';\nimport { link, unlink } from 'link-unlink';\nimport moduleRoot from 'module-root-sync';\nimport which from 'module-which';\nimport Queue from 'queue-cb';\nimport { installPath, wrapWorker } from 'tsds-lib';\n\nconst __dirname = path.dirname(typeof __filename !== 'undefined' ? __filename : url.fileURLToPath(import.meta.url));\nconst major = +process.versions.node.split('.')[0];\nconst workerWrapper = wrapWorker(path.join(moduleRoot(__dirname), 'dist', 'cjs', 'command.js'));\nconst config = path.resolve(moduleRoot(__dirname), 'dist', 'esm', 'wtr.config.mjs');\n\nfunction worker(args, options, callback) {\n which('wtr', options, (err, wtr) => {\n if (err) return callback(err);\n const cwd = options.cwd || process.cwd();\n const { _, ...opts } = getopts(args, { stopEarly: true, alias: { config: 'c' } });\n const spawnArgs = [wtr];\n if (!opts.config) Array.prototype.push.apply(spawnArgs, ['--config', config]);\n Array.prototype.push.apply(spawnArgs, args);\n if (_.length === 0) Array.prototype.push.apply(spawnArgs, ['test/**/*.test.{ts,tsx,jsx,mjs}']);\n\n link(cwd, installPath(options), (err, restore) => {\n if (err) return callback(err);\n\n const queue = new Queue(1);\n queue.defer(spawn.bind(null, spawnArgs[0], spawnArgs.slice(1),
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-dev-stack/packages/tsds-web-test-runner/src/command.ts"],"sourcesContent":["import path from 'path';\nimport url from 'url';\nimport spawn from 'cross-spawn-cb';\nimport getopts from 'getopts-compat';\nimport { link, unlink } from 'link-unlink';\nimport moduleRoot from 'module-root-sync';\nimport which from 'module-which';\nimport Queue from 'queue-cb';\nimport { installPath, wrapWorker } from 'tsds-lib';\n\nconst __dirname = path.dirname(typeof __filename !== 'undefined' ? __filename : url.fileURLToPath(import.meta.url));\nconst major = +process.versions.node.split('.')[0];\nconst workerWrapper = wrapWorker(path.join(moduleRoot(__dirname), 'dist', 'cjs', 'command.js'));\nconst config = path.resolve(moduleRoot(__dirname), 'dist', 'esm', 'wtr.config.mjs');\n\nfunction worker(args, options, callback) {\n which('wtr', options, (err, wtr) => {\n if (err) return callback(err);\n const cwd = options.cwd || process.cwd();\n const { _, ...opts } = getopts(args, { stopEarly: true, alias: { config: 'c' } });\n const spawnArgs = [wtr];\n if (!opts.config) Array.prototype.push.apply(spawnArgs, ['--config', config]);\n Array.prototype.push.apply(spawnArgs, args);\n if (_.length === 0) Array.prototype.push.apply(spawnArgs, ['test/**/*.test.{ts,tsx,jsx,mjs}']);\n\n link(cwd, installPath(options), (err, restore) => {\n if (err) return callback(err);\n\n const queue = new Queue(1);\n queue.defer(spawn.bind(null, spawnArgs[0], spawnArgs.slice(1), options));\n queue.await((err) => {\n unlink(restore, (err2) => {\n callback(err || err2);\n });\n });\n });\n });\n}\n\nexport default function testBrowser(args, options, cb) {\n major < 14 ? workerWrapper('stable', args, options, cb) : worker(args, options, cb);\n}\n"],"names":["testBrowser","__dirname","path","dirname","__filename","url","fileURLToPath","major","process","versions","node","split","workerWrapper","wrapWorker","join","moduleRoot","config","resolve","worker","args","options","callback","which","err","wtr","cwd","getopts","stopEarly","alias","_","opts","spawnArgs","Array","prototype","push","apply","length","link","installPath","restore","queue","Queue","defer","spawn","bind","slice","await","unlink","err2","cb"],"mappings":";;;;+BAuCA;;;eAAwBA;;;2DAvCP;0DACD;mEACE;oEACE;0BACS;qEACN;kEACL;8DACA;uBACsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExC,IAAMC,YAAYC,aAAI,CAACC,OAAO,CAAC,OAAOC,eAAe,cAAcA,aAAaC,YAAG,CAACC,aAAa,CAAC;AAClG,IAAMC,QAAQ,CAACC,QAAQC,QAAQ,CAACC,IAAI,CAACC,KAAK,CAAC,IAAI,CAAC,EAAE;AAClD,IAAMC,gBAAgBC,IAAAA,mBAAU,EAACX,aAAI,CAACY,IAAI,CAACC,IAAAA,uBAAU,EAACd,YAAY,QAAQ,OAAO;AACjF,IAAMe,SAASd,aAAI,CAACe,OAAO,CAACF,IAAAA,uBAAU,EAACd,YAAY,QAAQ,OAAO;AAElE,SAASiB,OAAOC,IAAI,EAAEC,OAAO,EAAEC,QAAQ;IACrCC,IAAAA,oBAAK,EAAC,OAAOF,SAAS,SAACG,KAAKC;QAC1B,IAAID,KAAK,OAAOF,SAASE;QACzB,IAAME,MAAML,QAAQK,GAAG,IAAIjB,QAAQiB,GAAG;QACtC,IAAuBC,WAAAA,IAAAA,sBAAO,EAACP,MAAM;YAAEQ,WAAW;YAAMC,OAAO;gBAAEZ,QAAQ;YAAI;QAAE,IAAzE,AAAEa,IAAeH,SAAfG,GAAMC,kCAASJ;YAAfG;;QACR,IAAME,YAAY;YAACP;SAAI;QACvB,IAAI,CAACM,KAAKd,MAAM,EAAEgB,MAAMC,SAAS,CAACC,IAAI,CAACC,KAAK,CAACJ,WAAW;YAAC;YAAYf;SAAO;QAC5EgB,MAAMC,SAAS,CAACC,IAAI,CAACC,KAAK,CAACJ,WAAWZ;QACtC,IAAIU,EAAEO,MAAM,KAAK,GAAGJ,MAAMC,SAAS,CAACC,IAAI,CAACC,KAAK,CAACJ,WAAW;YAAC;SAAkC;QAE7FM,IAAAA,gBAAI,EAACZ,KAAKa,IAAAA,oBAAW,EAAClB,UAAU,SAACG,KAAKgB;YACpC,IAAIhB,KAAK,OAAOF,SAASE;YAEzB,IAAMiB,QAAQ,IAAIC,gBAAK,CAAC;YACxBD,MAAME,KAAK,CAACC,qBAAK,CAACC,IAAI,CAAC,MAAMb,SAAS,CAAC,EAAE,EAAEA,UAAUc,KAAK,CAAC,IAAIzB;YAC/DoB,MAAMM,KAAK,CAAC,SAACvB;gBACXwB,IAAAA,kBAAM,EAACR,SAAS,SAACS;oBACf3B,SAASE,OAAOyB;gBAClB;YACF;QACF;IACF;AACF;AAEe,SAAShD,YAAYmB,IAAI,EAAEC,OAAO,EAAE6B,EAAE;IACnD1C,QAAQ,KAAKK,cAAc,UAAUO,MAAMC,SAAS6B,MAAM/B,OAAOC,MAAMC,SAAS6B;AAClF"}
|
package/dist/esm/command.mjs
CHANGED
|
@@ -35,9 +35,7 @@ function worker(args, options, callback) {
|
|
|
35
35
|
link(cwd, installPath(options), (err, restore)=>{
|
|
36
36
|
if (err) return callback(err);
|
|
37
37
|
const queue = new Queue(1);
|
|
38
|
-
queue.defer(spawn.bind(null, spawnArgs[0], spawnArgs.slice(1),
|
|
39
|
-
cwd
|
|
40
|
-
}));
|
|
38
|
+
queue.defer(spawn.bind(null, spawnArgs[0], spawnArgs.slice(1), options));
|
|
41
39
|
queue.await((err)=>{
|
|
42
40
|
unlink(restore, (err2)=>{
|
|
43
41
|
callback(err || err2);
|
package/dist/esm/command.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-dev-stack/packages/tsds-web-test-runner/src/command.ts"],"sourcesContent":["import path from 'path';\nimport url from 'url';\nimport spawn from 'cross-spawn-cb';\nimport getopts from 'getopts-compat';\nimport { link, unlink } from 'link-unlink';\nimport moduleRoot from 'module-root-sync';\nimport which from 'module-which';\nimport Queue from 'queue-cb';\nimport { installPath, wrapWorker } from 'tsds-lib';\n\nconst __dirname = path.dirname(typeof __filename !== 'undefined' ? __filename : url.fileURLToPath(import.meta.url));\nconst major = +process.versions.node.split('.')[0];\nconst workerWrapper = wrapWorker(path.join(moduleRoot(__dirname), 'dist', 'cjs', 'command.js'));\nconst config = path.resolve(moduleRoot(__dirname), 'dist', 'esm', 'wtr.config.mjs');\n\nfunction worker(args, options, callback) {\n which('wtr', options, (err, wtr) => {\n if (err) return callback(err);\n const cwd = options.cwd || process.cwd();\n const { _, ...opts } = getopts(args, { stopEarly: true, alias: { config: 'c' } });\n const spawnArgs = [wtr];\n if (!opts.config) Array.prototype.push.apply(spawnArgs, ['--config', config]);\n Array.prototype.push.apply(spawnArgs, args);\n if (_.length === 0) Array.prototype.push.apply(spawnArgs, ['test/**/*.test.{ts,tsx,jsx,mjs}']);\n\n link(cwd, installPath(options), (err, restore) => {\n if (err) return callback(err);\n\n const queue = new Queue(1);\n queue.defer(spawn.bind(null, spawnArgs[0], spawnArgs.slice(1),
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-dev-stack/packages/tsds-web-test-runner/src/command.ts"],"sourcesContent":["import path from 'path';\nimport url from 'url';\nimport spawn from 'cross-spawn-cb';\nimport getopts from 'getopts-compat';\nimport { link, unlink } from 'link-unlink';\nimport moduleRoot from 'module-root-sync';\nimport which from 'module-which';\nimport Queue from 'queue-cb';\nimport { installPath, wrapWorker } from 'tsds-lib';\n\nconst __dirname = path.dirname(typeof __filename !== 'undefined' ? __filename : url.fileURLToPath(import.meta.url));\nconst major = +process.versions.node.split('.')[0];\nconst workerWrapper = wrapWorker(path.join(moduleRoot(__dirname), 'dist', 'cjs', 'command.js'));\nconst config = path.resolve(moduleRoot(__dirname), 'dist', 'esm', 'wtr.config.mjs');\n\nfunction worker(args, options, callback) {\n which('wtr', options, (err, wtr) => {\n if (err) return callback(err);\n const cwd = options.cwd || process.cwd();\n const { _, ...opts } = getopts(args, { stopEarly: true, alias: { config: 'c' } });\n const spawnArgs = [wtr];\n if (!opts.config) Array.prototype.push.apply(spawnArgs, ['--config', config]);\n Array.prototype.push.apply(spawnArgs, args);\n if (_.length === 0) Array.prototype.push.apply(spawnArgs, ['test/**/*.test.{ts,tsx,jsx,mjs}']);\n\n link(cwd, installPath(options), (err, restore) => {\n if (err) return callback(err);\n\n const queue = new Queue(1);\n queue.defer(spawn.bind(null, spawnArgs[0], spawnArgs.slice(1), options));\n queue.await((err) => {\n unlink(restore, (err2) => {\n callback(err || err2);\n });\n });\n });\n });\n}\n\nexport default function testBrowser(args, options, cb) {\n major < 14 ? workerWrapper('stable', args, options, cb) : worker(args, options, cb);\n}\n"],"names":["path","url","spawn","getopts","link","unlink","moduleRoot","which","Queue","installPath","wrapWorker","__dirname","dirname","__filename","fileURLToPath","major","process","versions","node","split","workerWrapper","join","config","resolve","worker","args","options","callback","err","wtr","cwd","_","opts","stopEarly","alias","spawnArgs","Array","prototype","push","apply","length","restore","queue","defer","bind","slice","await","err2","testBrowser","cb"],"mappings":"AAAA,OAAOA,UAAU,OAAO;AACxB,OAAOC,SAAS,MAAM;AACtB,OAAOC,WAAW,iBAAiB;AACnC,OAAOC,aAAa,iBAAiB;AACrC,SAASC,IAAI,EAAEC,MAAM,QAAQ,cAAc;AAC3C,OAAOC,gBAAgB,mBAAmB;AAC1C,OAAOC,WAAW,eAAe;AACjC,OAAOC,WAAW,WAAW;AAC7B,SAASC,WAAW,EAAEC,UAAU,QAAQ,WAAW;AAEnD,MAAMC,YAAYX,KAAKY,OAAO,CAAC,OAAOC,eAAe,cAAcA,aAAaZ,IAAIa,aAAa,CAAC,YAAYb,GAAG;AACjH,MAAMc,QAAQ,CAACC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,QAAQ,KAAKK,cAAc,UAAUK,MAAMC,SAASuB,MAAMzB,OAAOC,MAAMC,SAASuB;AAClF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsds-web-test-runner",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.11",
|
|
4
4
|
"description": "Development stack for TypeScript libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"c8",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"tsds": {
|
|
71
71
|
"source": "src/index.ts"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "3d3f2a329b0c8dfe08480c23551f8835838e1e76"
|
|
74
74
|
}
|