sheetloaf 1.7.0 → 1.8.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 +4 -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.8.0", '-v, --version', 'Print the version of Sheetloaf.');
|
|
51
51
|
let usingStdin = false;
|
|
52
52
|
let postcssConfig = {
|
|
53
53
|
plugins: []
|
|
@@ -283,11 +283,10 @@ function sassErrorCatcher(e, destination) {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
function emitSassError(err) {
|
|
286
|
-
const
|
|
287
|
-
const message = err.sassMessage.toString().replace(/'.*'/i, '');
|
|
286
|
+
const message = err.sassMessage.toString().replace(/'/g, '"');
|
|
288
287
|
let css = `
|
|
289
288
|
body:before {
|
|
290
|
-
content: 'Error
|
|
289
|
+
content: 'Error at line ${err.span.start.line} in ${err.span.url.pathname}';
|
|
291
290
|
display: table;
|
|
292
291
|
background-color:#cc0000;
|
|
293
292
|
color:white;
|
|
@@ -297,7 +296,7 @@ function emitSassError(err) {
|
|
|
297
296
|
font-family:sans-serif
|
|
298
297
|
}
|
|
299
298
|
body:after {
|
|
300
|
-
content:
|
|
299
|
+
content: '${err.span.context} ----- ${message}';
|
|
301
300
|
display: table;
|
|
302
301
|
background-color:#0e70b0;
|
|
303
302
|
color:white;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sheetloaf",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.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.59.2"
|
|
58
58
|
}
|
|
59
59
|
}
|