2023-08-08 17:56:07 +02:00
|
|
|
#!/usr/bin/node
|
|
|
|
const coreBuild = require("../../../scripts/build")
|
2023-09-05 15:46:39 +02:00
|
|
|
const { exec } = require("child_process")
|
2023-08-08 17:56:07 +02:00
|
|
|
|
|
|
|
coreBuild("./src/plugin/index.ts", "./dist/plugins.js")
|
|
|
|
coreBuild("./src/index.ts", "./dist/index.js")
|
2023-09-05 15:46:39 +02: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}`)
|
|
|
|
})
|