@carbon/cli 11.39.0 → 11.40.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/cli",
3
3
  "description": "Task automation for working with the Carbon Design System",
4
- "version": "11.39.0",
4
+ "version": "11.40.0",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "bin": {
@@ -57,5 +57,5 @@
57
57
  "typescript-config-carbon": "^0.9.0",
58
58
  "yargs": "^17.7.2"
59
59
  },
60
- "gitHead": "f366448449df3d81c9bb63a8a842772d734c163a"
60
+ "gitHead": "6dde90f9edfb378e1585f1954c92484a37f22f02"
61
61
  }
@@ -7,7 +7,7 @@
7
7
 
8
8
  import path from 'path';
9
9
  import fs from 'fs-extra';
10
- import { pascalCase } from 'change-case';
10
+ import { pascalCase } from 'change-case-all';
11
11
 
12
12
  export function formatGlobals(string) {
13
13
  const mappings = string.split(',').map((mapping) => {
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import { paramCase } from 'change-case';
8
+ import { paramCase } from 'change-case-all';
9
9
  import fs from 'fs-extra';
10
10
  import inquirer from 'inquirer';
11
11
  import path from 'path';
package/src/compile.js CHANGED
@@ -5,18 +5,21 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import sass from 'sass';
8
+ import * as sass from 'sass';
9
9
 
10
10
  const defaultOptions = {
11
- includePaths: ['node_modules', '../../node_modules'],
11
+ loadPaths: ['node_modules', '../../node_modules'],
12
12
  };
13
13
 
14
- export default function compile(filepaths, options) {
14
+ export default function compile(filepaths, options = {}) {
15
15
  return filepaths.map((file) => {
16
- return sass.renderSync({
17
- file,
16
+ const { includePaths, ...rest } = options;
17
+ const loadPaths =
18
+ rest.loadPaths ?? includePaths ?? defaultOptions.loadPaths;
19
+ return sass.compile(file, {
18
20
  ...defaultOptions,
19
- ...options,
21
+ ...rest,
22
+ loadPaths,
20
23
  });
21
24
  });
22
25
  }