tsds-web-test-runner 1.5.0 → 1.5.3
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 +19 -49
- package/dist/cjs/command.js.map +1 -1
- package/dist/esm/command.mjs +19 -25
- package/dist/esm/command.mjs.map +1 -1
- package/dist/types/command.d.ts +1 -1
- package/package.json +3 -5
- package/bin/cli.cjs +0 -3
- package/dist/cjs/cli.js +0 -65
- package/dist/cjs/cli.js.map +0 -1
- package/dist/esm/cli.cjs +0 -22
- package/dist/esm/cli.cjs.map +0 -1
- package/dist/types/cli.d.cts +0 -1
package/dist/cjs/command.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
7
|
get: function() {
|
|
8
|
-
return
|
|
8
|
+
return testBrowser;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
var _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
@@ -14,14 +14,6 @@ var _getoptscompat = /*#__PURE__*/ _interop_require_default(require("getopts-com
|
|
|
14
14
|
var _queuecb = /*#__PURE__*/ _interop_require_default(require("queue-cb"));
|
|
15
15
|
var _resolve = /*#__PURE__*/ _interop_require_default(require("resolve"));
|
|
16
16
|
var _tsdslib = require("tsds-lib");
|
|
17
|
-
function _array_like_to_array(arr, len) {
|
|
18
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
19
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
20
|
-
return arr2;
|
|
21
|
-
}
|
|
22
|
-
function _array_without_holes(arr) {
|
|
23
|
-
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
24
|
-
}
|
|
25
17
|
function _define_property(obj, key, value) {
|
|
26
18
|
if (key in obj) {
|
|
27
19
|
Object.defineProperty(obj, key, {
|
|
@@ -40,12 +32,6 @@ function _interop_require_default(obj) {
|
|
|
40
32
|
default: obj
|
|
41
33
|
};
|
|
42
34
|
}
|
|
43
|
-
function _iterable_to_array(iter) {
|
|
44
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
45
|
-
}
|
|
46
|
-
function _non_iterable_spread() {
|
|
47
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
48
|
-
}
|
|
49
35
|
function _object_spread(target) {
|
|
50
36
|
for(var i = 1; i < arguments.length; i++){
|
|
51
37
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -61,27 +47,14 @@ function _object_spread(target) {
|
|
|
61
47
|
}
|
|
62
48
|
return target;
|
|
63
49
|
}
|
|
64
|
-
function _to_consumable_array(arr) {
|
|
65
|
-
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
66
|
-
}
|
|
67
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
68
|
-
if (!o) return;
|
|
69
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
70
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
71
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
72
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
73
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
74
|
-
}
|
|
75
50
|
var __dirname = _path.default.dirname(typeof __filename !== 'undefined' ? __filename : _url.default.fileURLToPath(require("url").pathToFileURL(__filename).toString()));
|
|
76
51
|
var major = +process.versions.node.split('.')[0];
|
|
77
|
-
var
|
|
78
|
-
basedir: __dirname
|
|
79
|
-
}), 'nvu');
|
|
52
|
+
var workerWrapper = (0, _tsdslib.wrapWorker)(_path.default.join((0, _tsdslib.packageRoot)(__dirname), 'dist', 'cjs', 'command.js'));
|
|
80
53
|
var wtr = (0, _tsdslib.binPath)(_resolve.default.sync('@web/test-runner/package.json', {
|
|
81
54
|
basedir: __dirname
|
|
82
55
|
}), 'web-test-runner');
|
|
83
56
|
var config = _path.default.resolve((0, _tsdslib.packageRoot)(__dirname), 'dist', 'esm', 'wtr.config.mjs');
|
|
84
|
-
function
|
|
57
|
+
function worker(_args, _options, cb) {
|
|
85
58
|
var cwd = _options.cwd || process.cwd();
|
|
86
59
|
var options = (0, _getoptscompat.default)(_args, {
|
|
87
60
|
stopEarly: true,
|
|
@@ -92,27 +65,21 @@ function command(_args, _options, cb) {
|
|
|
92
65
|
_args = options._;
|
|
93
66
|
options = _object_spread({}, options);
|
|
94
67
|
options.cwd = undefined;
|
|
68
|
+
var args = [
|
|
69
|
+
wtr
|
|
70
|
+
];
|
|
71
|
+
Array.prototype.push.apply(args, (0, _tsdslib.optionsToArgs)(options));
|
|
72
|
+
if (!options.config) Array.prototype.push.apply(args, (0, _tsdslib.optionsToArgs)({
|
|
73
|
+
config: config
|
|
74
|
+
}));
|
|
75
|
+
Array.prototype.push.apply(args, _args.length ? _args.slice(-1) : [
|
|
76
|
+
'test/**/*.test.{ts,tsx,jsx,mjs}'
|
|
77
|
+
]);
|
|
95
78
|
(0, _tsdslib.link)((0, _tsdslib.installPath)(options), function(_err, restore) {
|
|
96
79
|
var queue = new _queuecb.default(1);
|
|
97
|
-
queue.defer(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
];
|
|
101
|
-
Array.prototype.push.apply(args, (0, _tsdslib.optionsToArgs)(options));
|
|
102
|
-
if (!options.config) Array.prototype.push.apply(args, (0, _tsdslib.optionsToArgs)({
|
|
103
|
-
config: config
|
|
104
|
-
}));
|
|
105
|
-
Array.prototype.push.apply(args, _args.length ? _args.slice(-1) : [
|
|
106
|
-
'test/**/*.test.{ts,tsx,jsx,mjs}'
|
|
107
|
-
]);
|
|
108
|
-
if (major < 14) args = [
|
|
109
|
-
nvu,
|
|
110
|
-
'stable'
|
|
111
|
-
].concat(_to_consumable_array(args));
|
|
112
|
-
(0, _tsdslib.spawn)(args[0], args.slice(1), {
|
|
113
|
-
cwd: cwd
|
|
114
|
-
}, cb);
|
|
115
|
-
});
|
|
80
|
+
queue.defer(_tsdslib.spawn.bind(null, args[0], args.slice(1), {
|
|
81
|
+
cwd: cwd
|
|
82
|
+
}));
|
|
116
83
|
queue.await(function(err) {
|
|
117
84
|
restore(function(err2) {
|
|
118
85
|
cb(err || err2);
|
|
@@ -120,4 +87,7 @@ function command(_args, _options, cb) {
|
|
|
120
87
|
});
|
|
121
88
|
});
|
|
122
89
|
}
|
|
90
|
+
function testBrowser(args, options, cb) {
|
|
91
|
+
major < 14 ? workerWrapper('stable', args, options, cb) : worker(args, options, cb);
|
|
92
|
+
}
|
|
123
93
|
/* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (var key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
|
package/dist/cjs/command.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["command.ts"],"sourcesContent":["import path from 'path';\nimport url from 'url';\nimport getopts from 'getopts-compat';\nimport Queue from 'queue-cb';\nimport resolve from 'resolve';\nimport { binPath, installPath, link, optionsToArgs, packageRoot, spawn } from 'tsds-lib';\n\nconst __dirname = path.dirname(typeof __filename !== 'undefined' ? __filename : url.fileURLToPath(import.meta.url));\
|
|
1
|
+
{"version":3,"sources":["command.ts"],"sourcesContent":["import path from 'path';\nimport url from 'url';\nimport getopts from 'getopts-compat';\nimport Queue from 'queue-cb';\nimport resolve from 'resolve';\nimport { binPath, installPath, link, optionsToArgs, packageRoot, spawn, 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(packageRoot(__dirname), 'dist', 'cjs', 'command.js'));\nconst wtr = binPath(resolve.sync('@web/test-runner/package.json', { basedir: __dirname }), 'web-test-runner');\nconst config = path.resolve(packageRoot(__dirname), 'dist', 'esm', 'wtr.config.mjs');\n\nfunction worker(_args, _options, cb) {\n const cwd = _options.cwd || process.cwd();\n\n let options = getopts(_args, { stopEarly: true, alias: { temp: 't' } });\n _args = options._;\n\n options = { ...options };\n options.cwd = undefined;\n\n const args = [wtr];\n Array.prototype.push.apply(args, optionsToArgs(options));\n if (!options.config) Array.prototype.push.apply(args, optionsToArgs({ config }));\n Array.prototype.push.apply(args, _args.length ? _args.slice(-1) : ['test/**/*.test.{ts,tsx,jsx,mjs}']);\n\n link(installPath(options), (_err, restore) => {\n const queue = new Queue(1);\n queue.defer(spawn.bind(null, args[0], args.slice(1), { cwd }));\n queue.await((err) => {\n restore((err2) => {\n cb(err || err2);\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","packageRoot","wtr","binPath","resolve","sync","basedir","config","worker","_args","_options","cb","cwd","options","getopts","stopEarly","alias","temp","_","undefined","args","Array","prototype","push","apply","optionsToArgs","length","slice","link","installPath","_err","restore","queue","Queue","defer","spawn","bind","await","err","err2"],"mappings":";;;;+BAsCA;;;eAAwBA;;;2DAtCP;0DACD;oEACI;8DACF;8DACE;uBACsE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE1F,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,C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F;AAEe,SAASrD,YAAYkC,IAAI,EAAEP,OAAO,EAAEF,EAAE;IACnDlB,QAAQ,KAAKK,cAAc,UAAUsB,MAAMP,SAASF,MAAMH,OAAOY,MAAMP,SAASF;AAClF"}
|
package/dist/esm/command.mjs
CHANGED
|
@@ -3,17 +3,15 @@ import url from 'url';
|
|
|
3
3
|
import getopts from 'getopts-compat';
|
|
4
4
|
import Queue from 'queue-cb';
|
|
5
5
|
import resolve from 'resolve';
|
|
6
|
-
import { binPath, installPath, link, optionsToArgs, packageRoot, spawn } from 'tsds-lib';
|
|
6
|
+
import { binPath, installPath, link, optionsToArgs, packageRoot, spawn, wrapWorker } from 'tsds-lib';
|
|
7
7
|
const __dirname = path.dirname(typeof __filename !== 'undefined' ? __filename : url.fileURLToPath(import.meta.url));
|
|
8
8
|
const major = +process.versions.node.split('.')[0];
|
|
9
|
-
const
|
|
10
|
-
basedir: __dirname
|
|
11
|
-
}), 'nvu');
|
|
9
|
+
const workerWrapper = wrapWorker(path.join(packageRoot(__dirname), 'dist', 'cjs', 'command.js'));
|
|
12
10
|
const wtr = binPath(resolve.sync('@web/test-runner/package.json', {
|
|
13
11
|
basedir: __dirname
|
|
14
12
|
}), 'web-test-runner');
|
|
15
13
|
const config = path.resolve(packageRoot(__dirname), 'dist', 'esm', 'wtr.config.mjs');
|
|
16
|
-
|
|
14
|
+
function worker(_args, _options, cb) {
|
|
17
15
|
const cwd = _options.cwd || process.cwd();
|
|
18
16
|
let options = getopts(_args, {
|
|
19
17
|
stopEarly: true,
|
|
@@ -26,28 +24,21 @@ export default function command(_args, _options, cb) {
|
|
|
26
24
|
...options
|
|
27
25
|
};
|
|
28
26
|
options.cwd = undefined;
|
|
27
|
+
const args = [
|
|
28
|
+
wtr
|
|
29
|
+
];
|
|
30
|
+
Array.prototype.push.apply(args, optionsToArgs(options));
|
|
31
|
+
if (!options.config) Array.prototype.push.apply(args, optionsToArgs({
|
|
32
|
+
config
|
|
33
|
+
}));
|
|
34
|
+
Array.prototype.push.apply(args, _args.length ? _args.slice(-1) : [
|
|
35
|
+
'test/**/*.test.{ts,tsx,jsx,mjs}'
|
|
36
|
+
]);
|
|
29
37
|
link(installPath(options), (_err, restore)=>{
|
|
30
38
|
const queue = new Queue(1);
|
|
31
|
-
queue.defer((
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
];
|
|
35
|
-
Array.prototype.push.apply(args, optionsToArgs(options));
|
|
36
|
-
if (!options.config) Array.prototype.push.apply(args, optionsToArgs({
|
|
37
|
-
config
|
|
38
|
-
}));
|
|
39
|
-
Array.prototype.push.apply(args, _args.length ? _args.slice(-1) : [
|
|
40
|
-
'test/**/*.test.{ts,tsx,jsx,mjs}'
|
|
41
|
-
]);
|
|
42
|
-
if (major < 14) args = [
|
|
43
|
-
nvu,
|
|
44
|
-
'stable',
|
|
45
|
-
...args
|
|
46
|
-
];
|
|
47
|
-
spawn(args[0], args.slice(1), {
|
|
48
|
-
cwd
|
|
49
|
-
}, cb);
|
|
50
|
-
});
|
|
39
|
+
queue.defer(spawn.bind(null, args[0], args.slice(1), {
|
|
40
|
+
cwd
|
|
41
|
+
}));
|
|
51
42
|
queue.await((err)=>{
|
|
52
43
|
restore((err2)=>{
|
|
53
44
|
cb(err || err2);
|
|
@@ -55,3 +46,6 @@ export default function command(_args, _options, cb) {
|
|
|
55
46
|
});
|
|
56
47
|
});
|
|
57
48
|
}
|
|
49
|
+
export default function testBrowser(args, options, cb) {
|
|
50
|
+
major < 14 ? workerWrapper('stable', args, options, cb) : worker(args, options, cb);
|
|
51
|
+
}
|
package/dist/esm/command.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["command.ts"],"sourcesContent":["import path from 'path';\nimport url from 'url';\nimport getopts from 'getopts-compat';\nimport Queue from 'queue-cb';\nimport resolve from 'resolve';\nimport { binPath, installPath, link, optionsToArgs, packageRoot, spawn } from 'tsds-lib';\n\nconst __dirname = path.dirname(typeof __filename !== 'undefined' ? __filename : url.fileURLToPath(import.meta.url));\
|
|
1
|
+
{"version":3,"sources":["command.ts"],"sourcesContent":["import path from 'path';\nimport url from 'url';\nimport getopts from 'getopts-compat';\nimport Queue from 'queue-cb';\nimport resolve from 'resolve';\nimport { binPath, installPath, link, optionsToArgs, packageRoot, spawn, 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(packageRoot(__dirname), 'dist', 'cjs', 'command.js'));\nconst wtr = binPath(resolve.sync('@web/test-runner/package.json', { basedir: __dirname }), 'web-test-runner');\nconst config = path.resolve(packageRoot(__dirname), 'dist', 'esm', 'wtr.config.mjs');\n\nfunction worker(_args, _options, cb) {\n const cwd = _options.cwd || process.cwd();\n\n let options = getopts(_args, { stopEarly: true, alias: { temp: 't' } });\n _args = options._;\n\n options = { ...options };\n options.cwd = undefined;\n\n const args = [wtr];\n Array.prototype.push.apply(args, optionsToArgs(options));\n if (!options.config) Array.prototype.push.apply(args, optionsToArgs({ config }));\n Array.prototype.push.apply(args, _args.length ? _args.slice(-1) : ['test/**/*.test.{ts,tsx,jsx,mjs}']);\n\n link(installPath(options), (_err, restore) => {\n const queue = new Queue(1);\n queue.defer(spawn.bind(null, args[0], args.slice(1), { cwd }));\n queue.await((err) => {\n restore((err2) => {\n cb(err || err2);\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","getopts","Queue","resolve","binPath","installPath","link","optionsToArgs","packageRoot","spawn","wrapWorker","__dirname","dirname","__filename","fileURLToPath","major","process","versions","node","split","workerWrapper","join","wtr","sync","basedir","config","worker","_args","_options","cb","cwd","options","stopEarly","alias","temp","_","undefined","args","Array","prototype","push","apply","length","slice","_err","restore","queue","defer","bind","await","err","err2","testBrowser"],"mappings":"AAAA,OAAOA,UAAU,OAAO;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AAK,CAAC,CAAC,KAAK;QAAC;KAAkC;IAErGrC,KAAKD,YAAY0B,UAAU,CAACa,MAAMC;QAChC,MAAMC,QAAQ,IAAI5C,MAAM;QACxB4C,MAAMC,KAAK,CAACtC,MAAMuC,IAAI,CAAC,MAAMX,IAAI,CAAC,EAAE,EAAEA,KAAKM,KAAK,CAAC,IAAI;YAAEb;QAAI;QAC3DgB,MAAMG,KAAK,CAAC,CAACC;YACXL,QAAQ,CAACM;gBACPtB,GAAGqB,OAAOC;YACZ;QACF;IACF;AACF;AAEA,eAAe,SAASC,YAAYf,IAAI,EAAEN,OAAO,EAAEF,EAAE;IACnDd,QAAQ,KAAKK,cAAc,UAAUiB,MAAMN,SAASF,MAAMH,OAAOW,MAAMN,SAASF;AAClF"}
|
package/dist/types/command.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function
|
|
1
|
+
export default function testBrowser(args: any, options: any, cb: any): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsds-web-test-runner",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "Development stack for TypeScript libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"c8",
|
|
@@ -53,12 +53,10 @@
|
|
|
53
53
|
"@web/test-runner": "^0.19.0",
|
|
54
54
|
"@web/test-runner-playwright": "^0.11.0",
|
|
55
55
|
"assert": "1.5.0",
|
|
56
|
-
"exit": "^0.1.2",
|
|
57
56
|
"getopts-compat": "^2.2.5",
|
|
58
|
-
"node-version-use": "^1.0.4",
|
|
59
57
|
"queue-cb": "^1.4.4",
|
|
60
58
|
"resolve": "^1.22.10",
|
|
61
|
-
"tsds-lib": "^1.
|
|
59
|
+
"tsds-lib": "^1.5.3",
|
|
62
60
|
"webpack-merge": "^6.0.1"
|
|
63
61
|
},
|
|
64
62
|
"devDependencies": {
|
|
@@ -74,5 +72,5 @@
|
|
|
74
72
|
"tsds": {
|
|
75
73
|
"source": "src/index.ts"
|
|
76
74
|
},
|
|
77
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "23ed3d522ebd1f5a5f49423d150821d33c9560cf"
|
|
78
76
|
}
|
package/bin/cli.cjs
DELETED
package/dist/cjs/cli.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return cli;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _exit = /*#__PURE__*/ _interop_require_default(require("exit"));
|
|
12
|
-
var _getoptscompat = /*#__PURE__*/ _interop_require_default(require("getopts-compat"));
|
|
13
|
-
var _index = /*#__PURE__*/ _interop_require_default(require("./index.js"));
|
|
14
|
-
function _define_property(obj, key, value) {
|
|
15
|
-
if (key in obj) {
|
|
16
|
-
Object.defineProperty(obj, key, {
|
|
17
|
-
value: value,
|
|
18
|
-
enumerable: true,
|
|
19
|
-
configurable: true,
|
|
20
|
-
writable: true
|
|
21
|
-
});
|
|
22
|
-
} else {
|
|
23
|
-
obj[key] = value;
|
|
24
|
-
}
|
|
25
|
-
return obj;
|
|
26
|
-
}
|
|
27
|
-
function _interop_require_default(obj) {
|
|
28
|
-
return obj && obj.__esModule ? obj : {
|
|
29
|
-
default: obj
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function _object_spread(target) {
|
|
33
|
-
for(var i = 1; i < arguments.length; i++){
|
|
34
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
35
|
-
var ownKeys = Object.keys(source);
|
|
36
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
37
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
38
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
39
|
-
}));
|
|
40
|
-
}
|
|
41
|
-
ownKeys.forEach(function(key) {
|
|
42
|
-
_define_property(target, key, source[key]);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
return target;
|
|
46
|
-
}
|
|
47
|
-
var optionsCLI = {
|
|
48
|
-
alias: {
|
|
49
|
-
config: 'c'
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
function cli(argv, _name) {
|
|
53
|
-
var options = (0, _getoptscompat.default)(argv.slice(1), _object_spread({
|
|
54
|
-
stopEarly: true
|
|
55
|
-
}, optionsCLI));
|
|
56
|
-
var args = argv.slice(0, 1).concat(options._);
|
|
57
|
-
(0, _index.default)(args.slice(1), options, function(err) {
|
|
58
|
-
if (err && err.message.indexOf('ExperimentalWarning') < 0) {
|
|
59
|
-
console.log(err.message);
|
|
60
|
-
return (0, _exit.default)(err.code || -1);
|
|
61
|
-
}
|
|
62
|
-
(0, _exit.default)(0);
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
/* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (var key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
|
package/dist/cjs/cli.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["cli.cts"],"sourcesContent":["import exit from 'exit';\nimport getopts from 'getopts-compat';\nimport command from './index.js';\n\nconst optionsCLI = {\n alias: { config: 'c' },\n};\n\nexport default function cli(argv, _name) {\n const options = getopts(argv.slice(1), { stopEarly: true, ...optionsCLI });\n const args = argv.slice(0, 1).concat(options._);\n command(args.slice(1), options, (err) => {\n if (err && err.message.indexOf('ExperimentalWarning') < 0) {\n console.log(err.message);\n return exit(err.code || -1);\n }\n exit(0);\n });\n}\n"],"names":["cli","optionsCLI","alias","config","argv","_name","options","getopts","slice","stopEarly","args","concat","_","command","err","message","indexOf","console","log","exit","code"],"mappings":";;;;+BAQA;;;eAAwBA;;;2DARP;oEACG;4DACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpB,IAAMC,aAAa;IACjBC,OAAO;QAAEC,QAAQ;IAAI;AACvB;AAEe,SAASH,IAAII,IAAI,EAAEC,KAAK;IACrC,IAAMC,UAAUC,IAAAA,sBAAO,EAACH,KAAKI,KAAK,CAAC,IAAI;QAAEC,WAAW;OAASR;IAC7D,IAAMS,OAAON,KAAKI,KAAK,CAAC,GAAG,GAAGG,MAAM,CAACL,QAAQM,CAAC;IAC9CC,IAAAA,cAAO,EAACH,KAAKF,KAAK,CAAC,IAAIF,SAAS,SAACQ;QAC/B,IAAIA,OAAOA,IAAIC,OAAO,CAACC,OAAO,CAAC,yBAAyB,GAAG;YACzDC,QAAQC,GAAG,CAACJ,IAAIC,OAAO;YACvB,OAAOI,IAAAA,aAAI,EAACL,IAAIM,IAAI,IAAI,CAAC;QAC3B;QACAD,IAAAA,aAAI,EAAC;IACP;AACF"}
|
package/dist/esm/cli.cjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import exit from 'exit';
|
|
2
|
-
import getopts from 'getopts-compat';
|
|
3
|
-
import command from './index.mjs';
|
|
4
|
-
const optionsCLI = {
|
|
5
|
-
alias: {
|
|
6
|
-
config: 'c'
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
export default function cli(argv, _name) {
|
|
10
|
-
const options = getopts(argv.slice(1), {
|
|
11
|
-
stopEarly: true,
|
|
12
|
-
...optionsCLI
|
|
13
|
-
});
|
|
14
|
-
const args = argv.slice(0, 1).concat(options._);
|
|
15
|
-
command(args.slice(1), options, (err)=>{
|
|
16
|
-
if (err && err.message.indexOf('ExperimentalWarning') < 0) {
|
|
17
|
-
console.log(err.message);
|
|
18
|
-
return exit(err.code || -1);
|
|
19
|
-
}
|
|
20
|
-
exit(0);
|
|
21
|
-
});
|
|
22
|
-
}
|
package/dist/esm/cli.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["cli.cts"],"sourcesContent":["import exit from 'exit';\nimport getopts from 'getopts-compat';\nimport command from './index.js';\n\nconst optionsCLI = {\n alias: { config: 'c' },\n};\n\nexport default function cli(argv, _name) {\n const options = getopts(argv.slice(1), { stopEarly: true, ...optionsCLI });\n const args = argv.slice(0, 1).concat(options._);\n command(args.slice(1), options, (err) => {\n if (err && err.message.indexOf('ExperimentalWarning') < 0) {\n console.log(err.message);\n return exit(err.code || -1);\n }\n exit(0);\n });\n}\n"],"names":["exit","getopts","command","optionsCLI","alias","config","cli","argv","_name","options","slice","stopEarly","args","concat","_","err","message","indexOf","console","log","code"],"mappings":"AAAA,OAAOA,UAAU,OAAO;AACxB,OAAOC,aAAa,iBAAiB;AACrC,OAAOC,aAAa,aAAa;AAEjC,MAAMC,aAAa;IACjBC,OAAO;QAAEC,QAAQ;IAAI;AACvB;AAEA,eAAe,SAASC,IAAIC,IAAI,EAAEC,KAAK;IACrC,MAAMC,UAAUR,QAAQM,KAAKG,KAAK,CAAC,IAAI;QAAEC,WAAW;QAAM,GAAGR,UAAU;IAAC;IACxE,MAAMS,OAAOL,KAAKG,KAAK,CAAC,GAAG,GAAGG,MAAM,CAACJ,QAAQK,CAAC;IAC9CZ,QAAQU,KAAKF,KAAK,CAAC,IAAID,SAAS,CAACM;QAC/B,IAAIA,OAAOA,IAAIC,OAAO,CAACC,OAAO,CAAC,yBAAyB,GAAG;YACzDC,QAAQC,GAAG,CAACJ,IAAIC,OAAO;YACvB,OAAOhB,KAAKe,IAAIK,IAAI,IAAI,CAAC;QAC3B;QACApB,KAAK;IACP;AACF"}
|
package/dist/types/cli.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function cli(argv: any, _name: any): void;
|