feat(): angular ivy support (#3309)

* init

* cleanup packagelock

* testing

* chore(package): refresh package-lock.json

* updates

* chore(): fix builds

* chore(): rework package-lock

* chore(): lint

Co-authored-by: Daniel Sogl <daniel@sogls.de>
This commit is contained in:
Mike Hartington
2020-02-07 11:51:47 -05:00
committed by GitHub
parent 1bcaa39ffd
commit 614ade447f
10 changed files with 230 additions and 139 deletions
+3 -1
View File
@@ -37,6 +37,7 @@ const PLUGIN_PEER_DEPENDENCIES = {
rxjs: RXJS_VERSION
};
function getPackageJsonContent(name: string, peerDependencies = {}, dependencies = {}) {
return merge(PACKAGE_JSON_BASE, {
name: '@ionic-native/' + name,
@@ -64,8 +65,9 @@ function prepare() {
const pluginName = pluginPath.split(/[\/\\]+/).slice(-2)[0];
const packageJsonContents = getPackageJsonContent(pluginName, PLUGIN_PEER_DEPENDENCIES);
const dir = path.resolve(DIST, 'plugins', pluginName);
const ngxDir = path.join(dir, 'ngx');
writePackageJson(packageJsonContents, dir);
writePackageJson(packageJsonContents, ngxDir);
});
}