sheetloaf 1.7.1 → 1.9.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/dist/index.js +5 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -47,7 +47,7 @@ const configs = __importStar(require("./configs"));
|
|
|
47
47
|
const fileFinder = __importStar(require("./fileFinder"));
|
|
48
48
|
const sources = __importStar(require("./sources"));
|
|
49
49
|
const sheetloaf = new commander_1.Command();
|
|
50
|
-
sheetloaf.version("1.
|
|
50
|
+
sheetloaf.version("1.9.0", '-v, --version', 'Print the version of Sheetloaf.');
|
|
51
51
|
let usingStdin = false;
|
|
52
52
|
let postcssConfig = {
|
|
53
53
|
plugins: []
|
|
@@ -283,11 +283,11 @@ function sassErrorCatcher(e, destination) {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
function emitSassError(err) {
|
|
286
|
-
const
|
|
287
|
-
const
|
|
286
|
+
const message = err.sassMessage.toString().replace(/"/g, "'").replace(/\n/g, " ");
|
|
287
|
+
const context = err.span.context.toString().replace(/"/g, "'").replace(/\n/g, " ");
|
|
288
288
|
let css = `
|
|
289
289
|
body:before {
|
|
290
|
-
content:
|
|
290
|
+
content: "Error at line ${err.span.start.line} in ${err.span.url.pathname}";
|
|
291
291
|
display: table;
|
|
292
292
|
background-color:#cc0000;
|
|
293
293
|
color:white;
|
|
@@ -297,7 +297,7 @@ function emitSassError(err) {
|
|
|
297
297
|
font-family:sans-serif
|
|
298
298
|
}
|
|
299
299
|
body:after {
|
|
300
|
-
content: "${message}";
|
|
300
|
+
content: "${context} ----- ${message}";
|
|
301
301
|
display: table;
|
|
302
302
|
background-color:#0e70b0;
|
|
303
303
|
color:white;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sheetloaf",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "freshmade stylesheets for the whole family.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -54,6 +54,6 @@
|
|
|
54
54
|
"fast-glob": "^3.2.12",
|
|
55
55
|
"picocolors": "^1.0.0",
|
|
56
56
|
"picomatch": "^2.3.1",
|
|
57
|
-
"sass": "^1.
|
|
57
|
+
"sass": "^1.62.1"
|
|
58
58
|
}
|
|
59
59
|
}
|