diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-20 19:21:21 +0200 |
---|---|---|
committer | Ven <vendicated@riseup.net> | 2022-10-20 20:23:14 +0200 |
commit | c80ed1b824b9f0b8aab8103cbde5e9b1f2c951c1 (patch) | |
tree | fe3d55df57cd945a71000f197b3eed9842e1833c | |
parent | 50047dd3c22c9b3754684e4d21f7aeeff25dbd79 (diff) | |
download | Vencord-c80ed1b824b9f0b8aab8103cbde5e9b1f2c951c1.tar.gz Vencord-c80ed1b824b9f0b8aab8103cbde5e9b1f2c951c1.tar.bz2 Vencord-c80ed1b824b9f0b8aab8103cbde5e9b1f2c951c1.zip |
legal: Make esbuild generate & link licensing information
-rw-r--r-- | .eslintrc.json | 10 | ||||
-rw-r--r-- | scripts/build/common.mjs | 5 | ||||
-rw-r--r-- | src/api/DataStore/index.ts | 3 |
3 files changed, 7 insertions, 11 deletions
diff --git a/.eslintrc.json b/.eslintrc.json index 3d216f4..9b3ff33 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -3,13 +3,7 @@ "parser": "@typescript-eslint/parser", "ignorePatterns": ["dist"], "rules": { - "quotes": [ - "error", - "double", - { - "avoidEscape": true - } - ], + "quotes": ["error", "double", { "avoidEscape": true }], "jsx-quotes": ["error", "prefer-double"], "no-mixed-spaces-and-tabs": "error", "indent": ["error", 4, { "SwitchCase": 1 }], @@ -25,7 +19,7 @@ "block-spacing": ["error", "always"], "object-curly-spacing": ["error", "always"], "eqeqeq": ["error", "always", { "null": "ignore" }], - "spaced-comment": ["error", "always"], + "spaced-comment": ["error", "always", { "markers": ["!"] }], "yoda": "error", "prefer-destructuring": ["error", { "object": true, "array": false }], "operator-assignment": ["error", "always"], diff --git a/scripts/build/common.mjs b/scripts/build/common.mjs index deb8ff4..0def0c2 100644 --- a/scripts/build/common.mjs +++ b/scripts/build/common.mjs @@ -13,7 +13,8 @@ export const commonOpts = { bundle: true, watch, minify: !watch, - sourcemap: watch ? "inline" : "" + sourcemap: watch ? "inline" : "", + legalComments: "linked" }; // https://github.com/evanw/esbuild/issues/619#issuecomment-751995294 @@ -23,7 +24,7 @@ export const commonOpts = { export const makeAllPackagesExternalPlugin = { name: "make-all-packages-external", setup(build) { - let filter = /^[^.\/]|^\.[^.\/]|^\.\.[^\/]/; // Must not start with "/" or "./" or "../" + const filter = /^[^./]|^\.[^./]|^\.\.[^/]/; // Must not start with "/" or "./" or "../" build.onResolve({ filter }, args => ({ path: args.path, external: true })); }, }; diff --git a/src/api/DataStore/index.ts b/src/api/DataStore/index.ts index f0764b3..3943c11 100644 --- a/src/api/DataStore/index.ts +++ b/src/api/DataStore/index.ts @@ -4,7 +4,8 @@ // I would usually not add my own Copyright for such a small modification // but the Apache License requires this. -/* +/*! + * idb-keyval v6.2.0 * Copyright 2016, Jake Archibald * Copyright 2022, Vendicated * |