Skip to content

Commit 85e4908

Browse files
sibeliusgrabbou
authored andcommitted
fix undefined project, closes #76 (#77)
1 parent 8f63685 commit 85e4908

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/link.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ const linkAssets = (project, assets) => {
9494
* If optional argument [packageName] is provided, it's the only one that's checked
9595
*/
9696
module.exports = function link(config, args) {
97+
var project;
9798
try {
98-
const project = config.getProjectConfig();
99+
project = config.getProjectConfig();
99100
} catch (err) {
100101
log.error('ERRPACKAGEJSON', `No package found. Are you sure it's a React Native project?`);
101102
return Promise.reject(err);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy