@blastlauncher/cli 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +4 -0
- package/index.js +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -347,6 +347,10 @@ function updatePackageInfo(targetDir, version, npmOrganization) {
|
|
|
347
347
|
}
|
|
348
348
|
packageJson.repository = "https://github.com/BlastLauncher/extensions.git";
|
|
349
349
|
packageJson.version = version;
|
|
350
|
+
packageJson.scripts = Object.keys(packageJson.scripts).filter((key) => key !== "publish").reduce((obj, key) => {
|
|
351
|
+
obj[key] = packageJson.scripts[key];
|
|
352
|
+
return obj;
|
|
353
|
+
}, {});
|
|
350
354
|
import_fs_extra.default.writeFileSync(packagePath, JSON.stringify(packageJson, null, 2), "utf8");
|
|
351
355
|
}
|
|
352
356
|
var program = new import_commander.Command();
|
package/index.js
CHANGED
|
@@ -222,6 +222,14 @@ function updatePackageInfo(targetDir, version, npmOrganization) {
|
|
|
222
222
|
// add version
|
|
223
223
|
packageJson.version = version;
|
|
224
224
|
|
|
225
|
+
// exclude original publish script
|
|
226
|
+
packageJson.scripts = Object.keys(packageJson.scripts)
|
|
227
|
+
.filter((key) => key !== "publish")
|
|
228
|
+
.reduce((obj, key) => {
|
|
229
|
+
obj[key] = packageJson.scripts[key];
|
|
230
|
+
return obj;
|
|
231
|
+
}, {});
|
|
232
|
+
|
|
225
233
|
// write package.json
|
|
226
234
|
fs.writeFileSync(packagePath, JSON.stringify(packageJson, null, 2), "utf8");
|
|
227
235
|
}
|