fix(build): corrects npm publishing task

Ref #3311
This commit is contained in:
Mike Hartington 2020-02-10 23:50:46 -05:00
parent 6112d724f2
commit df5f832664
No known key found for this signature in database
GPG Key ID: 493BFB24814E6209

View File

@ -52,7 +52,10 @@ function writePackageJson(data: any, dir: string) {
fs.writeJSONSync(filePath, data);
PACKAGES.push(dir);
}
function writeNGXPackageJson(data: any, dir: string){
const filePath = path.resolve(dir, 'package.json');
fs.writeJSONSync(filePath, data);
}
function prepare() {
// write @ionic-native/core package.json
writePackageJson(
@ -67,7 +70,7 @@ function prepare() {
const dir = path.resolve(DIST, 'plugins', pluginName);
const ngxDir = path.join(dir, 'ngx');
writePackageJson(packageJsonContents, dir);
writePackageJson(packageJsonContents, ngxDir);
writeNGXPackageJson(packageJsonContents, ngxDir);
});
}