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
6 changes: 6 additions & 0 deletions .changeset/build-dist-on-prepack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@wc-toolkit/wctools": patch
"@wc-toolkit/language-server": patch
---

Build output is now generated on `prepack`, so published tarballs always include `dist/` (and `bin/`). Previously these packages could be published without their build output, which left the `wctools` and `wc-language-server` `bin` entries pointing at missing files and made the CLIs unusable after install.
5 changes: 5 additions & 0 deletions .changeset/wctools-repository-metadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wc-toolkit/wctools": patch
---

Add `repository`, `bugs`, and `homepage` fields so the package links back to the GitHub repository on npm, making it easy to find the source and file issues.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/volarjs/starter.git"
"url": "https://github.com/wc-toolkit/wc-language-server.git"
},
"bugs": {
"url": "https://github.com/wc-toolkit/wc-language-server/issues"
},
"homepage": "https://github.com/wc-toolkit/wc-language-server",
"scripts": {
"dev": "pnpm --filter @wc-toolkit/zed run dev",
"build": "pnpm -r run build",
Expand Down
9 changes: 9 additions & 0 deletions packages/jetbrains/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
"version": "0.0.9",
"description": "JetBrains plugin for Web Components Language Server",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/wc-toolkit/wc-language-server.git",
"directory": "packages/jetbrains"
},
"bugs": {
"url": "https://github.com/wc-toolkit/wc-language-server/issues"
},
"homepage": "https://github.com/wc-toolkit/wc-language-server",
"scripts": {
"build": "export JAVA_HOME=$(/usr/libexec/java_home -v 17) && ./gradlew buildPlugin --no-configuration-cache",
"clean": "export JAVA_HOME=$(/usr/libexec/java_home -v 17) && ./gradlew clean",
Expand Down
1 change: 1 addition & 0 deletions packages/language-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"node": ">=18"
},
"scripts": {
"prepack": "pnpm run build",
"build": "tsc -p tsconfig.json && pnpm run bundle:single && pnpm run bundle:executable",
"bundle:single": "node ./scripts/build-single-file.mjs",
"bundle:executable": "node ./scripts/build-single-executable.mjs",
Expand Down
9 changes: 9 additions & 0 deletions packages/neovim/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
"description": "Neovim plugin for the Web Components Language Server",
"private": true,
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/wc-toolkit/wc-language-server.git",
"directory": "packages/neovim"
},
"bugs": {
"url": "https://github.com/wc-toolkit/wc-language-server/issues"
},
"homepage": "https://github.com/wc-toolkit/wc-language-server",
"scripts": {
"build": "node ./scripts/bundle-language-server.mjs",
"dev": "node ./scripts/open-dev-terminal.mjs",
Expand Down
6 changes: 5 additions & 1 deletion packages/visual-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,9 @@
"type": "git",
"url": "https://github.com/wc-toolkit/wc-language-server.git",
"directory": "packages/visual-studio"
}
},
"bugs": {
"url": "https://github.com/wc-toolkit/wc-language-server/issues"
},
"homepage": "https://github.com/wc-toolkit/wc-language-server"
}
4 changes: 4 additions & 0 deletions packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"url": "https://github.com/wc-toolkit/wc-language-server.git",
"directory": "packages/vscode"
},
"bugs": {
"url": "https://github.com/wc-toolkit/wc-language-server/issues"
},
"homepage": "https://github.com/wc-toolkit/wc-language-server",
"categories": [
"Programming Languages"
],
Expand Down
13 changes: 13 additions & 0 deletions packages/wctools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,20 @@
"bin": {
"wctools": "dist/cli.js"
},
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/wc-toolkit/wc-language-server.git",
"directory": "packages/wctools"
},
"bugs": {
"url": "https://github.com/wc-toolkit/wc-language-server/issues"
},
"homepage": "https://github.com/wc-toolkit/wc-language-server",
"scripts": {
"prepack": "pnpm run build",
"build": "tsup",
"build:deps": "pnpm --filter @wc-toolkit/language-server run build",
"prebuild": "npm run build:deps",
Expand Down
9 changes: 9 additions & 0 deletions packages/zed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
"private": true,
"type": "module",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/wc-toolkit/wc-language-server.git",
"directory": "packages/zed"
},
"bugs": {
"url": "https://github.com/wc-toolkit/wc-language-server/issues"
},
"homepage": "https://github.com/wc-toolkit/wc-language-server",
"scripts": {
"bundle": "node ./scripts/bundle-language-server.mjs",
"build": "node ./scripts/build-extension.mjs",
Expand Down