mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 14:34:21 +01:00
Use binaries in PATH in npm run scripts (#2163)
When running software installed via NPM, `node_modules/.bin` is in PATH, so we can just omit mos tof the path. Co-authored-by: Kevin Chung <kchung@ctfd.io>
This commit is contained in:
committed by
GitHub
parent
2a8aa48a32
commit
d1e9ab45bb
@@ -7,11 +7,11 @@
|
|||||||
"test": "tests"
|
"test": "tests"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "node_modules/webpack-cli/bin/cli.js -w --mode=development",
|
"dev": "webpack-cli -w --mode=development",
|
||||||
"build": "node_modules/webpack-cli/bin/cli.js --mode=development; node_modules/webpack-cli/bin/cli.js --mode=production",
|
"build": "webpack-cli --mode=development; webpack-cli --mode=production",
|
||||||
"verify": "node_modules/webpack-cli/bin/cli.js --mode=development --display=errors-only; node_modules/webpack-cli/bin/cli.js --mode=production --display=errors-only; git diff --quiet --exit-code",
|
"verify": "webpack-cli --mode=development --display=errors-only; webpack-cli --mode=production --display=errors-only; git diff --quiet --exit-code",
|
||||||
"clean": "rm -rf CTFd/themes/core/static/css/* CTFd/themes/core/static/js/* CTFd/themes/admin/static/css/* CTFd/themes/admin/static/js/*",
|
"clean": "rm -rf CTFd/themes/core/static/css/* CTFd/themes/core/static/js/* CTFd/themes/admin/static/css/* CTFd/themes/admin/static/js/*",
|
||||||
"lint": "node_modules/.bin/eslint CTFd/themes/core/assets/ CTFd/themes/admin/assets/"
|
"lint": "eslint CTFd/themes/core/assets/ CTFd/themes/admin/assets/"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user