Skip to content

Commit

Permalink
selfreview
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarDamkjaer committed Oct 16, 2023
1 parent dc281ad commit daec426
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This package contains a LSP server wrapper for the `language-support` package.

To package the language server into a single javascript bundle, go to the root of the project and
do `npm run assemble` or `npm run assemble -- -- --minify` if you'd rather have the code minified.
After that a file `./packages/server/out/cypher-language-server.js` will be generated.
After that a file `./packages/server/dist/cypher-language-server.js` will be generated.

You can run the language server with `node ./cypher-language-server.js --stdio`.

Expand Down
8 changes: 4 additions & 4 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author": "neo4j",
"license": "Apache",
"version": "0.0.1",
"main": "out/server.js",
"main": "dist/server.js",
"types": "src/server.ts",
"dependencies": {
"language-support": "*",
Expand All @@ -14,10 +14,10 @@
"vscode-languageserver-textdocument": "^1.0.8"
},
"scripts": {
"build": "esbuild ./src/server.ts --bundle --outfile=./out/server.js --format=cjs --platform=node --external:antlr4",
"build": "tsc --noEmit && esbuild ./src/server.ts --bundle --outfile=./dist/server.js --format=cjs --platform=node --external:antlr4",
"clean": "rm -rf out",
"watch": "npm run build",
"assemble": "esbuild ./src/server.ts --bundle --outfile=./out/cypher-language-server.js --format=esm --platform=node"
"watch": "esbuild ./src/server.ts --bundle --outfile=./dist/server.js --format=cjs --platform=node --external:antlr4 --watch ",
"assemble": "esbuild ./src/server.ts --bundle --outfile=./dist/cypher-language-server.js --format=esm --platform=node"
},
"devDependencies": {
"esbuild": "^0.19.4"
Expand Down
6 changes: 1 addition & 5 deletions packages/server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"include": ["src"],
"compilerOptions": {
"outDir": "out",
"module": "CommonJS"
}
"include": ["src"]
}
6 changes: 3 additions & 3 deletions packages/vscode-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"activationEvents": [
"onLanguage:cypher"
],
"main": "./out/src/extension",
"main": "./dist/src/extension",
"contributes": {
"languages": [
{
Expand Down Expand Up @@ -72,9 +72,9 @@
}
},
"scripts": {
"build": "tsc -b && cp -r ./e2e_tests/fixtures ./out/e2e_tests/fixtures",
"build": "tsc -b && cp -r ./e2e_tests/fixtures ./dist/e2e_tests/fixtures",
"clean": "rm -rf out",
"test:e2e": "rm -rf .vscode-test/user-data && node ./out/e2e_tests/main.js",
"test:e2e": "rm -rf .vscode-test/user-data && node ./dist/e2e_tests/main.js",
"watch": "tsc -b -w"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-playground/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"include": ["src", "e2e_tests"],
"compilerOptions": { "outDir": "out" }
"compilerOptions": { "outDir": "dist" }
}

0 comments on commit daec426

Please sign in to comment.