Skip to content

Commit 20eb736

Browse files
feat(e2e): use typescript wrapper
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
1 parent 966003d commit 20eb736

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,21 @@
4444
"./keycloak": {
4545
"types": "./dist/deployment/keycloak/index.d.ts",
4646
"default": "./dist/deployment/keycloak/index.js"
47+
},
48+
"./orchestrator": {
49+
"types": "./dist/deployment/orchestrator/index.d.ts",
50+
"default": "./dist/deployment/orchestrator/index.js"
4751
}
4852
},
4953
"publishConfig": {
5054
"access": "public"
5155
},
5256
"files": [
5357
"dist",
54-
"scripts",
5558
"tsconfig.base.json"
5659
],
5760
"scripts": {
58-
"build": "yarn clean && tsc -p tsconfig.build.json && cp -r src/deployment/rhdh/config dist/deployment/rhdh/ && cp -r src/deployment/keycloak/config dist/deployment/keycloak/",
61+
"build": "yarn clean && tsc -p tsconfig.build.json && cp -r src/deployment/rhdh/config dist/deployment/rhdh/ && cp -r src/deployment/keycloak/config dist/deployment/keycloak/ && cp src/deployment/orchestrator/install-orchestrator.sh dist/deployment/orchestrator/",
5962
"check": "yarn typecheck && yarn lint:check && yarn prettier:check",
6063
"clean": "rm -rf dist",
6164
"lint:check": "eslint . --ignore-pattern dist --ignore-pattern README.md --ignore-pattern docs",
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { resolve } from "path";
2+
import { $ } from "../../utils/index.js";
3+
4+
const scriptPath = resolve(import.meta.dirname, "install-orchestrator.sh");
5+
6+
export async function installOrchestrator(namespace = "orchestrator") {
7+
await $`bash ${scriptPath} ${namespace}`;
8+
}
File renamed without changes.

0 commit comments

Comments
 (0)