resume-cli 3.0.4 → 3.0.7

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.
package/README.md CHANGED
@@ -10,6 +10,11 @@ This is the command line tool for [JSON Resume](https://jsonresume.org), the ope
10
10
 
11
11
  [Read more...](https://jsonresume.org/schema/)
12
12
 
13
+
14
+ Alternatives: The Resume CLI tool works as it is so there isn't a huge amount of active development on it, try these alternatives if it doesn't work for you;
15
+ - [Resumed](https://github.com/rbardini/resumed)
16
+
17
+
13
18
  # Getting Started
14
19
 
15
20
  Install the command-line tool:
package/build/builder.js CHANGED
@@ -8,7 +8,7 @@ const request = require('superagent');
8
8
 
9
9
  const chalk = require('chalk');
10
10
 
11
- const renderHtml = require('./render-html');
11
+ const renderHtml = require('./render-html').default;
12
12
 
13
13
  const denormalizeTheme = value => {
14
14
  return value.match(/jsonresume-theme-(.*)/)[1];
@@ -67,6 +67,8 @@ const extractFileFormat = fileName => {
67
67
  const getThemePkg = theme => {
68
68
  if (theme[0] === '.') {
69
69
  theme = path.join(process.cwd(), theme, 'index.js');
70
+ } else {
71
+ theme = path.join(process.cwd(), 'node_modules', theme, 'index.js');
70
72
  }
71
73
 
72
74
  try {
@@ -21,10 +21,13 @@ var _default = async ({
21
21
  let path;
22
22
 
23
23
  if (themePath[0] === '.') {
24
- path = tryResolve(path.join(cwd, themePath), {
24
+ path = tryResolve(require('path').join(cwd, themePath), {
25
25
  paths: [cwd]
26
26
  });
27
- throw new Error(`Theme ${themePath} could not be resolved relative to ${cwd}`);
27
+
28
+ if (!path) {
29
+ throw new Error(`Theme ${themePath} could not be resolved relative to ${cwd}`);
30
+ }
28
31
  }
29
32
 
30
33
  if (!path) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resume-cli",
3
- "version": "3.0.4",
3
+ "version": "3.0.7",
4
4
  "description": "The JSON Resume command line interface",
5
5
  "main": "index.js",
6
6
  "engines": {