Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol
diffdown.com
1import {build, watch} from "@marijn/buildtool"
2import {fileURLToPath} from "url"
3import {dirname, join} from "path"
4
5let tsOptions = {
6 lib: ["es5", "es6"],
7 target: "es6"
8}
9
10let main = join(dirname(fileURLToPath(import.meta.url)), "src", "index.ts")
11
12if (process.argv.includes("--watch")) {
13 watch([main], [], {tsOptions})
14} else {
15 build(main, {tsOptions})
16}