@carbon/cli 11.40.0-rc.0 → 11.41.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.40.0-rc.0",
4
+ "version": "11.41.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": "2878146d9047a6482e745e7279807c93855e9c09"
60
+ "gitHead": "4f48ac426be7302a57460b1c81d74dd5d6071ad6"
61
61
  }
@@ -167,7 +167,7 @@ const availableProjects = [
167
167
  gitCloneEstimate: 180 * 1000,
168
168
  commands: [
169
169
  {
170
- command: 'yarn install --offline',
170
+ command: 'yarn install --immutable',
171
171
  estimate: 150 * 1000,
172
172
  reason: `to install the project's dependencies`,
173
173
  },
@@ -187,7 +187,7 @@ const availableProjects = [
187
187
  gitCloneEstimate: 180 * 1000,
188
188
  commands: [
189
189
  {
190
- command: 'yarn install --offline',
190
+ command: 'yarn install --immutable',
191
191
  estimate: 45 * 1000,
192
192
  reason: "to install the project's dependencies",
193
193
  },
@@ -76,11 +76,11 @@ async function publish({ tag, ...flags }) {
76
76
 
77
77
  logger.info('Cleaning any local artifacts or node_modules');
78
78
  // Make sure that our tooling is defined before running clean
79
- await execa('yarn', ['install', '--offline']);
79
+ await execa('yarn', ['install', '--immutable']);
80
80
  await execa('yarn', ['clean']);
81
81
 
82
- logger.info('Installing known dependencies from offline mirror');
83
- await execa('yarn', ['install', '--offline']);
82
+ logger.info('Installing dependencies from lockfile');
83
+ await execa('yarn', ['install', '--immutable']);
84
84
 
85
85
  logger.info('Building packages from source');
86
86
  await execa('yarn', ['build']);
@@ -243,11 +243,11 @@ async function resetProjectState() {
243
243
 
244
244
  logger.info('Cleaning any local artifacts or node_modules');
245
245
  // Make sure that our tooling is defined before running clean
246
- await execa('yarn', ['install', '--offline']);
246
+ await execa('yarn', ['install', '--immutable']);
247
247
  await execa('yarn', ['clean']);
248
248
 
249
- logger.info('Installing known dependencies from offline mirror');
250
- await execa('yarn', ['install', '--offline']);
249
+ logger.info('Installing dependencies from lockfile');
250
+ await execa('yarn', ['install', '--immutable']);
251
251
 
252
252
  logger.info('Building packages from source');
253
253
  await execa('yarn', ['build']);
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
  }