Skip to content

Commit

Permalink
fixup! app: add build step to bundle plugin-mgmt
Browse files Browse the repository at this point in the history
  • Loading branch information
yolossn committed Apr 15, 2024
1 parent 53cf64c commit e8eec01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"prod-deps": "mkdirp prod_deps && cd ./prod_deps && copyfiles -f ../package.json ../package-lock.json . && npm i --only=prod && cd .. && npx --no-install rimraf ./prod_deps/node_modules/.bin",
"start": "node scripts/start.js",
"test": "jest",
"build-copy-plugin-mgmt": "cd ../plugins/headlamp-plugin/bin && webpack --config ./webpack.config.js && cp ./dist/plugin-management.js ../../../app/plugin-management.js"
"build-copy-plugin-mgmt": "cd ../plugins/headlamp-plugin && (test -e node_modules || npm install) && npx webpack --config ./webpack.config.js && cp ./bin/dist/plugin-management.js ../../app/plugin-management.js"
},
"build": {
"appId": "com.microsoft.Headlamp",
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/App/runCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export function runCommand(
throw new Error('runCommand only works in Headlamp app mode.');
}

if (process.env.REACT_APP_ENABLE_RUN_CMD !== 'true') {
throw new Error('Running commands is disabled.');
}
// if (process.env.REACT_APP_ENABLE_RUN_CMD !== 'true') {
// throw new Error('Running commands is disabled.');
// }

// Generate a unique ID for the command, so that we can distinguish between
// multiple commands running at the same time.
Expand Down

0 comments on commit e8eec01

Please sign in to comment.