Add "sideEffects": false to package.json (#17949)
This commit is contained in:
1 parent
65c4dfe362
commit
63f2bc2021
5 files changed
+8
-5
No files matched your search
+2
-1
@@ -220,5 +220,6 @@
|
||||
"not op_mini all"
|
||||
],
|
||||
"preferUnplugged": true,
|
||||
"packageManager": "yarn@4.9.2"
|
||||
"packageManager": "yarn@4.10.3",
|
||||
"sideEffects": false
|
||||
}
|
||||
@@ -18,5 +18,6 @@
|
||||
"funding": "https://github.com/prettier/prettier?sponsor=1",
|
||||
"homepage": "https://github.com/prettier/prettier/tree/main/packages/plugin-hermes",
|
||||
"author": "fisker Cheung <lionkay@gmail.com>",
|
||||
"license": "MIT"
|
||||
"license": "MIT",
|
||||
"sideEffects": false
|
||||
}
|
||||
@@ -18,5 +18,6 @@
|
||||
"funding": "https://github.com/prettier/prettier?sponsor=1",
|
||||
"homepage": "https://github.com/prettier/prettier/tree/main/packages/plugin-oxc",
|
||||
"author": "fisker Cheung <lionkay@gmail.com>",
|
||||
"license": "MIT"
|
||||
"license": "MIT",
|
||||
"sideEffects": false
|
||||
}
|
||||
@@ -134,8 +134,7 @@ async function buildDependenciesLicense({
|
||||
throw new Error(`${fileName} should be last file to build.`);
|
||||
}
|
||||
|
||||
const shouldBuildLicense =
|
||||
!cliOptions.files && typeof cliOptions.minify !== "boolean";
|
||||
const shouldBuildLicense = !cliOptions.files;
|
||||
|
||||
if (!shouldBuildLicense) {
|
||||
return { skipped: true };
|
||||
|
||||
@@ -23,6 +23,7 @@ const keysToKeep = [
|
||||
"engines",
|
||||
"files",
|
||||
"preferUnplugged",
|
||||
"sideEffects",
|
||||
];
|
||||
|
||||
const publishConfig = {
|
||||
|
||||
Reference in new issue
Block a user