* Switch shared-components from yarn classic to pnpm Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch element-web from yarn classic to pnpm Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch CI to pnpm Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update docs & comments Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Hold back postcss to match yarn.lock & use workspace protocol Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Tweak CI Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Rid the world of `$(res)` Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch to type=module Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix module import Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Make knip happy Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update playwright imports Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Make docker build happy Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Remove stale params Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix badly formatted logging Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch to lodash-es Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Make jest happier Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch element-web to ESM Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update testcontainers imports Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix modernizr cjs Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix modernizr cjs ignore files Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Move modernizr sonar exclusion to exclude everything Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update playwright tests for esm compat Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Add pnpm-link utility Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Test matrix-web-i18n Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Discard changes to src/vector/index.ts * Update playwright-common Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Use catalogs Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Improve pnpm-link script Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Use pnpm import to regenerate lockfile from yarn.lock Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
67 lines
2.1 KiB
TypeScript
67 lines
2.1 KiB
TypeScript
import { KnipConfig } from "knip";
|
|
|
|
export default {
|
|
workspaces: {
|
|
"packages/shared-components": {
|
|
entry: ["src/index.ts"],
|
|
},
|
|
".": {
|
|
entry: [
|
|
"src/serviceworker/index.ts",
|
|
"src/workers/*.worker.ts",
|
|
"src/utils/exportUtils/exportJS.js",
|
|
"src/vector/localstorage-fix.ts",
|
|
"scripts/**",
|
|
"playwright/**",
|
|
"test/**",
|
|
"res/decoder-ring/**",
|
|
"res/jitsi_external_api.min.js",
|
|
"docs/**",
|
|
],
|
|
ignore: [
|
|
// Keep for now
|
|
"src/hooks/useLocalStorageState.ts",
|
|
"src/hooks/useTimeout.ts",
|
|
"src/components/views/elements/InfoTooltip.tsx",
|
|
"src/components/views/elements/StyledCheckbox.tsx",
|
|
|
|
"packages/**/*",
|
|
],
|
|
},
|
|
},
|
|
ignoreBinaries: ["test:storybook", "test:unit", "build:storybook"],
|
|
ignoreDependencies: [
|
|
// Required for `action-validator`
|
|
"@action-validator/*",
|
|
// Used for git pre-commit hooks
|
|
"husky",
|
|
// Used by jest
|
|
"babel-jest",
|
|
// Used by babel
|
|
"@babel/runtime",
|
|
"@babel/plugin-transform-class-properties",
|
|
// Referenced in PCSS
|
|
"github-markdown-css",
|
|
// False positive
|
|
"sw.js",
|
|
// Used by webpack
|
|
"process",
|
|
"util",
|
|
// Embedded into webapp
|
|
"@element-hq/element-call-embedded",
|
|
// Transitive dep of jest
|
|
"vitest-environment-jest-fixed-jsdom",
|
|
|
|
// We import this in some tests, transitive dep of @playwright/test
|
|
"playwright-core",
|
|
|
|
// Used by matrix-js-sdk, which means we have to include them as a
|
|
// dependency so that // we can run `tsc` (since we import the typescript
|
|
// source of js-sdk, rather than the transpiled and annotated JS like you
|
|
// would with a normal library).
|
|
"@types/content-type",
|
|
"@types/sdp-transform",
|
|
],
|
|
ignoreExportsUsedInFile: true,
|
|
} satisfies KnipConfig;
|