clone of github.com/decent-newsroom/newsroom
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
365 B

import {build, watch} from "@marijn/buildtool"
import {fileURLToPath} from "url"
import {dirname, join} from "path"
let tsOptions = {
lib: ["es5", "es6"],
target: "es6"
}
let main = join(dirname(fileURLToPath(import.meta.url)), "src", "index.ts")
if (process.argv.includes("--watch")) {
watch([main], [], {tsOptions})
} else {
build(main, {tsOptions})
}