Skip to content

Commit

Permalink
fix: make styleguide dir before creating file
Browse files Browse the repository at this point in the history
This prevents a first time install error that happens when there is no
styleguide directory: touch: ./styleguide/docs.md: No such file or directory.

Resolves #50
  • Loading branch information
yosevu authored and Yosevu Kilonzo committed Nov 6, 2020
1 parent d0a6183 commit bb1ff0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"scripts": {
"start": "npm run docs",
"predocs": "rm -rf ./styleguide/* && touch ./styleguide/docs.md",
"predocs": "rm -rf styleguide && mkdir styleguide && touch styleguide/docs.md",
"docs": "npm run sass",
"sass": "sass mdcss:styleguide",
"postsass": "postcss styleguide/docs.css -r",
Expand Down

0 comments on commit bb1ff0d

Please sign in to comment.