@samitouri / QOS-React / commits / 5485ed0855

Standardize on banner2 plugin

Lauren Tan committed Apr 2, 2024 at 12:13 UTC 5485ed0855dd457f9f1065062911f23aff2264b9
4 files changed +37 -120
compiler/package.json
-1
@@ -38,7 +38,6 @@
38 "concurrently": "^7.4.0",
39 "rollup": "^4.13.2",
40 "rollup-plugin-banner2": "^1.2.3",
41 - "rollup-plugin-license": "^3.3.1",
41 "rollup-plugin-prettier": "^4.1.1",
42 "typescript": "^5.4.3"
43 }
compiler/packages/babel-plugin-react-forget/rollup.config.js
+17 -14
@@ -9,11 +9,11 @@ import typescript from "@rollup/plugin-typescript";
9 import { nodeResolve } from "@rollup/plugin-node-resolve";
10 import commonjs from "@rollup/plugin-commonjs";
11 import json from "@rollup/plugin-json";
12 -import license from "rollup-plugin-license";
12 import path from "path";
13 import process from "process";
14 import terser from "@rollup/plugin-terser";
15 import prettier from "rollup-plugin-prettier";
16 +import banner2 from "rollup-plugin-banner2";
17
18 const NO_INLINE = new Set(["@babel/types"]);
19
@@ -47,20 +47,23 @@ const DEV_ROLLUP_CONFIG = {
47 mangle: false,
48 }),
49 prettier(),
50 - license({
51 - banner: {
52 - content: `Copyright (c) Meta Platforms, Inc. and affiliates.
53 -
54 -This source code is licensed under the MIT license found in the
55 -LICENSE file in the root directory of this source tree.
50 + banner2(
51 + () => `/**
52 + * Copyright (c) Meta Platforms, Inc. and affiliates.
53 + *
54 + * This source code is licensed under the MIT license found in the
55 + * LICENSE file in the root directory of this source tree.
56 + *
57 + * @lightSyntaxTransform
58 + * @noflow
59 + * @nolint
60 + * @preventMunge
61 + * @preserve-invariant-messages
62 + */
63
57 -@lightSyntaxTransform
58 -@noflow
59 -@nolint
60 -@preventMunge
61 -@preserve-invariant-messages`,
62 - },
63 - }),
64 +"use no memo";
65 +`
66 + ),
67 ],
68 };
69
compiler/packages/eslint-plugin-react-compiler/rollup.config.js
+17 -14
@@ -8,12 +8,12 @@
8 import typescript from "@rollup/plugin-typescript";
9 import { nodeResolve } from "@rollup/plugin-node-resolve";
10 import commonjs from "@rollup/plugin-commonjs";
11 -import license from "rollup-plugin-license";
11 import json from "@rollup/plugin-json";
12 import path from "path";
13 import process from "process";
14 import terser from "@rollup/plugin-terser";
15 import prettier from "rollup-plugin-prettier";
16 +import banner2 from "rollup-plugin-banner2";
17
18 const NO_INLINE = new Set([
19 "@babel/core",
@@ -54,20 +54,23 @@ const DEV_ROLLUP_CONFIG = {
54 mangle: false,
55 }),
56 prettier(),
57 - license({
58 - banner: {
59 - content: `Copyright (c) Meta Platforms, Inc. and affiliates.
60 -
61 -This source code is licensed under the MIT license found in the
62 -LICENSE file in the root directory of this source tree.
57 + banner2(
58 + () => `/**
59 + * Copyright (c) Meta Platforms, Inc. and affiliates.
60 + *
61 + * This source code is licensed under the MIT license found in the
62 + * LICENSE file in the root directory of this source tree.
63 + *
64 + * @lightSyntaxTransform
65 + * @noflow
66 + * @nolint
67 + * @preventMunge
68 + * @preserve-invariant-messages
69 + */
70
64 -@lightSyntaxTransform
65 -@noflow
66 -@nolint
67 -@preventMunge
68 -@preserve-invariant-messages`,
69 - },
70 - }),
71 +"use no memo";
72 +`
73 + ),
74 ],
75 };
76
compiler/yarn.lock
+3 -91
@@ -3456,11 +3456,6 @@ array-buffer-byte-length@^1.0.0:
3456 call-bind "^1.0.2"
3457 is-array-buffer "^3.0.1"
3458
3459 -array-find-index@^1.0.2:
3460 - version "1.0.2"
3461 - resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1"
3462 - integrity sha512-M1HQyIXcBGtVywBt8WVdim+lrNaK7VHp99Qt5pSNziXznKHViIBbXWtfRTpEFpF/c4FdfxNAsCCwPp5phBYJtw==
3463 -
3459 array-includes@^3.1.5, array-includes@^3.1.6:
3460 version "3.1.6"
3461 resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.6.tgz#9e9e720e194f198266ba9e18c29e6a9b0e4b225f"
@@ -4097,11 +4092,6 @@ commander@^4.0.0:
4092 resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068"
4093 integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==
4094
4100 -commenting@~1.1.0:
4101 - version "1.1.0"
4102 - resolved "https://registry.yarnpkg.com/commenting/-/commenting-1.1.0.tgz#fae14345c6437b8554f30bc6aa6c1e1633033590"
4103 - integrity sha512-YeNK4tavZwtH7jEgK1ZINXzLKm6DZdEMfsaaieOsCAN0S8vsY7UeuO3Q7d/M018EFgE+IeUAuBOKkFccBZsUZA==
4104 -
4095 commondir@^1.0.1:
4096 version "1.0.1"
4097 resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b"
@@ -5427,7 +5417,7 @@ glob@^10.3.10:
5417 minipass "^5.0.0 || ^6.0.2 || ^7.0.0"
5418 path-scurry "^1.10.1"
5419
5430 -glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@~7.2.0:
5420 +glob@^7.1.3, glob@^7.1.4, glob@^7.1.6:
5421 version "7.2.3"
5422 resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
5423 integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
@@ -7493,7 +7483,7 @@ lodash.omitby@4.6.0:
7483 resolved "https://registry.yarnpkg.com/lodash.omitby/-/lodash.omitby-4.6.0.tgz#5c15ff4754ad555016b53c041311e8f079204791"
7484 integrity sha512-5OrRcIVR75M288p4nbI2WLAf3ndw2GD9fyNv3Bc15+WCxJDdZ4lYndSxGd7hnG6PVjiJTeJE2dHEGhIuKGicIQ==
7485
7496 -lodash@^4.17.10, lodash@^4.17.13, lodash@^4.17.21, lodash@~4.17.21:
7486 +lodash@^4.17.10, lodash@^4.17.13, lodash@^4.17.21:
7487 version "4.17.21"
7488 resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
7489 integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
@@ -7529,7 +7519,7 @@ lz-string@^1.4.4:
7519 resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.4.4.tgz#c0d8eaf36059f705796e1e344811cf4c498d3a26"
7520 integrity sha512-0ckx7ZHRPqb0oUm8zNr+90mtf9DQB60H1wMCjBtfi62Kl3a7JbHob6gA2bC+xRvZoOL+1hzUK8jeuEIQE8svEQ==
7521
7532 -magic-string@0.30.5, magic-string@~0.30.0:
7522 +magic-string@0.30.5:
7523 version "0.30.5"
7524 resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.5.tgz#1994d980bd1c8835dc6e78db7cbd4ae4f24746f9"
7525 integrity sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==
@@ -7653,16 +7643,6 @@ minimist@^1.2.6:
7643 resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.0.4.tgz#dbce03740f50a4786ba994c1fb908844d27b038c"
7644 integrity sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==
7645
7656 -mkdirp@~3.0.0:
7657 - version "3.0.1"
7658 - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-3.0.1.tgz#e44e4c5607fb279c168241713cc6e0fea9adcb50"
7659 - integrity sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==
7660 -
7661 -moment@~2.30.1:
7662 - version "2.30.1"
7663 - resolved "https://registry.yarnpkg.com/moment/-/moment-2.30.1.tgz#f8c91c07b7a786e30c59926df530b4eac96974ae"
7664 - integrity sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==
7665 -
7646 monaco-editor-webpack-plugin@^7.1.0:
7647 version "7.1.0"
7648 resolved "https://registry.yarnpkg.com/monaco-editor-webpack-plugin/-/monaco-editor-webpack-plugin-7.1.0.tgz#16f265c2b5dbb5fe08681b6b3b7d00d3c5b2ee97"
@@ -8012,11 +7992,6 @@ p-try@^2.0.0:
7992 resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6"
7993 integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==
7994
8015 -package-name-regex@~2.0.6:
8016 - version "2.0.6"
8017 - resolved "https://registry.yarnpkg.com/package-name-regex/-/package-name-regex-2.0.6.tgz#b54bcb04d950e38082b7bb38fa558e01c1679334"
8018 - integrity sha512-gFL35q7kbE/zBaPA3UKhp2vSzcPYx2ecbYuwv1ucE9Il6IIgBDweBlH8D68UFGZic2MkllKa2KHCfC1IQBQUYA==
8019 -
7995 parent-module@^1.0.0:
7996 version "1.0.1"
7997 resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2"
@@ -8567,21 +8542,6 @@ rollup-plugin-banner2@^1.2.3:
8542 dependencies:
8543 magic-string "^0.25.7"
8544
8570 -rollup-plugin-license@^3.3.1:
8571 - version "3.3.1"
8572 - resolved "https://registry.yarnpkg.com/rollup-plugin-license/-/rollup-plugin-license-3.3.1.tgz#73b68e33477524198d6f3f9befc905f59bf37c53"
8573 - integrity sha512-lwZ/J8QgSnP0unVOH2FQuOBkeiyp0EBvrbYdNU33lOaYD8xP9Zoki+PGoWMD31EUq8Q07GGocSABTYlWMKkwuw==
8574 - dependencies:
8575 - commenting "~1.1.0"
8576 - glob "~7.2.0"
8577 - lodash "~4.17.21"
8578 - magic-string "~0.30.0"
8579 - mkdirp "~3.0.0"
8580 - moment "~2.30.1"
8581 - package-name-regex "~2.0.6"
8582 - spdx-expression-validate "~2.0.0"
8583 - spdx-satisfies "~5.0.1"
8584 -
8545 rollup-plugin-prettier@^4.1.1:
8546 version "4.1.1"
8547 resolved "https://registry.yarnpkg.com/rollup-plugin-prettier/-/rollup-plugin-prettier-4.1.1.tgz#eb74bd47c3cc3ba68bdf34b5323d0d7a47be8cec"
@@ -8864,54 +8824,6 @@ spawn-command@^0.0.2-1:
8824 resolved "https://registry.yarnpkg.com/spawn-command/-/spawn-command-0.0.2-1.tgz#62f5e9466981c1b796dc5929937e11c9c6921bd0"
8825 integrity sha512-n98l9E2RMSJ9ON1AKisHzz7V42VDiBQGY6PB1BwRglz99wpVsSuGzQ+jOi6lFXBGVTCrRpltvjm+/XA+tpeJrg==
8826
8867 -spdx-compare@^1.0.0:
8868 - version "1.0.0"
8869 - resolved "https://registry.yarnpkg.com/spdx-compare/-/spdx-compare-1.0.0.tgz#2c55f117362078d7409e6d7b08ce70a857cd3ed7"
8870 - integrity sha512-C1mDZOX0hnu0ep9dfmuoi03+eOdDoz2yvK79RxbcrVEG1NO1Ph35yW102DHWKN4pk80nwCgeMmSY5L25VE4D9A==
8871 - dependencies:
8872 - array-find-index "^1.0.2"
8873 - spdx-expression-parse "^3.0.0"
8874 - spdx-ranges "^2.0.0"
8875 -
8876 -spdx-exceptions@^2.1.0:
8877 - version "2.3.0"
8878 - resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz#3f28ce1a77a00372683eade4a433183527a2163d"
8879 - integrity sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==
8880 -
8881 -spdx-expression-parse@^3.0.0:
8882 - version "3.0.1"
8883 - resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679"
8884 - integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==
8885 - dependencies:
8886 - spdx-exceptions "^2.1.0"
8887 - spdx-license-ids "^3.0.0"
8888 -
8889 -spdx-expression-validate@~2.0.0:
8890 - version "2.0.0"
8891 - resolved "https://registry.yarnpkg.com/spdx-expression-validate/-/spdx-expression-validate-2.0.0.tgz#25c9408e1c63fad94fff5517bb7101ffcd23350b"
8892 - integrity sha512-b3wydZLM+Tc6CFvaRDBOF9d76oGIHNCLYFeHbftFXUWjnfZWganmDmvtM5sm1cRwJc/VDBMLyGGrsLFd1vOxbg==
8893 - dependencies:
8894 - spdx-expression-parse "^3.0.0"
8895 -
8896 -spdx-license-ids@^3.0.0:
8897 - version "3.0.13"
8898 - resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz#7189a474c46f8d47c7b0da4b987bb45e908bd2d5"
8899 - integrity sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==
8900 -
8901 -spdx-ranges@^2.0.0:
8902 - version "2.1.1"
8903 - resolved "https://registry.yarnpkg.com/spdx-ranges/-/spdx-ranges-2.1.1.tgz#87573927ba51e92b3f4550ab60bfc83dd07bac20"
8904 - integrity sha512-mcdpQFV7UDAgLpXEE/jOMqvK4LBoO0uTQg0uvXUewmEFhpiZx5yJSZITHB8w1ZahKdhfZqP5GPEOKLyEq5p8XA==
8905 -
8906 -spdx-satisfies@~5.0.1:
8907 - version "5.0.1"
8908 - resolved "https://registry.yarnpkg.com/spdx-satisfies/-/spdx-satisfies-5.0.1.tgz#9feeb2524686c08e5f7933c16248d4fdf07ed6a6"
8909 - integrity sha512-Nwor6W6gzFp8XX4neaKQ7ChV4wmpSh2sSDemMFSzHxpTw460jxFYeOn+jq4ybnSSw/5sc3pjka9MQPouksQNpw==
8910 - dependencies:
8911 - spdx-compare "^1.0.0"
8912 - spdx-expression-parse "^3.0.0"
8913 - spdx-ranges "^2.0.0"
8914 -
8827 sprintf-js@~1.0.2:
8828 version "1.0.3"
8829 resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"