Skip to content

Commit

Permalink
GLSP-1004 Update publish process
Browse files Browse the repository at this point in the history
Exclude spec file from published content.
Also include bundled browser workflow  sever into published content

Part of eclipse-glsp/glsp#1004
  • Loading branch information
tortmayr committed May 22, 2023
1 parent c1be494 commit fd9ae05
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
4 changes: 3 additions & 1 deletion examples/workflow-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"node.d.ts",
"browser.d.ts",
"browser.js",
"bundle/wf-glsp-server-node.js"
"bundle/wf-glsp-server-node.js",
"bundle/wf-glsp-server-webworker.js"
],
"scripts": {
"build": "tsc -b && yarn bundle",
Expand All @@ -54,6 +55,7 @@
"lint": "eslint --ext .ts,.tsx ./src",
"lint:ci": "yarn lint -o eslint.xml -f checkstyle",
"prepare": "yarn clean && yarn build",
"prepublish": "yarn bundle && yarn bundle:browser",
"start": "node --enable-source-maps bundle/wf-glsp-server-node.js --port 5007",
"start:websocket": "node --enable-source-maps bundle/wf-glsp-server-node.js -w --port 8081",
"watch": "tsc -w"
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
"lint": "lerna run lint",
"lint:ci": "lerna run lint:ci",
"prepare": "lerna run prepare",
"publish:latest": "lerna publish from-git --no-git-reset --no-git-tag-version --no-verify-access --no-push",
"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",
"prepublish": "lerna run prepublish",
"publish:latest": "yarn prepublish && lerna publish from-git --no-git-reset --no-git-tag-version --no-verify-access --no-push",
"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",
"publish:prepare": "lerna version --ignore-scripts --yes --no-push",
"start": "yarn --cwd examples/workflow-server start",
"start:websocket": "yarn --cwd examples/workflow-server start:websocket",
Expand Down
4 changes: 2 additions & 2 deletions packages/graph/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"baseUrl": "src",
"types": ["node", "mocha", "reflect-metadata"]
},
"include": ["src"],
"exclude": ["**/*.spec.ts"]
"exclude": ["**/*.spec.ts"],
"include": ["src"]
}
1 change: 1 addition & 0 deletions packages/layout-elk/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"baseUrl": "src",
"types": ["node", "mocha", "reflect-metadata"]
},
"exclude": ["**/*.spec.ts"],
"include": ["src"]
}
1 change: 1 addition & 0 deletions packages/server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"outDir": "lib",
"baseUrl": "src"
},
"exclude": ["**/*.spec.ts", "src/common/test/mock-util.ts"],
"include": ["src"]
}

0 comments on commit fd9ae05

Please sign in to comment.