Skip to content

Commit

Permalink
Merge pull request #105 from Soluto/fix-cli-structure
Browse files Browse the repository at this point in the history
move cli files to lib directory and pack only them to publish
  • Loading branch information
shaikatz authored Jan 22, 2019
2 parents 5dacbdd + 964f933 commit 5c887e5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cli/actions/encrypt.js → cli/lib/actions/encrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { promisify } = require('util');
const { AuthenticationContext } = require('adal-node');
const activeDirectoryEndpoint = 'https://login.microsoftonline.com/';
const isDocker = require('../is-docker');
const pjson = require('../package.json');
const pjson = require('../../package.json');

const DEFAULT_ENCODING = 'utf8';

Expand Down
2 changes: 1 addition & 1 deletion cli/index.js → cli/lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

const pjson = require('./package.json');
const pjson = require('../package.json');
const prog = require('caporal');
const encrypt = require('./actions/encrypt');
const regexGuid = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
Expand Down
File renamed without changes.
13 changes: 8 additions & 5 deletions cli/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
{
"name": "@soluto-asurion/kamus-cli",
"version": "0.2.0",
"version": "0.2.1",
"description": "CLI Tool to encrypt secrets for kamus",
"main": "index.js",
"scripts": {
"test": "node_modules/.bin/mocha ./test/*.spec.js --exit",
"eslint": "eslint . --ignore-pattern node_modules/",
"ci-publish": "ci-publish"
"eslint": "eslint . --ignore-pattern node_modules/"
},
"repository": {
"type": "git",
"url": "git+https://github.com/soluto/kamus.git"
},
"bin": {
"kamus-cli": "index.js"
"kamus-cli": "lib/index.js"
},
"keywords": [
"Secrets",
Expand Down Expand Up @@ -44,5 +43,9 @@
"mock-fs": "^4.7.0",
"nock": "^10.0.5",
"sinon": "^7.2.2"
}
},
"files": [
"/lib",
"yarn.lock"
]
}
2 changes: 1 addition & 1 deletion cli/test/encrypt.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const sinon = require('sinon');
const fs = require('fs');
const mockFS = require('mock-fs');

const encrypt = require('../actions/encrypt');
const encrypt = require('../lib/actions/encrypt');

const logger =
{
Expand Down

0 comments on commit 5c887e5

Please sign in to comment.