sheetloaf 1.26.0-beta.1 → 1.26.0-beta.2
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 +8 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ 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.26.0
|
|
51
|
+
sheetloaf.version("1.26.0", '-v, --version', 'Print the version of Sheetloaf.');
|
|
52
52
|
let usingStdin = false;
|
|
53
53
|
let postcssConfig = {
|
|
54
54
|
plugins: []
|
|
@@ -256,6 +256,9 @@ function renderPost(fileName, destination, sassResult) {
|
|
|
256
256
|
}
|
|
257
257
|
else {
|
|
258
258
|
process.stdout.write(postedResult.css);
|
|
259
|
+
if (!sheetloaf.opts().watch) {
|
|
260
|
+
process.exit();
|
|
261
|
+
}
|
|
259
262
|
}
|
|
260
263
|
})
|
|
261
264
|
.catch((err) => {
|
|
@@ -265,6 +268,9 @@ function renderPost(fileName, destination, sassResult) {
|
|
|
265
268
|
else {
|
|
266
269
|
process.stderr.write(err);
|
|
267
270
|
}
|
|
271
|
+
if (!sheetloaf.opts().watch) {
|
|
272
|
+
process.exit();
|
|
273
|
+
}
|
|
268
274
|
});
|
|
269
275
|
}
|
|
270
276
|
function sassErrorCatcher(e, destination) {
|
|
@@ -292,6 +298,7 @@ function sassErrorCatcher(e, destination) {
|
|
|
292
298
|
}
|
|
293
299
|
if (!sheetloaf.opts().watch && (process.exitCode == null || process.exitCode === 0)) {
|
|
294
300
|
process.exitCode = 1;
|
|
301
|
+
process.exit();
|
|
295
302
|
}
|
|
296
303
|
}
|
|
297
304
|
function emitSassError(err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sheetloaf",
|
|
3
|
-
"version": "1.26.0-beta.
|
|
3
|
+
"version": "1.26.0-beta.2",
|
|
4
4
|
"description": "freshmade stylesheets for the whole family.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
"autoprefixer": "^10.4.22",
|
|
40
40
|
"bootstrap": "^5.3.8",
|
|
41
41
|
"mocha": "^11.7.5",
|
|
42
|
-
"postcss": "^8.
|
|
42
|
+
"postcss": "^8.5.15",
|
|
43
43
|
"postcss-custom-properties": "^13.3.10",
|
|
44
44
|
"ts-node": "^10.9.2",
|
|
45
45
|
"typescript": "^4.7.4"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"postcss": "^8.5.
|
|
48
|
+
"postcss": "^8.5.15"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"chokidar": "^
|
|
51
|
+
"chokidar": "^5.0.0",
|
|
52
52
|
"commander": "^9.4.0",
|
|
53
|
-
"glob": "^
|
|
53
|
+
"glob": "^13.0.6",
|
|
54
54
|
"picocolors": "^1.1.1",
|
|
55
|
-
"sass-embedded": "1.
|
|
55
|
+
"sass-embedded": "1.100.0"
|
|
56
56
|
}
|
|
57
57
|
}
|