Skip to content

Commit 072b9ff

Browse files
feat(e2e): use typescript wrapper
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
1 parent 4ed06df commit 072b9ff

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
@@ -48,18 +48,21 @@
4848
"./teardown": {
4949
"types": "./dist/playwright/teardown-namespaces.d.ts",
5050
"default": "./dist/playwright/teardown-namespaces.js"
51+
},
52+
"./orchestrator": {
53+
"types": "./dist/deployment/orchestrator/index.d.ts",
54+
"default": "./dist/deployment/orchestrator/index.js"
5155
}
5256
},
5357
"publishConfig": {
5458
"access": "public"
5559
},
5660
"files": [
5761
"dist",
58-
"scripts",
5962
"tsconfig.base.json"
6063
],
6164
"scripts": {
62-
"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/",
65+
"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/",
6366
"prepare": "husky",
6467
"check": "yarn typecheck && yarn lint:check && yarn prettier:check",
6568
"clean": "rm -rf dist",
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)