Skip to content

Commit fd9ae05

Browse files
committed
GLSP-1004 Update publish process
Exclude spec file from published content. Also include bundled browser workflow sever into published content Part of eclipse-glsp/glsp#1004
1 parent c1be494 commit fd9ae05

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

examples/workflow-server/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
"node.d.ts",
4545
"browser.d.ts",
4646
"browser.js",
47-
"bundle/wf-glsp-server-node.js"
47+
"bundle/wf-glsp-server-node.js",
48+
"bundle/wf-glsp-server-webworker.js"
4849
],
4950
"scripts": {
5051
"build": "tsc -b && yarn bundle",
@@ -54,6 +55,7 @@
5455
"lint": "eslint --ext .ts,.tsx ./src",
5556
"lint:ci": "yarn lint -o eslint.xml -f checkstyle",
5657
"prepare": "yarn clean && yarn build",
58+
"prepublish": "yarn bundle && yarn bundle:browser",
5759
"start": "node --enable-source-maps bundle/wf-glsp-server-node.js --port 5007",
5860
"start:websocket": "node --enable-source-maps bundle/wf-glsp-server-node.js -w --port 8081",
5961
"watch": "tsc -w"

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
"lint": "lerna run lint",
1717
"lint:ci": "lerna run lint:ci",
1818
"prepare": "lerna run prepare",
19-
"publish:latest": "lerna publish from-git --no-git-reset --no-git-tag-version --no-verify-access --no-push",
20-
"publish:next": "SHA=$(git rev-parse --short HEAD) && lerna publish preminor --exact --canary --preid next.${SHA} --dist-tag next --no-git-reset --no-git-tag-version --no-push --ignore-scripts --yes --no-verify-access",
19+
"prepublish": "lerna run prepublish",
20+
"publish:latest": "yarn prepublish && lerna publish from-git --no-git-reset --no-git-tag-version --no-verify-access --no-push",
21+
"publish:next": "yarn prepublish && SHA=$(git rev-parse --short HEAD) && lerna publish preminor --exact --canary --preid next.${SHA} --dist-tag next --no-git-reset --no-git-tag-version --no-push --ignore-scripts --yes --no-verify-access",
2122
"publish:prepare": "lerna version --ignore-scripts --yes --no-push",
2223
"start": "yarn --cwd examples/workflow-server start",
2324
"start:websocket": "yarn --cwd examples/workflow-server start:websocket",

packages/graph/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"baseUrl": "src",
88
"types": ["node", "mocha", "reflect-metadata"]
99
},
10-
"include": ["src"],
11-
"exclude": ["**/*.spec.ts"]
10+
"exclude": ["**/*.spec.ts"],
11+
"include": ["src"]
1212
}

packages/layout-elk/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
"baseUrl": "src",
88
"types": ["node", "mocha", "reflect-metadata"]
99
},
10+
"exclude": ["**/*.spec.ts"],
1011
"include": ["src"]
1112
}

packages/server/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"outDir": "lib",
66
"baseUrl": "src"
77
},
8+
"exclude": ["**/*.spec.ts", "src/common/test/mock-util.ts"],
89
"include": ["src"]
910
}

0 commit comments

Comments
 (0)