Skip to content

Commit

Permalink
fix: move constants for test-unpublished to json and add it to packag…
Browse files Browse the repository at this point in the history
…e #225
  • Loading branch information
Kirill89 committed Oct 3, 2018
1 parent ddf13ee commit 242a7c9
Show file tree
Hide file tree
Showing 6 changed files with 287 additions and 294 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"help",
"dist",
"config.default.json",
"test-unpublished.json",
"SECURITY.md",
"README.md",
"Contributor-Agreement.md",
Expand Down Expand Up @@ -103,6 +104,7 @@
],
"assets": [
"config.default.json",
"test-unpublished.json",
"help/**/*.txt"
]
},
Expand Down
1 change: 0 additions & 1 deletion src/cli/commands/unpublished/head.txt

This file was deleted.

12 changes: 6 additions & 6 deletions src/cli/commands/unpublished/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ module.exports = function (cwd) {
cwd = process.cwd();
}

var packages = fs.readFileSync(__dirname + '/package-list.txt', 'utf8')
.split('\n').map(function (s) {
return s.trim();
});
var config = JSON.parse(
fs.readFileSync(__dirname + '/../../../../test-unpublished.json', 'utf8')
);

var tail = fs.readFileSync(__dirname + '/tail.txt', 'utf8');
var lbl = fs.readFileSync(__dirname + '/head.txt', 'utf8');
var packages = config.packages;
var tail = config.tail;
var lbl = config.head;

spinner.sticky();

Expand Down
273 changes: 0 additions & 273 deletions src/cli/commands/unpublished/package-list.txt

This file was deleted.

14 changes: 0 additions & 14 deletions src/cli/commands/unpublished/tail.txt

This file was deleted.

Loading

0 comments on commit 242a7c9

Please sign in to comment.