2023-08-09 03:56:07 +12:00
|
|
|
#!/usr/bin/node
|
|
|
|
const coreBuild = require("../../../scripts/build")
|
2023-09-06 01:46:39 +12:00
|
|
|
const { exec } = require("child_process")
|
2023-08-09 03:56:07 +12:00
|
|
|
|
|
|
|
coreBuild("./src/plugin/index.ts", "./dist/plugins.js")
|
|
|
|
coreBuild("./src/index.ts", "./dist/index.js")
|
2023-09-06 01:46:39 +12:00
|
|
|
|
|
|
|
const child = exec(
|
|
|
|
`esbuild ./tests/*.[tj]s ./tests/**/*.[tj]s --outdir=./dist/tests`
|
|
|
|
)
|
|
|
|
child.stdout.on("data", data => {
|
|
|
|
console.log(`stdout: ${data}`)
|
|
|
|
})
|
|
|
|
child.stderr.on("data", data => {
|
|
|
|
console.error(`stderr: ${data}`)
|
|
|
|
})
|
|
|
|
child.on("close", code => {
|
|
|
|
console.log(`esbuild process exited with code ${code}`)
|
|
|
|
})
|