Keep structure building test dist
This commit is contained in:
parent
e2e20276cb
commit
fa38057fb6
|
@ -1,6 +1,19 @@
|
|||
#!/usr/bin/node
|
||||
const coreBuild = require("../../../scripts/build")
|
||||
const { exec } = require("child_process")
|
||||
|
||||
coreBuild("./src/plugin/index.ts", "./dist/plugins.js")
|
||||
coreBuild("./src/index.ts", "./dist/index.js")
|
||||
coreBuild("./tests/index.ts", "./dist/tests.js")
|
||||
|
||||
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}`)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue