mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-20 00:06:24 +08:00
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:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user