fix build

This commit is contained in:
Joseph Garrone
2021-02-22 00:20:10 +01:00
parent 5d9a6c8c6b
commit c290d6bee8
3 changed files with 576 additions and 4 deletions

View File

@ -9,7 +9,8 @@
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
"scripts": {
"build": "tsc && npm run grant-exec-perms",
"build": "tsc && npm run grant-exec-perms && npm run copy-standalone-ha",
"copy-standalone-ha": "cp src/bin/build-keycloak-theme/generateDebugFiles/standalone-ha.xml dist/bin/build-keycloak-theme/generateDebugFiles/",
"grant-exec-perms": "cd dist/bin && chmod +x build-keycloak-theme/index.js download-sample-keycloak-themes.js",
"test": "node dist/test/build-keycloak-theme && node dist/test/download-sample-keycloak-themes",
"enable_short_import_path": "npm run build && denoify_enable_short_npm_import_path"
@ -35,6 +36,7 @@
"homepage": "https://github.com/garronej/keycloak-react-theming",
"devDependencies": {
"@types/node": "^10.0.0",
"copyfiles": "^2.4.1",
"denoify": "^0.6.4",
"scripting-tools": "^0.19.13",
"typescript": "^4.1.5"