sheetloaf 1.25.0 → 1.26.0-beta.1

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/dist/configs.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.generateSassOptionsAsync = exports.generateSassOptions = exports.generatePostcssConfigFromUse = exports.generatePostcssConfigFromFile = void 0;
7
7
  const path_1 = __importDefault(require("path"));
8
8
  const fs_1 = __importDefault(require("fs"));
9
- const sass_1 = require("sass");
9
+ const sass_embedded_1 = require("sass-embedded");
10
10
  function generatePostcssConfigFromFile(configPath = '') {
11
11
  let obj = {
12
12
  plugins: []
@@ -38,7 +38,7 @@ function generateSassOptions(opts) {
38
38
  loadPaths: opts.loadPath ? opts.loadPath.split(',') : [],
39
39
  sourceMap: opts.sourceMap === false ? false : true,
40
40
  sourceMapIncludeSources: opts.sourceMap === false ? false : true,
41
- importers: opts.pkgImporter === 'node' ? [new sass_1.NodePackageImporter()] : [],
41
+ importers: opts.pkgImporter === 'node' ? [new sass_embedded_1.NodePackageImporter()] : [],
42
42
  silenceDeprecations: opts.silenceDeprecation ? opts.silenceDeprecation.split(',') : []
43
43
  };
44
44
  }
@@ -49,7 +49,7 @@ function generateSassOptionsAsync(opts) {
49
49
  loadPaths: opts.loadPath ? opts.loadPath.split(',') : [],
50
50
  sourceMap: opts.sourceMap === false ? false : true,
51
51
  sourceMapIncludeSources: opts.sourceMap === false ? false : true,
52
- importers: opts.pkgImporter === 'node' ? [new sass_1.NodePackageImporter()] : [],
52
+ importers: opts.pkgImporter === 'node' ? [new sass_embedded_1.NodePackageImporter()] : [],
53
53
  silenceDeprecations: opts.silenceDeprecation ? opts.silenceDeprecation.split(',') : []
54
54
  };
55
55
  }
package/dist/index.js CHANGED
@@ -41,14 +41,14 @@ const chokidar_1 = __importDefault(require("chokidar"));
41
41
  const picocolors_1 = __importDefault(require("picocolors"));
42
42
  const fs_1 = __importDefault(require("fs"));
43
43
  const path_1 = __importDefault(require("path"));
44
- const sass_1 = __importDefault(require("sass"));
44
+ const sass_embedded_1 = require("sass-embedded");
45
45
  const postcss_1 = __importDefault(require("postcss"));
46
46
  const configs = __importStar(require("./configs"));
47
47
  const fileFinder = __importStar(require("./fileFinder"));
48
48
  const sources = __importStar(require("./sources"));
49
49
  const glob_1 = require("glob");
50
50
  const sheetloaf = new commander_1.Command();
51
- sheetloaf.version("1.25.0", '-v, --version', 'Print the version of Sheetloaf.');
51
+ sheetloaf.version("1.26.0-beta.0", '-v, --version', 'Print the version of Sheetloaf.');
52
52
  let usingStdin = false;
53
53
  let postcssConfig = {
54
54
  plugins: []
@@ -66,10 +66,10 @@ sheetloaf
66
66
  postcssConfig = configs.generatePostcssConfigFromFile(sheetloaf.opts().config);
67
67
  }
68
68
  if (sheetloaf.opts().async === true) {
69
- sassAsyncCompiler = yield sass_1.default.initAsyncCompiler();
69
+ sassAsyncCompiler = yield (0, sass_embedded_1.initAsyncCompiler)();
70
70
  }
71
71
  else {
72
- sassCompiler = sass_1.default.initCompiler();
72
+ sassCompiler = (0, sass_embedded_1.initCompiler)();
73
73
  }
74
74
  if (source.length > 0) {
75
75
  renderAllFiles(source);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sheetloaf",
3
- "version": "1.25.0",
3
+ "version": "1.26.0-beta.1",
4
4
  "description": "freshmade stylesheets for the whole family.",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {
@@ -52,6 +52,6 @@
52
52
  "commander": "^9.4.0",
53
53
  "glob": "^11.1.0",
54
54
  "picocolors": "^1.1.1",
55
- "sass": "1.94.2"
55
+ "sass-embedded": "1.93.3"
56
56
  }
57
57
  }