@meistrari/mise-en-place 2.10.1 → 2.10.3
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 +5 -1
- package/dist/eslint.mjs +1 -1
- package/package.json +1 -1
package/dist/cli/cli.mjs
CHANGED
|
@@ -302,12 +302,16 @@ 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)}
|
package/dist/eslint.mjs
CHANGED
|
@@ -48,7 +48,7 @@ const eslintConfig = antfu(
|
|
|
48
48
|
// satisfy the linter with no actual runtime benefits. We can enable them again if we figure out a way to make them less noisy or more useful.
|
|
49
49
|
"ts/no-unsafe-assignment": "off",
|
|
50
50
|
"ts/no-unsafe-argument": "off",
|
|
51
|
-
"ts/no-unsafe-member-
|
|
51
|
+
"ts/no-unsafe-member-access": "off",
|
|
52
52
|
"ts/no-unsafe-return": "off",
|
|
53
53
|
// No actual harm in unnecessary conditions. This is just a stylistic choice
|
|
54
54
|
"ts/no-unnecessary-condition": "off",
|