-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c403cf7
commit bf04cf7
Showing
18 changed files
with
1,070 additions
and
490 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
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 |
---|---|---|
|
@@ -37,16 +37,18 @@ | |
"format": "prettier --write \"{src,test,typescript_test}/**/*.{js,ts}\"", | ||
"format:check": "prettier --check \"{src,test,typescript_test}/**/*.{js,ts}\"", | ||
"lint": "eslint \"{src,test,typescript_test}/**/*.{js,ts}\"", | ||
"test": "vitest run", | ||
"test:cov": "vitest run --coverage", | ||
"test:typescript": "tsc --noEmit -p typescript_test/tsconfig.json", | ||
"build": "tsup", | ||
"test": "vitest --run --typecheck", | ||
"test:watch": "vitest --watch", | ||
"test:cov": "vitest --run --coverage", | ||
"type-tests": "tsc --noEmit -p tsconfig.test.json", | ||
"build": "yarn clean && tsup", | ||
"prepack": "yarn build" | ||
}, | ||
"peerDependencies": { | ||
"redux": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.11.20", | ||
"@typescript-eslint/eslint-plugin": "^5.1.0", | ||
"@typescript-eslint/parser": "^5.1.0", | ||
"cross-env": "^7.0.3", | ||
|
@@ -56,8 +58,8 @@ | |
"redux": "^5", | ||
"rimraf": "^3.0.2", | ||
"tsup": "7.0.0", | ||
"typescript": "^5.4.2", | ||
"vitest": "^0.32.0" | ||
"typescript": "^5.4.5", | ||
"vitest": "^1.6.0" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowSyntheticDefaultImports": true, | ||
"declaration": true, | ||
"downlevelIteration": false, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"importHelpers": true, | ||
"isolatedModules": true, | ||
"jsx": "react", | ||
"lib": ["DOM", "ESNext"], | ||
"module": "ESnext", | ||
"moduleResolution": "Node", | ||
"noErrorTruncation": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"noUnusedLocals": false, | ||
"noUnusedParameters": false, | ||
"paths": { | ||
"@internal/*": ["./src/*"], | ||
"redux-thunk": ["./src/index.ts"] // @remap-prod-remove-line | ||
}, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"target": "ESnext", | ||
"types": ["vitest/globals", "vitest/importMeta"] | ||
}, | ||
"exclude": ["dist"] | ||
} |
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,10 @@ | ||
{ | ||
// For building the library. | ||
"extends": "./tsconfig.base.json", | ||
"compilerOptions": { | ||
"emitDeclarationOnly": true, | ||
"outDir": "dist", | ||
"rootDir": "./src" | ||
}, | ||
"include": ["src"] | ||
} |
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 |
---|---|---|
@@ -1,25 +1,12 @@ | ||
{ | ||
// For general development and intellisense. | ||
// Scans the entire source code against the current TS version | ||
// we are using during development. | ||
"extends": "./tsconfig.test.json", | ||
"compilerOptions": { | ||
"strict": true, | ||
"target": "ESNext", | ||
"module": "ESNext", | ||
"moduleResolution": "Node", | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"allowJs": true, | ||
"jsx": "react", | ||
"declaration": true, | ||
"emitDeclarationOnly": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"experimentalDecorators": true, | ||
"rootDirs": ["./src", "./test"], | ||
"types": ["vitest/globals"], | ||
"baseUrl": ".", | ||
"paths": { | ||
"redux-thunk": ["src/index.ts"], // @remap-prod-remove-line | ||
"@internal/*": ["src/*"] | ||
} | ||
"checkJs": true, | ||
"rootDir": "." | ||
}, | ||
"include": ["src/**/*"], | ||
"exclude": ["node_modules", "dist"] | ||
"include": ["."] | ||
} |
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,10 @@ | ||
{ | ||
// For runtime and type tests during CI. | ||
"extends": "./tsconfig.base.json", | ||
"compilerOptions": { | ||
"noEmit": true, | ||
"jsx": "react-jsx", | ||
"noImplicitReturns": false | ||
}, | ||
"include": ["typescript_test"] | ||
} |
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
Oops, something went wrong.