Skip to content

Commit 0ed3475

Browse files
author
Martynas Žilinskas
authored
Merge pull request #88 from reactway/dev
Hotfix: Fix configuration check and update log message. (#86) (#87)
2 parents 66bdb45 + 650dc78 commit 0ed3475

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scss-bundle",
3-
"version": "3.1.0",
3+
"version": "3.1.1",
44
"description": "Bundling SCSS files to one bundled file.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/cli/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ async function main(argv: string[]): Promise<void> {
140140
Log.info("Waiting for changes...");
141141
});
142142

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

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

0 commit comments

Comments
 (0)