create-caspian-app 0.2.0-beta.88 → 0.2.0-beta.89
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.
|
@@ -9,6 +9,12 @@ import caspianConfig from "../caspian.config.json";
|
|
|
9
9
|
const mode: "watch" | "build" =
|
|
10
10
|
process.argv[2] === "watch" ? "watch" : "build";
|
|
11
11
|
const watcherPidFile = join(process.cwd(), ".casp", "postcss-watch.pid");
|
|
12
|
+
const WATCH_PROCESS_ENV = {
|
|
13
|
+
...process.env,
|
|
14
|
+
NO_COLOR: "1",
|
|
15
|
+
FORCE_COLOR: "0",
|
|
16
|
+
NODE_DISABLE_COLORS: "1",
|
|
17
|
+
};
|
|
12
18
|
const mkdirAsync = promisify(mkdir);
|
|
13
19
|
const readFileAsync = promisify(readFile);
|
|
14
20
|
const rmAsync = promisify(rm);
|
|
@@ -145,7 +151,7 @@ function runPostcssBuild(): Promise<number> {
|
|
|
145
151
|
stdio: "inherit",
|
|
146
152
|
windowsHide: true,
|
|
147
153
|
env: {
|
|
148
|
-
...
|
|
154
|
+
...WATCH_PROCESS_ENV,
|
|
149
155
|
PP_POSTCSS_MODE: mode,
|
|
150
156
|
},
|
|
151
157
|
});
|