Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ jars/
bin
.vscode-test
coverage/
docs
173 changes: 173 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"color-name": "1.1.3"
},
"scripts": {
"vscode:prepublish": "npm run compile",
"vscode:prepublish": "npm run compile && npx typedoc --out docs --entryPointStrategy expand src/",
Copy link
Contributor

@holly-smile holly-smile Sep 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since these docs are for people developing this extension, and thus the ones not using the published version, I don't think it makes sense to run it as part of the pre-publish step. I think it'd be sufficient to have an npm run docs script that generates them.

Suggested change
"vscode:prepublish": "npm run compile && npx typedoc --out docs --entryPointStrategy expand src/",
"vscode:prepublish": "npm run compile",
"docs": "typedoc --out docs --entryPointStrategy expand src/",

(npx isn't needed with npm run, it will automatically scope in any modules with executables!)

If you think otherwise please let me know why!

"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run clean && npm run compile && cp -r src/test/suite/resources dist/test/suite/resources",
Expand Down Expand Up @@ -184,6 +184,7 @@
"c8": "^10.1.2",
"prettier": "^3.3.3",
"sinon": "^18.0.0",
"typedoc": "^0.26.6",
"typescript": "^5.3.2"
},
"dependencies": {
Expand Down
Loading