flowershow 0.1.8 → 0.1.9
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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/lib/Installer.js +5 -1
- package/src/lib/build.js +3 -0
- package/src/lib/buildExport.js +3 -0
- package/src/lib/preview.js +3 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/lib/Installer.js
CHANGED
|
@@ -165,9 +165,13 @@ export default class Installer {
|
|
|
165
165
|
// install flowershow dependencies
|
|
166
166
|
logWithSpinner({ symbol: "🌸", msg: `Installing Flowershow dependencies` });
|
|
167
167
|
try {
|
|
168
|
-
const
|
|
168
|
+
const subprocess = execa("npm", ["install"], {
|
|
169
169
|
cwd: flowershowDir,
|
|
170
170
|
});
|
|
171
|
+
process.on("SIGINT", () => {
|
|
172
|
+
subprocess.kill("SIGINT");
|
|
173
|
+
});
|
|
174
|
+
const { stdout, stderr } = await subprocess;
|
|
171
175
|
log(stdout);
|
|
172
176
|
log(stderr);
|
|
173
177
|
stopSpinner();
|
package/src/lib/build.js
CHANGED
package/src/lib/buildExport.js
CHANGED
|
@@ -5,4 +5,7 @@ export default async function buildExport(dir) {
|
|
|
5
5
|
const flowershowDir = path.resolve(dir, FLOWERSHOW_FOLDER_NAME);
|
|
6
6
|
const subprocess = execa("npm", ["run", "export"], { cwd: flowershowDir });
|
|
7
7
|
subprocess.stdout.pipe(process.stdout);
|
|
8
|
+
process.on("SIGINT", () => {
|
|
9
|
+
subprocess.kill("SIGINT");
|
|
10
|
+
});
|
|
8
11
|
}
|
package/src/lib/preview.js
CHANGED