-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency tsbb to v3
- Loading branch information
1 parent
3b0fa8b
commit 3456340
Showing
6 changed files
with
39 additions
and
70 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 |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
# Edit at https://www.gitignore.io/?templates=node | ||
|
||
lib | ||
cjs | ||
esm | ||
doc | ||
build | ||
typings | ||
|
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 |
---|---|---|
|
@@ -3,24 +3,17 @@ | |
"version": "2.6.2", | ||
"description": "React component to listen to keydown and keyup keyboard events, defining and dispatching keyboard shortcuts.", | ||
"author": "kenny wang <[email protected]>", | ||
"main": "lib/cjs/index.js", | ||
"module": "lib/esm/index.js", | ||
"typings": "lib/cjs/index.d.ts", | ||
"main": "cjs/index.js", | ||
"module": "esm/index.js", | ||
"homepage": "https://jaywcjlove.github.io/react-hotkeys/", | ||
"scripts": { | ||
"prepare": "npm run build", | ||
"watch": "npm run types:watch -- --env-name esm:dev --env-name cjs & npm run ts:watch", | ||
"build": "npm run ts:build && npm run types:esm && npm run types:cjs && npm run bundle && npm run bundle:min", | ||
"types:build": "tsbb types --sourceRoot src --target ESNEXT", | ||
"types:watch": "npm run types:esm -- --watch & npm run types:cjs -- --watch", | ||
"types:esm": "npm run types:build -- --outDir ../lib/esm", | ||
"types:cjs": "npm run types:build -- --outDir ../lib/cjs", | ||
"ts:watch": "tsbb watch --env-name esm:dev --env-name cjs --target react", | ||
"ts:build": "tsbb build --target react", | ||
"watch": "tsbb watch", | ||
"build": "tsbb build && npm run bundle && npm run bundle:min", | ||
"bundle": "kkt build --bundle", | ||
"bundle:min": "kkt build --bundle --mini", | ||
"test": "tsbb test --env=jsdom", | ||
"coverage": "tsbb test --env=jsdom --coverage", | ||
"test": "tsbb test --env=jsdom", | ||
"doc": "kkt build --app-src ./website", | ||
"start": "kkt start --app-src ./website" | ||
}, | ||
|
@@ -54,26 +47,27 @@ | |
], | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"@babel/runtime": ">=7.8.0", | ||
"react": ">=16.7.0" | ||
"@babel/runtime": ">=7.10.0", | ||
"react": ">=16.9.0", | ||
"react-dom": ">=16.9.0" | ||
}, | ||
"devDependencies": { | ||
"@kkt/less-modules": "6.11.0", | ||
"@kkt/raw-modules": "6.11.0", | ||
"@kkt/react-library": "6.11.0", | ||
"@kkt/scope-plugin-options": "6.11.0", | ||
"@types/classnames": "2.2.11", | ||
"@types/react": "16.9.34", | ||
"@types/react-dom": "16.9.5", | ||
"@uiw/react-github-corners": "1.1.3", | ||
"@uiw/react-markdown-preview": "1.0.9", | ||
"@uiw/react-shields": "1.1.0", | ||
"classnames": "2.2.6", | ||
"@types/classnames": "2.3.1", | ||
"@types/react": "17.0.19", | ||
"@types/react-dom": "17.0.9", | ||
"@uiw/react-github-corners": "1.5.1", | ||
"@uiw/react-markdown-preview": "3.3.0", | ||
"@uiw/react-shields": "1.1.1", | ||
"classnames": "2.3.1", | ||
"kkt": "6.11.0", | ||
"react": "17.0.2", | ||
"react-dom": "17.0.2", | ||
"react-test-renderer": "17.0.2", | ||
"tsbb": "1.7.9" | ||
"tsbb": "3.0.4" | ||
}, | ||
"dependencies": { | ||
"hotkeys-js": "^3.8.1", | ||
|
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,8 +1,7 @@ | ||
{ | ||
"extends": "../tsconfig", | ||
"include": ["../src"], | ||
"compilerOptions": { | ||
"emitDeclarationOnly": true, | ||
"outDir": "../cjs", | ||
"noEmit": false | ||
} | ||
} |
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,27 +1,35 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "esnext", | ||
"lib": [ | ||
"dom", | ||
"dom.iterable", | ||
"esnext" | ||
], | ||
"allowJs": true, | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"allowSyntheticDefaultImports": true, | ||
"strict": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"module": "esnext", | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"declaration": true, | ||
"baseUrl": ".", | ||
"jsx": "react-jsx", | ||
"allowJs": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"isolatedModules": true, | ||
"noEmit": true | ||
"noEmit": true, | ||
"types": [ | ||
"jest", | ||
"node" | ||
], | ||
"forceConsistentCasingInFileNames": true | ||
}, | ||
"include": [ | ||
"website" | ||
"website", | ||
"src", | ||
".kktrc.ts", | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
/// <reference types="react-scripts" /> | ||
|
||
declare module '*.md' { | ||
const src: string; | ||
export default src; | ||
declare module '*.less' { | ||
const classes: { readonly [key: string]: string }; | ||
export default classes; | ||
} | ||
|
||
declare module '*.md'; |