@meistrari/mise-en-place 2.10.2 → 2.10.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/dist/cli/cli.mjs +8 -1
- package/package.json +1 -1
package/dist/cli/cli.mjs
CHANGED
|
@@ -302,18 +302,25 @@ function handlePackageJsonScripts() {
|
|
|
302
302
|
packageJsonContent.scripts = {};
|
|
303
303
|
}
|
|
304
304
|
const {
|
|
305
|
-
postinstall: currentPostinstallScript
|
|
305
|
+
postinstall: currentPostinstallScript,
|
|
306
|
+
prepare: currentPrepareScript
|
|
306
307
|
} = packageJsonContent.scripts;
|
|
307
308
|
const miseEnPlacePostinstallScript = "mise-en-place postinstall";
|
|
308
309
|
if (currentPostinstallScript?.includes(miseEnPlacePostinstallScript)) {
|
|
309
310
|
return;
|
|
310
311
|
}
|
|
312
|
+
if (currentPrepareScript?.includes(miseEnPlacePostinstallScript)) {
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
311
315
|
const newPostinstallScript = currentPostinstallScript ? `${miseEnPlacePostinstallScript} && ${currentPostinstallScript}` : miseEnPlacePostinstallScript;
|
|
312
316
|
packageJsonContent.scripts.postinstall = newPostinstallScript;
|
|
313
317
|
writeFileSync("package.json", `${JSON.stringify(packageJsonContent, null, 4)}
|
|
314
318
|
`);
|
|
315
319
|
}
|
|
316
320
|
function postinstall(args) {
|
|
321
|
+
if (process.env.CI) {
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
317
324
|
handleMakefileInitialSetup();
|
|
318
325
|
handleTsConfig();
|
|
319
326
|
handleEslintConfigFile();
|