|
@@ -84,8 +84,13 @@ function processPackages(version) {
|
|
if (packageJson.peerDependencies) packageJson.peerDependencies.babylonjs = minimumDependency;
|
|
if (packageJson.peerDependencies) packageJson.peerDependencies.babylonjs = minimumDependency;
|
|
fs.writeFileSync(package.path + 'package.json', JSON.stringify(packageJson, null, 4));
|
|
fs.writeFileSync(package.path + 'package.json', JSON.stringify(packageJson, null, 4));
|
|
console.log('Publishing ' + package.name + " from " + package.path);
|
|
console.log('Publishing ' + package.name + " from " + package.path);
|
|
|
|
+ let tagDef = "";
|
|
|
|
+ // check for alpha or beta
|
|
|
|
+ if (version.indexOf('alpha') !== -1 || version.indexOf('beta') !== -1) {
|
|
|
|
+ tagDef = '--tag preview';
|
|
|
|
+ }
|
|
//publish the respected package
|
|
//publish the respected package
|
|
- shelljs.exec('npm publish \"' + package.path + "\"");
|
|
|
|
|
|
+ shelljs.exec('npm publish \"' + package.path + "\"" + ' ' + tagDef);
|
|
}
|
|
}
|
|
|
|
|
|
});
|
|
});
|