mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
18 lines
497 B
Plaintext
18 lines
497 B
Plaintext
|
#!/usr/bin/env node
|
||
|
|
||
|
var program = require('commander');
|
||
|
var spawn = require('child_process').spawn;
|
||
|
|
||
|
program
|
||
|
.description(`Clean environment artifacts from previous suites.`)
|
||
|
.parse(process.argv)
|
||
|
|
||
|
runEnvProcess = spawn('./node_modules/.bin/ts-node -P test/tsconfig.json -- ./scripts/clean-environment.ts', {
|
||
|
shell: true
|
||
|
});
|
||
|
runEnvProcess.stdout.pipe(process.stdout);
|
||
|
runEnvProcess.stderr.pipe(process.stderr);
|
||
|
|
||
|
runEnvProcess.on('exit', function(statusCode) {
|
||
|
process.exit(statusCode);
|
||
|
});
|