-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up a debugging config for plugin
- Loading branch information
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Attach", | ||
"port": 9229, | ||
"request": "attach", | ||
"internalConsoleOptions": "openOnSessionStart", | ||
"skipFiles": ["<node_internals>/**"], | ||
"type": "node", | ||
"sourceMaps": true, | ||
"resolveSourceMapLocations": [ | ||
// "${workspaceFolder}/**", | ||
"!**/node_modules/**" | ||
], | ||
"sourceMapPathOverrides": { | ||
"typedoc-plugin-missing-exports://*": "${workspaceFolder}/*" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
# Expects to be run from within a package where you want to debug this plugin. | ||
# Will create a td-missing-exports folder which hardlinks the build of this plugin | ||
# so that imports of typedoc will use the debug target's version of TypeDoc, | ||
# while allowing changes to be made/debugged in this repo. | ||
|
||
PLUGIN_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd) | ||
|
||
rm -rf td-missing-exports | ||
mkdir td-missing-exports | ||
ln -T "$PLUGIN_DIR/../package.json" td-missing-exports/package.json | ||
ln -T "$PLUGIN_DIR/../index.js" td-missing-exports/index.js | ||
ln -T "$PLUGIN_DIR/../index.js.map" td-missing-exports/index.js.map | ||
|
||
echo "Add ./td-missing-exports/index.js to your plugins configuration for debugging" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters