Skip to content

Commit e6b32d1

Browse files
committed
NPM publish config
1 parent 5fc0fe3 commit e6b32d1

File tree

3 files changed

+27
-8
lines changed

3 files changed

+27
-8
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ node_modules
2727
.node_repl_history
2828

2929
/temp
30-
30+
/dist
3131
# cspell:ignore pids jscoverage wscript
3232

3333
# mac temp file

package-lock.json

Lines changed: 19 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
{
2-
"name": "cspell-lsp",
2+
"name": "@vlabo/cspell-lsp",
33
"version": "1.0.0",
44
"description": "This extension performs spell checking in source code files, using the [cspell library](https://cspell.org/).",
55
"main": "index.js",
66
"type": "module",
7-
"bin": "./dist/bundle.mjs",
7+
"bin": {
8+
"cspell-lsp": "dist/cspell-lsp.js"
9+
},
810
"files": [],
911
"author": "vlabo",
1012
"license": "GPL-3.0-only",
1113
"homepage": "https://github.com/vlabo/cspell-lsp",
1214
"dependencies": {
15+
"@vlabo/cspell-lsp": "^1.0.0",
1316
"cspell-lib": "^8.17.1",
1417
"vscode-languageserver": "^9.0.1",
1518
"vscode-languageserver-textdocument": "^1.0.12",
@@ -19,8 +22,8 @@
1922
"@types/node": "^22.10.5"
2023
},
2124
"scripts": {
22-
"build": "bun build ./src/main.ts --outfile=dist/bundle.mjs --target=node",
23-
"start": "node dist/bundle.mjs",
25+
"build": "bun build ./src/main.ts --outfile=dist/cspell-lsp.js --target=node",
26+
"start": "node dist/cspell-lsp.js",
2427
"test": "echo \"Error: no test specified\" && exit 1",
2528
"prepublishOnly": "npm run build"
2629
},

0 commit comments

Comments
 (0)