Skip to content

Commit

Permalink
fix paths when running local rnv
Browse files Browse the repository at this point in the history
  • Loading branch information
pavjacko committed Apr 20, 2020
1 parent fdf4870 commit 5189651
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/rnv/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rnv",
"version": "0.29.0-alpha.35",
"version": "0.29.0-alpha.36",
"description": "💻 CLI for ReNative (https://www.npmjs.com/package/renative). Supports `iOS`, `tvOS`, `Android`, `Android TV`, `Android Wear`, `Web`, `Tizen TV`, `Tizen Watch`, `LG webOS`, `macOS/OSX`, `Windows`, `KaiOS`, `FirefoxOS`, `Firefox TV`",
"keywords": [
"android tv",
Expand Down
2 changes: 1 addition & 1 deletion packages/rnv/pluginTemplates/renative.plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
},
"renative": {
"version": "0.29.0-alpha.34",
"version": "0.29.0-alpha.35",
"webpack": {
"modulePaths": [
"node_modules/renative"
Expand Down
15 changes: 15 additions & 0 deletions packages/rnv/src/templateTools/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,21 @@ const _configureRenativeConfig = async (c) => {
// if (templateConfig.plugins.renative) {
// templateConfig.plugins.renative = getLocalRenativePlugin();
// }
templateConfig.plugins.renative = {
webpack: {
modulePaths: [
{
projectPath: '../../packages/renative'
}
],
moduleAliases: {
renative: {
projectPath: '../../packages/renative'
}
}
}
};

_writeObjectSync(c, c.paths.project.configLocal, templateConfig);
}
return true;
Expand Down

0 comments on commit 5189651

Please sign in to comment.