Skip to content

Commit

Permalink
build: fix build output to get npm to install markdoc-ls to bin
Browse files Browse the repository at this point in the history
  • Loading branch information
ferntheplant committed Mar 27, 2024
1 parent 0539ef8 commit 7bdd8f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ When using the server standalone without the client VS Code extension you can pa
}
```

Invoke the server with `markdoc-ls --stdio` from within your LSP client.

### File extensions

In order to distinguish Markdoc files from Markdown files, the Visual Studio Code extension expects Markdoc files to use one of the following file extensions: `.markdoc`, `.markdoc.md`, or `.mdoc`.
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"url": "https://github.com/markdoc/language-server.git"
},
"main": "./dist/client/index.js",
"bin": {
"markdoc-ls": "dist/server/wrapper.js"
},
"scripts": {
"build": "node build.mjs",
"build:watch": "node build.mjs --watch",
Expand Down
3 changes: 0 additions & 3 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"main": "dist/index.js",
"author": "Ryan Paul",
"license": "MIT",
"bin": {
"markdoc-ls": "dist/wrapper.js"
},
"devDependencies": {
"@markdoc/markdoc": "^0.3.3",
"@types/picomatch": "^2.3.0",
Expand Down

0 comments on commit 7bdd8f1

Please sign in to comment.