-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #322 from inversify/chore/clean-dependencies
Clean dependencies
- Loading branch information
Showing
21 changed files
with
66 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { KnipConfig } from "knip"; | ||
|
||
type RecordValues<T> = T extends Record<any, infer U> ? U : never; | ||
|
||
type WorkspaceProjectConfig = RecordValues<Required<KnipConfig["workspaces"]>>; | ||
|
||
const defaultWorkspaceProjectConfig: WorkspaceProjectConfig = { | ||
entry: [ | ||
"{index,cli,main}.{js,cjs,mjs,jsx,ts,cts,mts,tsx}", | ||
"src/{index,cli,main}.{js,cjs,mjs,jsx,ts,cts,mts,tsx}", | ||
], | ||
project: [ | ||
"**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}!", | ||
"!jest.config.stryker.mjs", | ||
"!**/__mocks__", | ||
], | ||
}; | ||
|
||
export default { | ||
workspaces: { | ||
".": { | ||
entry: ["config/commitlint/commitlint.config.js"], | ||
project: [], | ||
}, | ||
"packages/container/libraries/*": defaultWorkspaceProjectConfig, | ||
"packages/container/tools/*": defaultWorkspaceProjectConfig, | ||
"packages/docs/services/*": defaultWorkspaceProjectConfig, | ||
"packages/docs/tools/inversify-code-examples": { | ||
entry: ["src/examples/**/*.ts", "src/scripts/generateExamples.mts"], | ||
project: defaultWorkspaceProjectConfig.project, | ||
}, | ||
"packages/docs/tools/*": defaultWorkspaceProjectConfig, | ||
"packages/foundation/libraries/*": defaultWorkspaceProjectConfig, | ||
"packages/foundation/tools/*": defaultWorkspaceProjectConfig, | ||
"packages/container/tools/e2e-tests": { | ||
entry: [ | ||
"src/*/parameters/*.ts", | ||
"src/*/step-definitions/*.ts", | ||
"src/app/hooks/*.ts", | ||
], | ||
project: [ | ||
...(defaultWorkspaceProjectConfig.project as string[]), | ||
"!config/*", | ||
], | ||
}, | ||
}, | ||
} satisfies KnipConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/container/libraries/common/src/services/models/LazyServiceIdentifier.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/container/libraries/container/src/error/models/InversifyContainerError.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/container/libraries/core/src/error/models/InversifyCoreError.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,19 +9,15 @@ | |
"inversify7": "npm:[email protected]" | ||
}, | ||
"devDependencies": { | ||
"@eslint/js": "9.18.0", | ||
"@jest/globals": "29.7.0", | ||
"@types/node": "22.10.7", | ||
"@typescript-eslint/eslint-plugin": "8.20.0", | ||
"@typescript-eslint/parser": "8.20.0", | ||
"eslint": "9.18.0", | ||
"glob": "11.0.1", | ||
"jest": "29.7.0", | ||
"prettier": "3.4.2", | ||
"reflect-metadata": "0.2.2", | ||
"rimraf": "6.0.1", | ||
"ts-jest": "29.2.5", | ||
"ts-node": "10.9.2", | ||
"typescript": "5.7.3" | ||
}, | ||
"homepage": "https://inversify.io", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters