Skip to content

Commit 268d4e2

Browse files
Fix regression of missing files in released binaries (codefresh-io#292)
1 parent 629dd50 commit 268d4e2

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Codefresh-cli
2-
[![Codefresh build status]( https://g.codefresh.io/api/badges/build?repoOwner=codefresh-io&repoName=cli&branch=master&pipelineName=build&accountName=codefresh-inc&type=cf-1)]( https://g.codefresh.io/repositories/codefresh-io/cli/builds?filter=trigger:build;branch:master;service:5a4c94b54e6e5f0001c4f913~build)
2+
Build: [![Codefresh build status]( https://g.codefresh.io/api/badges/pipeline/codefresh-inc/codefresh-io%2Fcli%2Fbuild?type=cf-2)]( https://g.codefresh.io/public/accounts/codefresh-inc/pipelines/codefresh-io/cli/build)
3+
Release: [![Codefresh build status]( https://g.codefresh.io/api/badges/pipeline/codefresh-inc/codefresh-io%2Fcli%2Frelease?type=cf-2)]( https://g.codefresh.io/public/accounts/codefresh-inc/pipelines/codefresh-io/cli/release)
4+
35

46
Codefresh CLI provides a full and flexible interface to interact with Codefresh.
57

lib/logic/api/helper.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
const debug = require('debug')('codefresh:http');
2-
const fs = require('fs');
3-
const path = require('path');
42
const request = require('requestretry');
53
const _ = require('lodash');
64
const CFError = require('cf-errors');
75
const { isDebug } = require('../../interface/cli/helpers/general');
86
const Output = require('../../output/Output');
97
const config = require('../../logic/cli-config/Manager').config();
10-
11-
const { version } = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../../../package.json')));
8+
const cliPackage = require('./../../../package.json');
129

1310
const RETRY_STATUS_CODES = [502, 503, 504];
1411
const retryOptions = {
@@ -52,7 +49,7 @@ const sendHttpRequest = async (httpOptions, { authContext, throwOnUnauthorized,
5249
json: true,
5350
timeout,
5451
headers: {
55-
'User-Agent': `codefresh-cli-v${version}`,
52+
'User-Agent': `codefresh-cli-v${cliPackage}`,
5653
'Codefresh-Agent': 'cli',
5754
},
5855
},

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.15.1",
3+
"version": "0.16.0",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,
@@ -24,7 +24,7 @@
2424
"command line"
2525
],
2626
"pkg": {
27-
"scripts": "lib/**/*.js",
27+
"scripts": ["lib/**/*.js", "node_modules/codefresh-sdk/lib/**/*.js"],
2828
"assets": "lib/**/*.hbs"
2929
},
3030
"dependencies": {

0 commit comments

Comments
 (0)