Skip to content

Commit 53cb9d7

Browse files
sethmlarsonswallez
authored andcommitted
Add explicit paths to run-validations.js script
1 parent 3de6b0b commit 53cb9d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/run-validations.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ const cloneEsPath = path.join(__dirname, '..', '..', 'clients-flight-recorder',
4848
const uploadRecordingsPath = path.join(__dirname, '..', '..', 'clients-flight-recorder', 'scripts', 'upload-recording')
4949
const tsValidationPath = path.join(__dirname, '..', '..', 'clients-flight-recorder', 'scripts', 'types-validator')
5050
const DAY = 1000 * 60 * 60 * 24
51+
const specPath = path.join(__dirname, '..', 'specification')
52+
const outputPath = path.join(__dirname, '..', 'output/schema')
5153

5254
const apis = require('../output/schema/schema.json')
5355
.endpoints
@@ -135,7 +137,7 @@ async function run () {
135137

136138
{
137139
spinner.text = 'Generating schema'
138-
const Process = await nothrow($`node ${path.join(compilerPath, 'lib', 'index.js')}`)
140+
const Process = await nothrow($`node ${path.join(compilerPath, 'lib', 'index.js')} --spec ${specPath} --output ${outputPath}`)
139141
if (Process.exitCode !== 0) {
140142
spinner.fail(removeHeader(Process.stdout))
141143
console.log(Process.stderr)

0 commit comments

Comments
 (0)