Skip to content

Commit 6086fc4

Browse files
authored
Merge pull request #10 from lstreckeisen/setup-cml-grammar
publish package from project root
2 parents 7a5a576 + 609a6ac commit 6086fc4

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,6 @@ jobs:
6060
name: cml-language-server
6161
path: ./cml-ls/
6262

63-
- name: Prepare publication
64-
if: github.event_name == 'release' # Publish only on release creation
65-
run: |
66-
cp cml-ls.package.json cml-ls/package.json
67-
cp .yarnrc.yml cml-ls/.yarnrc.yml
68-
sed -i -e 's/<TOKEN>/${{ secrets.GITHUB_TOKEN }}/g' cml-ls/.yarnrc.yml
69-
cp -r .yarn cml-ls/.yarn
70-
touch cml-ls/yarn.lock
71-
cd cml-ls && yarn install
72-
7363
- name: Publish to GitHub Package Registry
7464
if: github.event_name == 'release' # Publish only on release creation
7565
run: yarn npm publish
76-
working-directory: cml-ls

.yarn/install-state.gz

-7.4 KB
Binary file not shown.

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@
88
},
99
"type": "module",
1010
"files": [
11-
"."
11+
"cml-ls/",
12+
"README.md"
1213
],
1314
"repository": {
1415
"type": "url",
1516
"url": "https://github.com/lstreckeisen/context-mapper-language-server.git"
1617
},
17-
"main": "./cml-ls/index.js",
18+
"main": "cml-ls/index.js",
19+
"bin": {
20+
"cml-language-server": "cml-ls/index.js"
21+
},
1822
"scripts": {
1923
"build": "tsc -b tsconfig.src.json && node esbuild.mjs",
2024
"watch": "concurrently -n tsc,esbuild -c blue,yellow \"tsc -b tsconfig.src.json --watch\" \"node esbuild.mjs --watch\"",

yarn.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,8 @@ __metadata:
505505
vitest: "npm:~1.4.0"
506506
vscode-languageserver: "npm:~9.0.1"
507507
vscode-languageserver-types: "npm:~3.17.5"
508+
bin:
509+
cml-language-server: cml-ls/index.js
508510
languageName: unknown
509511
linkType: soft
510512

0 commit comments

Comments
 (0)