Skip to content

Commit

Permalink
fix: MaxOS command not found issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Chivier authored and JichouP committed Mar 2, 2023
1 parent 5f0b194 commit 7979844
Show file tree
Hide file tree
Showing 4 changed files with 160 additions and 13 deletions.
2 changes: 2 additions & 0 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const context = await esbuild.context({
'@lezer/common',
'@lezer/highlight',
'@lezer/lr',
'node:os',
'node:process',
...builtins,
],
format: 'cjs',
Expand Down
168 changes: 155 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
},
"dependencies": {
"@marp-team/marp-core": "^3.5.0",
"fix-path": "^4.0.0",
"markdown-it": "^13.0.1",
"markdown-it-front-matter": "^0.2.3",
"mime": "^3.0.0",
Expand Down
2 changes: 2 additions & 0 deletions src/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import rehypeParse from 'rehype-parse/lib';
import rehypeRemark from 'rehype-remark';
import remarkStringify from 'remark-stringify';
import { join, normalize } from 'path';
import fixPath from 'fix-path';

export async function exportSlide(
file: TFile,
Expand Down Expand Up @@ -68,6 +69,7 @@ export async function exportSlide(
)}.${ext}" -- "${tmpPath}"`;
}

fixPath();
new Notice(`Exporting "${file.basename}.${ext}" to "${exportDir}"`, 20000);
exec(cmd, () => {
new Notice('Exported successfully', 20000);
Expand Down

0 comments on commit 7979844

Please sign in to comment.