Skip to content

Commit

Permalink
Merge pull request #88 from reactway/dev
Browse files Browse the repository at this point in the history
Hotfix: Fix configuration check and update log message. (#86) (#87)
  • Loading branch information
Martynas Žilinskas authored Mar 19, 2020
2 parents 66bdb45 + 650dc78 commit 0ed3475
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scss-bundle",
"version": "3.1.0",
"version": "3.1.1",
"description": "Bundling SCSS files to one bundled file.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/cli/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ async function main(argv: string[]): Promise<void> {
Log.info("Waiting for changes...");
});

if (config.rootDir) {
Log.warn("rootDir property is missing, using cwd.");
if (!config.rootDir) {
Log.warn(`rootDir property is missing in config, using current working directory: ${process.cwd()}`);
}

const watchFolder = config.rootDir ?? process.cwd();
Expand Down

0 comments on commit 0ed3475

Please sign in to comment.