@iservu-inc/adf-cli 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,6 +2,7 @@ const fs = require('fs-extra');
|
|
|
2
2
|
const path = require('path');
|
|
3
3
|
const inquirer = require('inquirer');
|
|
4
4
|
const chalk = require('chalk');
|
|
5
|
+
const packageJson = require('../../package.json');
|
|
5
6
|
|
|
6
7
|
async function detectProjectType(cwd) {
|
|
7
8
|
const files = await fs.readdir(cwd);
|
|
@@ -171,7 +172,7 @@ async function getWorkflowRecommendation(projectType) {
|
|
|
171
172
|
|
|
172
173
|
function generateContextFile(data) {
|
|
173
174
|
return {
|
|
174
|
-
version:
|
|
175
|
+
version: packageJson.version,
|
|
175
176
|
workflow: data.workflow,
|
|
176
177
|
projectType: data.projectType,
|
|
177
178
|
documentationUrls: data.documentationUrls || [],
|