Skip to content

Commit 5ce9400

Browse files
committed
chore: add debug script
1 parent abccf42 commit 5ce9400

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-2
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"test:ci": "tsdx test --coverage --maxWorkers=2 --testTimeout=20000 --bail --ci",
3636
"lint": "tsdx lint src test",
3737
"lint:fix": "tsdx lint src test --fix",
38+
"debug:analyze": "yarn ts-node --skip-project scripts/debug-analyze.ts",
3839
"prepare": "husky install && yarn build",
3940
"pre-push": "yarn && yarn lint && yarn build && yarn test:cov",
4041
"release": "np"
@@ -98,6 +99,7 @@
9899
"setup-polly-jest": "0.9.1",
99100
"ts-dedent": "2.1.1",
100101
"ts-jest": "26.5.4",
102+
"ts-node": "9.1.1",
101103
"tsdx": "0.14.1",
102104
"tslib": "2.2.0",
103105
"typescript": "4.2.4"

scripts/debug-analyze.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Set env var `DEBUG='@jsdocs-io/extractor'` and run with `yarn debug:analyze`
2+
3+
import { analyzeRegistryPackage } from '../dist';
4+
5+
(async () => {
6+
const info = await analyzeRegistryPackage({ name: '@jsdocs-io/extractor' });
7+
console.log(info);
8+
})();

yarn.lock

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2186,6 +2186,11 @@ anymatch@^3.0.3:
21862186
normalize-path "^3.0.0"
21872187
picomatch "^2.0.4"
21882188

2189+
arg@^4.1.0:
2190+
version "4.1.3"
2191+
resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089"
2192+
integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==
2193+
21892194
argparse@^1.0.7:
21902195
version "1.0.10"
21912196
resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911"
@@ -3644,6 +3649,11 @@ create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7:
36443649
safe-buffer "^5.0.1"
36453650
sha.js "^2.4.8"
36463651

3652+
create-require@^1.1.0:
3653+
version "1.1.1"
3654+
resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333"
3655+
integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==
3656+
36473657
cross-argv@^1.0.0:
36483658
version "1.0.0"
36493659
resolved "https://registry.yarnpkg.com/cross-argv/-/cross-argv-1.0.0.tgz#e7221e9ff73092a80496c699c8c45efb20f6486c"
@@ -4118,6 +4128,11 @@ diff-sequences@^25.2.6:
41184128
resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-25.2.6.tgz#5f467c00edd35352b7bca46d7927d60e687a76dd"
41194129
integrity sha512-Hq8o7+6GaZeoFjtpgvRBUknSXNeJiCx7V9Fr94ZMljNiCr9n9L8H8aJqgWOQiDDGdyn29fRNcDdRVJ5fdyihfg==
41204130

4131+
diff@^4.0.1:
4132+
version "4.0.2"
4133+
resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d"
4134+
integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==
4135+
41214136
diffie-hellman@^5.0.0:
41224137
version "5.0.3"
41234138
resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875"
@@ -7466,7 +7481,7 @@ make-dir@^3.0.0, make-dir@^3.0.2:
74667481
dependencies:
74677482
semver "^6.0.0"
74687483

7469-
make-error@1.x, make-error@^1.3.6:
7484+
make-error@1.x, make-error@^1.1.1, make-error@^1.3.6:
74707485
version "1.3.6"
74717486
resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2"
74727487
integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==
@@ -10076,7 +10091,7 @@ source-map-resolve@^0.6.0:
1007610091
atob "^2.1.2"
1007710092
decode-uri-component "^0.2.0"
1007810093

10079-
source-map-support@^0.5.6, source-map-support@~0.5.12:
10094+
source-map-support@^0.5.17, source-map-support@^0.5.6, source-map-support@~0.5.12:
1008010095
version "0.5.19"
1008110096
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61"
1008210097
integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==
@@ -10831,6 +10846,18 @@ ts-morph@^10.0.2:
1083110846
"@ts-morph/common" "~0.9.0"
1083210847
code-block-writer "^10.1.1"
1083310848

10849+
ts-node@9.1.1:
10850+
version "9.1.1"
10851+
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-9.1.1.tgz#51a9a450a3e959401bda5f004a72d54b936d376d"
10852+
integrity sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg==
10853+
dependencies:
10854+
arg "^4.1.0"
10855+
create-require "^1.1.0"
10856+
diff "^4.0.1"
10857+
make-error "^1.1.1"
10858+
source-map-support "^0.5.17"
10859+
yn "3.1.1"
10860+
1083410861
tsconfig-paths@^3.9.0:
1083510862
version "3.9.0"
1083610863
resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz#098547a6c4448807e8fcb8eae081064ee9a3c90b"
@@ -11631,6 +11658,11 @@ yargs@^16.2.0:
1163111658
y18n "^5.0.5"
1163211659
yargs-parser "^20.2.2"
1163311660

11661+
yn@3.1.1:
11662+
version "3.1.1"
11663+
resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"
11664+
integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==
11665+
1163411666
yocto-queue@^0.1.0:
1163511667
version "0.1.0"
1163611668
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"

0 commit comments

Comments
 (0)