Fix build test app

This commit is contained in:
garronej 2023-03-18 16:57:58 +01:00
parent 32f8380e56
commit 910d633ac2
2 changed files with 4 additions and 4 deletions

View File

@ -11,11 +11,11 @@
"scripts": { "scripts": {
"build": "rimraf dist/ && tsc -p src/bin && tsc -p src/tsconfig.json && tsc-alias -p src/tsconfig.json && yarn grant-exec-perms && yarn copy-files dist/", "build": "rimraf dist/ && tsc -p src/bin && tsc -p src/tsconfig.json && tsc-alias -p src/tsconfig.json && yarn grant-exec-perms && yarn copy-files dist/",
"build:watch": "tsc -p src/tsconfig.json && (concurrently \"tsc -p src/tsconfig.json -w\" \"tsc-alias -p src/tsconfig.json\")", "build:watch": "tsc -p src/tsconfig.json && (concurrently \"tsc -p src/tsconfig.json -w\" \"tsc-alias -p src/tsconfig.json\")",
"build:test": "rimraf dist_test/ && tsc -p test/tsconfig.json && tsc-alias -p test/tsconfig.json && yarn copy-files dist_test/", "build:test": "rimraf dist_test/ && tsc -p test/tsconfig.json && tsc-alias -p test/tsconfig.json && yarn copy-files dist_test/src",
"grant-exec-perms": "node dist/bin/tools/grant-exec-perms.js", "grant-exec-perms": "node dist/bin/tools/grant-exec-perms.js",
"copy-files": "copyfiles -u 1 src/**/*.ftl", "copy-files": "copyfiles -u 1 src/**/*.ftl",
"pretest": "yarn build:test", "test": "yarn build:test && node dist_test/test/bin && node dist_test/test/lib",
"test": "node dist_test/test/bin && node dist_test/test/lib", "test:sample-app": "yarn build:test && node dist_test/test/bin/main.js",
"_format": "prettier '**/*.{ts,tsx,json,md}'", "_format": "prettier '**/*.{ts,tsx,json,md}'",
"format": "yarn _format --write", "format": "yarn _format --write",
"format:check": "yarn _format --list-different", "format:check": "yarn _format --list-different",

View File

@ -7,7 +7,7 @@ import { getProjectRoot } from "keycloakify/bin/tools/getProjectRoot.js";
(async () => { (async () => {
await setupSampleReactProject(); await setupSampleReactProject();
const binDirPath = pathJoin(getProjectRoot(), "dist_test", "bin"); const binDirPath = pathJoin(getProjectRoot(), "dist_test", "src", "bin");
st.execSyncTrace( st.execSyncTrace(
//`node ${pathJoin(binDirPath, "keycloakify")} --external-assets`, //`node ${pathJoin(binDirPath, "keycloakify")} --external-assets`,