Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit f0b42c4

Browse files
committed
fix(fusuma): check slides dir
1 parent d853285 commit f0b42c4

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

packages/fusuma/src/tasks/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ async function tasks({ type, options }) {
1616
const outputDirPath = join(basePath, outputDir || 'dist');
1717
let config = {};
1818

19+
if (type !== 'init' && !existsSync(inputDirPath)) {
20+
error('preparation', '"slides" directory not found');
21+
process.exit(1);
22+
}
23+
1924
try {
2025
config = await searchFusumarc(basePath, fusumarc);
2126
} catch (e) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "noslide",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"start": "fusuma start"
9+
},
10+
"author": "hiroppy <git@hiroppy.me> (https://hiroppy.me/)",
11+
"license": "MIT"
12+
}

0 commit comments

Comments
 (0)