@adamlui/scss-to-css 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,10 +2,11 @@
2
2
 
3
3
  ### Recursively compile all SCSS files into minified CSS.
4
4
 
5
+ <a href="https://www.npmjs.com/package/@adamlui/scss-to-css"><img height=31 src="https://img.shields.io/npm/dt/%40adamlui%2Fscss-to-css?logo=npm&logoColor=white&labelColor=46464&style=for-the-badge"></a>
5
6
  <a href="#%EF%B8%8F-mit-license"><img height=31 src="https://img.shields.io/badge/License-MIT-fcde7b.svg?logo=internetarchive&logoColor=white&labelColor=464646&style=for-the-badge"></a>
6
- <a href="https://www.npmjs.com/package/@adamlui/scss-to-css"><img height=31 src="https://img.shields.io/badge/Latest_Build-1.3.1-fc7811.svg?logo=npm&logoColor=white&labelColor=464646&style=for-the-badge"></a>
7
+ <a href="https://www.npmjs.com/package/@adamlui/scss-to-css?activeTab=versions"><img height=31 src="https://img.shields.io/badge/Latest_Build-1.3.2-fc7811.svg?logo=icinga&logoColor=white&labelColor=464646&style=for-the-badge"></a>
7
8
 
8
- <img height=8px width="100%" src="https://raw.githubusercontent.com/adamlui/js-utils/main/media/images/separators/aqua.png">
9
+ <img height=8px width="100%" src="https://github.com/adamlui/js-utils/blob/main/docs/images/aqua-separator.png">
9
10
 
10
11
  ## ⚡ Installation
11
12
 
@@ -111,7 +112,7 @@ SOFTWARE.
111
112
 
112
113
  <br>
113
114
 
114
- <img height=6px width="100%" src="https://raw.githubusercontent.com/adamlui/js-utils/main/media/images/separators/aqua.png">
115
+ <img height=6px width="100%" src="https://github.com/adamlui/js-utils/blob/main/docs/images/aqua-separator.png">
115
116
 
116
117
  <a href="https://github.com/adamlui/js-utils">**Home**</a> /
117
118
  <a href="https://github.com/adamlui/js-utils/discussions">Discuss</a> /
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamlui/scss-to-css",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Recursively compile all SCSS files into minified CSS",
5
5
  "author": {
6
6
  "name": "Adam Lui",
package/scss-to-css.js CHANGED
@@ -13,13 +13,13 @@ const nc = '\x1b[0m', // no color
13
13
 
14
14
  // Init I/O args
15
15
  const [inputArg = '', outputArg = ''] = ( // default to empty strings for error-less handling
16
- process.argv.slice(2) // exclude executable and script path
16
+ process.argv.slice(2) // exclude executable and script paths
17
17
  .filter(arg => !arg.startsWith('-')) // exclude flags
18
18
  .map(arg => arg.replace(/^\/*/, '')) // clean leading slashes to avoid parsing system root
19
19
  );
20
20
 
21
21
  // Validate input arg (output arg can be anything)
22
- const inputPath = path.resolve(__dirname, inputArg);
22
+ const inputPath = path.resolve(process.cwd(), inputArg);
23
23
  if (inputArg && !fs.existsSync(inputPath)) {
24
24
  console.error(`\n${br}Error: First arg must be an existing file or directory.`
25
25
  + `\n${ inputPath } does not exist.${nc}`