tsds-validate 1.5.6 → 1.5.7
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 +5 -4
- package/dist/cjs/command.js.map +1 -1
- package/dist/esm/command.js +6 -5
- package/dist/esm/command.js.map +1 -1
- package/package.json +12 -12
package/dist/cjs/command.js
CHANGED
|
@@ -23,11 +23,9 @@ function _interop_require_default(obj) {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
var major = +process.versions.node.split('.')[0];
|
|
26
|
-
var version = major > 18 ? 'local' : 'stable';
|
|
27
26
|
var __dirname = _path.default.dirname(typeof __filename === 'undefined' ? _url.default.fileURLToPath(require("url").pathToFileURL(__filename).toString()) : __filename);
|
|
28
27
|
var dist = _path.default.join(__dirname, '..');
|
|
29
|
-
|
|
30
|
-
function worker(args, options, callback) {
|
|
28
|
+
function run(args, options, callback) {
|
|
31
29
|
try {
|
|
32
30
|
var depcheck = (0, _resolvebinsync.default)('depcheck');
|
|
33
31
|
var sortPackageJSON = (0, _resolvebinsync.default)('sort-package-json');
|
|
@@ -43,7 +41,10 @@ function worker(args, options, callback) {
|
|
|
43
41
|
return callback(err);
|
|
44
42
|
}
|
|
45
43
|
}
|
|
44
|
+
var worker = major >= 20 ? run : (0, _nodeversioncall.bind)('>=20', _path.default.join(dist, 'cjs', 'command.js'), {
|
|
45
|
+
callbacks: true
|
|
46
|
+
});
|
|
46
47
|
function publish(args, options, callback) {
|
|
47
|
-
|
|
48
|
+
worker(args, options, callback);
|
|
48
49
|
}
|
|
49
50
|
/* 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":["/Users/kevin/Dev/OpenSource/ts-dev-stack/tsds-validate/src/command.ts"],"sourcesContent":["import spawn from 'cross-spawn-cb';\nimport {
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/ts-dev-stack/tsds-validate/src/command.ts"],"sourcesContent":["import spawn from 'cross-spawn-cb';\nimport { bind } from 'node-version-call';\nimport path from 'path';\nimport Queue from 'queue-cb';\nimport resolveBin from 'resolve-bin-sync';\nimport format from 'tsds-biome';\nimport build from 'tsds-build';\nimport type { CommandCallback, CommandOptions } from 'tsds-lib';\nimport docs from 'tsds-typedoc';\nimport url from 'url';\n\nconst major = +process.versions.node.split('.')[0];\nconst __dirname = path.dirname(typeof __filename === 'undefined' ? url.fileURLToPath(import.meta.url) : __filename);\nconst dist = path.join(__dirname, '..');\n\nfunction run(args: string[], options: CommandOptions, callback: CommandCallback) {\n try {\n const depcheck = resolveBin('depcheck');\n const sortPackageJSON = resolveBin('sort-package-json');\n\n const queue = new Queue(1);\n queue.defer(format.bind(null, args, options));\n queue.defer(build.bind(null, args, options));\n queue.defer(spawn.bind(null, sortPackageJSON, [], options));\n queue.defer(spawn.bind(null, depcheck, [], options));\n queue.defer(docs.bind(null, args, options));\n queue.await(callback);\n } catch (err) {\n console.log(err.message);\n return callback(err);\n }\n}\n\nconst worker = major >= 20 ? run : bind('>=20', path.join(dist, 'cjs', 'command.js'), { callbacks: true });\n\nexport default function publish(args: string[], options: CommandOptions, callback: CommandCallback) {\n worker(args, options, callback);\n}\n"],"names":["publish","major","process","versions","node","split","__dirname","path","dirname","__filename","url","fileURLToPath","dist","join","run","args","options","callback","depcheck","resolveBin","sortPackageJSON","queue","Queue","defer","format","bind","build","spawn","docs","await","err","console","log","message","worker","callbacks"],"mappings":";;;;+BAmCA;;;eAAwBA;;;mEAnCN;+BACG;2DACJ;8DACC;qEACK;gEACJ;gEACD;kEAED;0DACD;;;;;;AAEhB,IAAMC,QAAQ,CAACC,QAAQC,QAAQ,CAACC,IAAI,CAACC,KAAK,CAAC,IAAI,CAAC,EAAE;AAClD,IAAMC,YAAYC,aAAI,CAACC,OAAO,CAAC,OAAOC,eAAe,cAAcC,YAAG,CAACC,aAAa,CAAC,uDAAmBF;AACxG,IAAMG,OAAOL,aAAI,CAACM,IAAI,CAACP,WAAW;AAElC,SAASQ,IAAIC,IAAc,EAAEC,OAAuB,EAAEC,QAAyB;IAC7E,IAAI;QACF,IAAMC,WAAWC,IAAAA,uBAAU,EAAC;QAC5B,IAAMC,kBAAkBD,IAAAA,uBAAU,EAAC;QAEnC,IAAME,QAAQ,IAAIC,gBAAK,CAAC;QACxBD,MAAME,KAAK,CAACC,kBAAM,CAACC,IAAI,CAAC,MAAMV,MAAMC;QACpCK,MAAME,KAAK,CAACG,kBAAK,CAACD,IAAI,CAAC,MAAMV,MAAMC;QACnCK,MAAME,KAAK,CAACI,qBAAK,CAACF,IAAI,CAAC,MAAML,iBAAiB,EAAE,EAAEJ;QAClDK,MAAME,KAAK,CAACI,qBAAK,CAACF,IAAI,CAAC,MAAMP,UAAU,EAAE,EAAEF;QAC3CK,MAAME,KAAK,CAACK,oBAAI,CAACH,IAAI,CAAC,MAAMV,MAAMC;QAClCK,MAAMQ,KAAK,CAACZ;IACd,EAAE,OAAOa,KAAK;QACZC,QAAQC,GAAG,CAACF,IAAIG,OAAO;QACvB,OAAOhB,SAASa;IAClB;AACF;AAEA,IAAMI,SAASjC,SAAS,KAAKa,MAAMW,IAAAA,qBAAI,EAAC,QAAQlB,aAAI,CAACM,IAAI,CAACD,MAAM,OAAO,eAAe;IAAEuB,WAAW;AAAK;AAEzF,SAASnC,QAAQe,IAAc,EAAEC,OAAuB,EAAEC,QAAyB;IAChGiB,OAAOnB,MAAMC,SAASC;AACxB"}
|
package/dist/esm/command.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import spawn from 'cross-spawn-cb';
|
|
2
|
-
import {
|
|
2
|
+
import { bind } from 'node-version-call';
|
|
3
3
|
import path from 'path';
|
|
4
4
|
import Queue from 'queue-cb';
|
|
5
5
|
import resolveBin from 'resolve-bin-sync';
|
|
@@ -8,11 +8,9 @@ import build from 'tsds-build';
|
|
|
8
8
|
import docs from 'tsds-typedoc';
|
|
9
9
|
import url from 'url';
|
|
10
10
|
const major = +process.versions.node.split('.')[0];
|
|
11
|
-
const version = major > 18 ? 'local' : 'stable';
|
|
12
11
|
const __dirname = path.dirname(typeof __filename === 'undefined' ? url.fileURLToPath(import.meta.url) : __filename);
|
|
13
12
|
const dist = path.join(__dirname, '..');
|
|
14
|
-
|
|
15
|
-
function worker(args, options, callback) {
|
|
13
|
+
function run(args, options, callback) {
|
|
16
14
|
try {
|
|
17
15
|
const depcheck = resolveBin('depcheck');
|
|
18
16
|
const sortPackageJSON = resolveBin('sort-package-json');
|
|
@@ -28,6 +26,9 @@ function worker(args, options, callback) {
|
|
|
28
26
|
return callback(err);
|
|
29
27
|
}
|
|
30
28
|
}
|
|
29
|
+
const worker = major >= 20 ? run : bind('>=20', path.join(dist, 'cjs', 'command.js'), {
|
|
30
|
+
callbacks: true
|
|
31
|
+
});
|
|
31
32
|
export default function publish(args, options, callback) {
|
|
32
|
-
|
|
33
|
+
worker(args, options, callback);
|
|
33
34
|
}
|
package/dist/esm/command.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/ts-dev-stack/tsds-validate/src/command.ts"],"sourcesContent":["import spawn from 'cross-spawn-cb';\nimport {
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/ts-dev-stack/tsds-validate/src/command.ts"],"sourcesContent":["import spawn from 'cross-spawn-cb';\nimport { bind } from 'node-version-call';\nimport path from 'path';\nimport Queue from 'queue-cb';\nimport resolveBin from 'resolve-bin-sync';\nimport format from 'tsds-biome';\nimport build from 'tsds-build';\nimport type { CommandCallback, CommandOptions } from 'tsds-lib';\nimport docs from 'tsds-typedoc';\nimport url from 'url';\n\nconst major = +process.versions.node.split('.')[0];\nconst __dirname = path.dirname(typeof __filename === 'undefined' ? url.fileURLToPath(import.meta.url) : __filename);\nconst dist = path.join(__dirname, '..');\n\nfunction run(args: string[], options: CommandOptions, callback: CommandCallback) {\n try {\n const depcheck = resolveBin('depcheck');\n const sortPackageJSON = resolveBin('sort-package-json');\n\n const queue = new Queue(1);\n queue.defer(format.bind(null, args, options));\n queue.defer(build.bind(null, args, options));\n queue.defer(spawn.bind(null, sortPackageJSON, [], options));\n queue.defer(spawn.bind(null, depcheck, [], options));\n queue.defer(docs.bind(null, args, options));\n queue.await(callback);\n } catch (err) {\n console.log(err.message);\n return callback(err);\n }\n}\n\nconst worker = major >= 20 ? run : bind('>=20', path.join(dist, 'cjs', 'command.js'), { callbacks: true });\n\nexport default function publish(args: string[], options: CommandOptions, callback: CommandCallback) {\n worker(args, options, callback);\n}\n"],"names":["spawn","bind","path","Queue","resolveBin","format","build","docs","url","major","process","versions","node","split","__dirname","dirname","__filename","fileURLToPath","dist","join","run","args","options","callback","depcheck","sortPackageJSON","queue","defer","await","err","console","log","message","worker","callbacks","publish"],"mappings":"AAAA,OAAOA,WAAW,iBAAiB;AACnC,SAASC,IAAI,QAAQ,oBAAoB;AACzC,OAAOC,UAAU,OAAO;AACxB,OAAOC,WAAW,WAAW;AAC7B,OAAOC,gBAAgB,mBAAmB;AAC1C,OAAOC,YAAY,aAAa;AAChC,OAAOC,WAAW,aAAa;AAE/B,OAAOC,UAAU,eAAe;AAChC,OAAOC,SAAS,MAAM;AAEtB,MAAMC,QAAQ,CAACC,QAAQC,QAAQ,CAACC,IAAI,CAACC,KAAK,CAAC,IAAI,CAAC,EAAE;AAClD,MAAMC,YAAYZ,KAAKa,OAAO,CAAC,OAAOC,eAAe,cAAcR,IAAIS,aAAa,CAAC,YAAYT,GAAG,IAAIQ;AACxG,MAAME,OAAOhB,KAAKiB,IAAI,CAACL,WAAW;AAElC,SAASM,IAAIC,IAAc,EAAEC,OAAuB,EAAEC,QAAyB;IAC7E,IAAI;QACF,MAAMC,WAAWpB,WAAW;QAC5B,MAAMqB,kBAAkBrB,WAAW;QAEnC,MAAMsB,QAAQ,IAAIvB,MAAM;QACxBuB,MAAMC,KAAK,CAACtB,OAAOJ,IAAI,CAAC,MAAMoB,MAAMC;QACpCI,MAAMC,KAAK,CAACrB,MAAML,IAAI,CAAC,MAAMoB,MAAMC;QACnCI,MAAMC,KAAK,CAAC3B,MAAMC,IAAI,CAAC,MAAMwB,iBAAiB,EAAE,EAAEH;QAClDI,MAAMC,KAAK,CAAC3B,MAAMC,IAAI,CAAC,MAAMuB,UAAU,EAAE,EAAEF;QAC3CI,MAAMC,KAAK,CAACpB,KAAKN,IAAI,CAAC,MAAMoB,MAAMC;QAClCI,MAAME,KAAK,CAACL;IACd,EAAE,OAAOM,KAAK;QACZC,QAAQC,GAAG,CAACF,IAAIG,OAAO;QACvB,OAAOT,SAASM;IAClB;AACF;AAEA,MAAMI,SAASxB,SAAS,KAAKW,MAAMnB,KAAK,QAAQC,KAAKiB,IAAI,CAACD,MAAM,OAAO,eAAe;IAAEgB,WAAW;AAAK;AAExG,eAAe,SAASC,QAAQd,IAAc,EAAEC,OAAuB,EAAEC,QAAyB;IAChGU,OAAOZ,MAAMC,SAASC;AACxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsds-validate",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.7",
|
|
4
4
|
"description": "Development stack for TypeScript libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"c8",
|
|
@@ -42,28 +42,28 @@
|
|
|
42
42
|
"version": "tsds version"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"cross-spawn-cb": "^
|
|
45
|
+
"cross-spawn-cb": "^3.0.0",
|
|
46
46
|
"depcheck": "^1.4.7",
|
|
47
|
-
"node-version-call": "^1.
|
|
48
|
-
"queue-cb": "^1.
|
|
47
|
+
"node-version-call": "^2.1.0",
|
|
48
|
+
"queue-cb": "^1.6.3",
|
|
49
49
|
"resolve-bin-sync": "^1.0.12",
|
|
50
50
|
"sort-package-json": "^3.6.0",
|
|
51
|
-
"tsds-biome": "^1.
|
|
52
|
-
"tsds-build": "^1.
|
|
53
|
-
"tsds-lib": "^1.
|
|
54
|
-
"tsds-typedoc": "^1.20.
|
|
51
|
+
"tsds-biome": "^1.21.0",
|
|
52
|
+
"tsds-build": "^1.21.0",
|
|
53
|
+
"tsds-lib": "^1.21.1",
|
|
54
|
+
"tsds-typedoc": "^1.20.4"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/mocha": "*",
|
|
58
58
|
"@types/node": "*",
|
|
59
|
-
"module-link-unlink": "^1.0
|
|
59
|
+
"module-link-unlink": "^1.1.0",
|
|
60
60
|
"node-version-use": "*",
|
|
61
|
-
"os-shim": "^0.1.
|
|
62
|
-
"resolve": "^1.
|
|
61
|
+
"os-shim": "^0.1.3",
|
|
62
|
+
"resolve": "^1.22.11",
|
|
63
63
|
"short-hash": "^1.0.0",
|
|
64
64
|
"ts-dev-stack": "*",
|
|
65
65
|
"tsds-config": "*",
|
|
66
|
-
"tsds-lib-test": "^1.
|
|
66
|
+
"tsds-lib-test": "^1.20.0"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=0.8"
|