tsds-validate 1.4.5 → 1.5.1
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/LICENSE +22 -0
- package/dist/cjs/command.js.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/command.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +22 -16
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Kevin Malakoff
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
package/dist/cjs/command.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/ts-dev-stack/tsds-validate/src/command.ts"],"sourcesContent":["import spawn from 'cross-spawn-cb';\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, type CommandOptions, wrapWorker } from 'tsds-lib';\nimport docs from 'tsds-typedoc';\nimport url from 'url';\n\nconst major = +process.versions.node.split('.')[0];\nconst version = major > 18 ? 'local' : 'stable';\nconst __dirname = path.dirname(typeof __filename === 'undefined' ? url.fileURLToPath(import.meta.url) : __filename);\nconst dist = path.join(__dirname, '..');\nconst workerWrapper = wrapWorker(path.join(dist, 'cjs', 'command.js'));\n\nfunction worker(_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, [], options));\n queue.defer(build.bind(null, [], options));\n queue.defer(spawn.bind(null, sortPackageJSON, [], options));\n queue.defer(spawn.bind(null, depcheck, [], options));\n queue.defer(docs.bind(null, [], options));\n queue.await(callback);\n } catch (err) {\n console.log(err.message);\n return callback(err);\n }\n}\n\nexport default function publish(args: string[], options: CommandOptions, callback: CommandCallback) {\n version !== 'local' ? workerWrapper(version, args, options, callback) : worker(args, options, callback);\n}\n"],"names":["publish","major","process","versions","node","split","version","__dirname","path","dirname","__filename","url","fileURLToPath","dist","join","workerWrapper","wrapWorker","worker","_args","options","callback","depcheck","resolveBin","sortPackageJSON","queue","Queue","defer","format","bind","build","spawn","docs","await","err","console","log","message","args"],"mappings":";;;;+BAkCA;;;eAAwBA;;;mEAlCN;2DACD;8DACC;qEACK;gEACJ;gEACD;uBACoD;kEACrD;0DACD;;;;;;AAEhB,IAAMC,QAAQ,CAACC,QAAQC,QAAQ,CAACC,IAAI,CAACC,KAAK,CAAC,IAAI,CAAC,EAAE;AAClD,IAAMC,UAAUL,QAAQ,KAAK,UAAU;AACvC,IAAMM,YAAYC,aAAI,CAACC,OAAO,CAAC,OAAOC,eAAe,cAAcC,YAAG,CAACC,aAAa,CAAC,uDAAmBF;AACxG,IAAMG,OAAOL,aAAI,CAACM,IAAI,CAACP,WAAW;AAClC,IAAMQ,gBAAgBC,IAAAA,mBAAU,EAACR,aAAI,CAACM,IAAI,CAACD,MAAM,OAAO;AAExD,SAASI,OAAOC,KAAe,EAAEC,OAAuB,EAAEC,QAAyB;IACjF,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,MAAM,EAAE,EAAET;QAClCK,MAAME,KAAK,CAACG,kBAAK,CAACD,IAAI,CAAC,MAAM,EAAE,EAAET;QACjCK,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,MAAM,EAAE,EAAET;QAChCK,MAAMQ,KAAK,CAACZ;IACd,EAAE,OAAOa,KAAK;QACZC,QAAQC,GAAG,CAACF,IAAIG,OAAO;QACvB,OAAOhB,SAASa;IAClB;AACF;AAEe,SAASjC,QAAQqC,IAAc,EAAElB,OAAuB,EAAEC,QAAyB;IAChGd,YAAY,UAAUS,cAAcT,SAAS+B,MAAMlB,SAASC,YAAYH,OAAOoB,MAAMlB,SAASC;AAChG"}
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/ts-dev-stack/tsds-validate/src/index.ts"],"sourcesContent":["export { default } from './command.ts';\n"],"names":["default"],"mappings":";;;;+BAASA;;;eAAAA,kBAAO;;;gEAAQ"}
|
package/dist/esm/command.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/ts-dev-stack/tsds-validate/src/command.ts"],"sourcesContent":["import spawn from 'cross-spawn-cb';\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, type CommandOptions, wrapWorker } from 'tsds-lib';\nimport docs from 'tsds-typedoc';\nimport url from 'url';\n\nconst major = +process.versions.node.split('.')[0];\nconst version = major > 18 ? 'local' : 'stable';\nconst __dirname = path.dirname(typeof __filename === 'undefined' ? url.fileURLToPath(import.meta.url) : __filename);\nconst dist = path.join(__dirname, '..');\nconst workerWrapper = wrapWorker(path.join(dist, 'cjs', 'command.js'));\n\nfunction worker(_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, [], options));\n queue.defer(build.bind(null, [], options));\n queue.defer(spawn.bind(null, sortPackageJSON, [], options));\n queue.defer(spawn.bind(null, depcheck, [], options));\n queue.defer(docs.bind(null, [], options));\n queue.await(callback);\n } catch (err) {\n console.log(err.message);\n return callback(err);\n }\n}\n\nexport default function publish(args: string[], options: CommandOptions, callback: CommandCallback) {\n version !== 'local' ? workerWrapper(version, args, options, callback) : worker(args, options, callback);\n}\n"],"names":["spawn","path","Queue","resolveBin","format","build","wrapWorker","docs","url","major","process","versions","node","split","version","__dirname","dirname","__filename","fileURLToPath","dist","join","workerWrapper","worker","_args","options","callback","depcheck","sortPackageJSON","queue","defer","b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OAAOV,SAASO;IAClB;AACF;AAEA,eAAe,SAASI,QAAQC,IAAc,EAAEb,OAAuB,EAAEC,QAAyB;IAChGX,YAAY,UAAUO,cAAcP,SAASuB,MAAMb,SAASC,YAAYH,OAAOe,MAAMb,SAASC;AAChG"}
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/ts-dev-stack/tsds-validate/src/index.ts"],"sourcesContent":["export { default } from './command.ts';\n"],"names":["default"],"mappings":"AAAA,SAASA,OAAO,QAAQ,eAAe"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsds-validate",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Development stack for TypeScript libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"c8",
|
|
@@ -12,11 +12,13 @@
|
|
|
12
12
|
"test",
|
|
13
13
|
"typescript"
|
|
14
14
|
],
|
|
15
|
+
"homepage": "https://github.com/kmalakoff/tsds-validate",
|
|
15
16
|
"repository": {
|
|
16
17
|
"type": "git",
|
|
17
18
|
"url": "git+ssh://git@github.com/kmalakoff/tsds-validate.git"
|
|
18
19
|
},
|
|
19
20
|
"license": "MIT",
|
|
21
|
+
"author": "Kevin Malakoff <kmalakoff@gmail.com> (https://github.com/kmalakoff)",
|
|
20
22
|
"type": "module",
|
|
21
23
|
"exports": {
|
|
22
24
|
".": {
|
|
@@ -26,19 +28,18 @@
|
|
|
26
28
|
"./package.json": "./package.json"
|
|
27
29
|
},
|
|
28
30
|
"main": "dist/cjs/index.js",
|
|
31
|
+
"source": "src/index.ts",
|
|
29
32
|
"types": "dist/cjs/index.d.ts",
|
|
30
33
|
"files": [
|
|
31
|
-
"dist"
|
|
32
|
-
"assets",
|
|
33
|
-
"scripts"
|
|
34
|
+
"dist"
|
|
34
35
|
],
|
|
35
36
|
"scripts": {
|
|
36
|
-
"build": "
|
|
37
|
-
"format": "biome check --write --unsafe
|
|
38
|
-
"prepublishOnly": "
|
|
39
|
-
"test": "",
|
|
40
|
-
"test:engines": "
|
|
41
|
-
"version": ""
|
|
37
|
+
"build": "tsds build",
|
|
38
|
+
"format": "biome check --write --unsafe",
|
|
39
|
+
"prepublishOnly": "tsds validate",
|
|
40
|
+
"test": "tsds test:node --no-timeouts",
|
|
41
|
+
"test:engines": "nvu engines tsds test:node --no-timeouts",
|
|
42
|
+
"version": "tsds version"
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
45
|
"cross-spawn-cb": "*",
|
|
@@ -46,8 +47,8 @@
|
|
|
46
47
|
"queue-cb": "*",
|
|
47
48
|
"resolve-bin-sync": "*",
|
|
48
49
|
"sort-package-json": "*",
|
|
49
|
-
"tsds-biome": "
|
|
50
|
-
"tsds-build": "
|
|
50
|
+
"tsds-biome": "^1.18.1",
|
|
51
|
+
"tsds-build": "^1.20.0",
|
|
51
52
|
"tsds-lib": "*",
|
|
52
53
|
"tsds-typedoc": "*"
|
|
53
54
|
},
|
|
@@ -55,13 +56,18 @@
|
|
|
55
56
|
"@biomejs/biome": "*",
|
|
56
57
|
"@types/mocha": "*",
|
|
57
58
|
"@types/node": "*",
|
|
59
|
+
"mocha": "*",
|
|
60
|
+
"mocha-compat": "*",
|
|
61
|
+
"module-link-unlink": "*",
|
|
58
62
|
"node-version-use": "*",
|
|
59
|
-
"
|
|
63
|
+
"os-shim": "*",
|
|
64
|
+
"resolve": "*",
|
|
65
|
+
"short-hash": "*",
|
|
66
|
+
"ts-dev-stack": "*",
|
|
67
|
+
"ts-swc-loaders": "*",
|
|
68
|
+
"tsds-lib-test": "*"
|
|
60
69
|
},
|
|
61
70
|
"engines": {
|
|
62
71
|
"node": ">=0.8"
|
|
63
|
-
},
|
|
64
|
-
"tsds": {
|
|
65
|
-
"source": "src/index.ts"
|
|
66
72
|
}
|
|
67
73
|
}
|