Skip to content

Commit

Permalink
chore(deps): update dependency tsbb to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 3, 2021
1 parent 3b0fa8b commit 3456340
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 70 deletions.
37 changes: 0 additions & 37 deletions .babelrc

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# Edit at https://www.gitignore.io/?templates=node

lib
cjs
esm
doc
build
typings
Expand Down
38 changes: 16 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions src/tsconfig.json
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
}
}
20 changes: 14 additions & 6 deletions tsconfig.json
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"
]
}
9 changes: 6 additions & 3 deletions website/react-app-env.d.ts
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';

0 comments on commit 3456340

Please sign in to comment.