Skip to content

Commit

Permalink
fix(ci): Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andymac4182 committed Apr 14, 2023
1 parent a494231 commit ffeea5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions esbuild.config.mjs
Expand Up @@ -60,7 +60,7 @@ const mermaid_renderer_plugin = {

const prod = (process.argv[2] === 'production');

const context = await esbuild.context({
const buildConfig = {
banner: {
js: banner,
},
Expand Down Expand Up @@ -91,11 +91,11 @@ const context = await esbuild.context({
mainFields: ['module', 'main'],
plugins: [mermaid_renderer_plugin],
minify: true,
});

};

if (prod) {
context.build().catch(() => process.exit(1));
await esbuild.build(buildConfig);
} else {
context.watch().catch(() => process.exit(1));
const context = await esbuild.context(buildConfig);
await context.watch();
}
2 changes: 1 addition & 1 deletion src/Publisher.ts
Expand Up @@ -2,7 +2,7 @@ import { MyPluginSettings } from "./Settings";
import FolderFile from "./FolderFile.json";

import { traverse, filter } from "@atlaskit/adf-utils/traverse";
import * as SparkMD5 from "spark-md5";
import SparkMD5 from "spark-md5";
import { doc, p } from "@atlaskit/adf-utils/builders";
import { ADFEntity } from "@atlaskit/adf-utils/types";
import MdToADF from "./mdToADF";
Expand Down

0 comments on commit ffeea5c

Please sign in to comment.