diff --git a/src/commands/docs.js b/src/commands/docs.js index e4ad154..f41494e 100644 --- a/src/commands/docs.js +++ b/src/commands/docs.js @@ -2,7 +2,6 @@ var path = require('path'); var fs = require('fs'); -var os = require('os'); var { exec } = require('child_process'); var { getPlatformDir } = require('../utils/platform'); @@ -242,7 +241,7 @@ function register(program) { } var html = buildSelectionPage(javaPath, reactNativePath); - var tmpFile = path.join(os.tmpdir(), 'vitruvio-docs-selector.html'); + var tmpFile = path.join(platformDir, 'docs-selector.html'); fs.writeFileSync(tmpFile, html, 'utf8'); console.log('Abrindo seletor de documentação...');