@zohodesk/react-cli 1.1.1 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
package/README.md
CHANGED
@@ -44,6 +44,18 @@ Now to run app
|
|
44
44
|
|
45
45
|
# Change Logs
|
46
46
|
|
47
|
+
# 1.1.3
|
48
|
+
|
49
|
+
**Issue Fix**
|
50
|
+
- local install react-cli spawnSync Error fix
|
51
|
+
|
52
|
+
|
53
|
+
# 1.1.2
|
54
|
+
|
55
|
+
**Issue Fix**
|
56
|
+
|
57
|
+
- ReactLiveConverter filepath changed to 'reactLiveConverter.js' in docLoader file
|
58
|
+
|
47
59
|
# 1.1.1
|
48
60
|
|
49
61
|
**Issue Fix**
|
package/docs/ReactLive.md
CHANGED
@@ -6,7 +6,7 @@ var _getOptions = _interopRequireDefault(require("../utils/getOptions.js"));
|
|
6
6
|
|
7
7
|
var _path = _interopRequireDefault(require("path"));
|
8
8
|
|
9
|
-
var
|
9
|
+
var _reactLiveConvertor = require("./reactLiveConvertor");
|
10
10
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
12
12
|
|
@@ -24,7 +24,7 @@ module.exports = function (source) {
|
|
24
24
|
|
25
25
|
const src = _fs.default.readFileSync(originalFilePath).toString();
|
26
26
|
|
27
|
-
options.docs.enableReactLive && (source = (0,
|
27
|
+
options.docs.enableReactLive && (source = (0, _reactLiveConvertor.reactLiveConvertor)(source, originalFilePath)); //to Enable the ReactLive Converter
|
28
28
|
|
29
29
|
return `${source};${name}.source=${JSON.stringify(src)};${name}.filePath=${JSON.stringify(filePath)}`;
|
30
30
|
};
|
@@ -17,7 +17,7 @@ const appPath = process.cwd();
|
|
17
17
|
const isNodeModuleUnderAppFolder = __dirname.indexOf(appPath) !== -1;
|
18
18
|
const isWindows = (0, _os.platform)().toLowerCase() === 'win32';
|
19
19
|
|
20
|
-
const _getCliPath =
|
20
|
+
const _getCliPath = isNodeModuleUnderAppFolder ? libName => _path.default.join(__dirname, '..', '..', 'node_modules', '.bin', libName) : libName => libName;
|
21
21
|
|
22
22
|
const suffixExt = isWindows ? '.cmd' : '';
|
23
23
|
|
@@ -25,7 +25,7 @@ function requireLocalOrGlobal(moduleName, opts = {}) {
|
|
25
25
|
const {
|
26
26
|
local = true
|
27
27
|
} = opts;
|
28
|
-
const isRelativePath = moduleName === '.'; // NOTE: if starts with . then it only mean local
|
28
|
+
const isRelativePath = moduleName[0] === '.'; // NOTE: if starts with . then it only mean local
|
29
29
|
|
30
30
|
if (isRelativePath) {
|
31
31
|
global = false;
|
package/npm-shrinkwrap.json
CHANGED