[CLI] `build-scss` requires `dist` directory exists, still runs after showing error
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 140
- Forks
- 100
- Avg merge
- 1h 3m
- Merged PRs (30d)
- 30
Description
If you don't have a dist directory and run build-scss, you'll see an error
✖ Failed to build stylesheets for Core: ENOENT: no such file or directory, open './dist/core.css'
but it will continue to run anyways (and can't be interrupted )
brand-openedx has a line in the Makefile working around this
.PHONY: build
build:
rm -rf dist && mkdir dist
npm run build-tokens
npm run build-scss
We should either stop trying to build if we don't have an output directory, or create one if it is missing.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the implementation behind the build-scss command and run it without a dist directory to reproduce the ENOENT error and continued execution. Decide whether the command should create the missing output directory or stop cleanly, then verify that the chosen behavior completes without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, scss
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100