diff --git a/addons/a11y/package.json b/addons/a11y/package.json index 5bc68c644164..e494029776c9 100644 --- a/addons/a11y/package.json +++ b/addons/a11y/package.json @@ -35,6 +35,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -56,7 +57,8 @@ "util-deprecate": "^1.0.2" }, "devDependencies": { - "@testing-library/react": "^11.2.2" + "@testing-library/react": "^11.2.2", + "typescript": "~4.6.3" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0", diff --git a/addons/actions/package.json b/addons/actions/package.json index aed8ac2506e1..06d984c67f4f 100644 --- a/addons/actions/package.json +++ b/addons/actions/package.json @@ -31,6 +31,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -54,7 +55,8 @@ "uuid-browser": "^3.1.0" }, "devDependencies": { - "@types/lodash": "^4.14.167" + "@types/lodash": "^4.14.167", + "typescript": "~4.6.3" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0", diff --git a/addons/backgrounds/package.json b/addons/backgrounds/package.json index d7b2c807ee9b..41e5f6dc7c28 100644 --- a/addons/backgrounds/package.json +++ b/addons/backgrounds/package.json @@ -35,6 +35,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/addons/controls/package.json b/addons/controls/package.json index 70f06c9b88ca..baefa5a5bf3a 100644 --- a/addons/controls/package.json +++ b/addons/controls/package.json @@ -35,6 +35,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/addons/docs/package.json b/addons/docs/package.json index 20449b2ad6c2..79a9345eaeb1 100644 --- a/addons/docs/package.json +++ b/addons/docs/package.json @@ -45,6 +45,7 @@ "!__testfixtures__" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -81,7 +82,8 @@ "devDependencies": { "@babel/core": "^7.12.10", "@storybook/mdx2-csf": "^0.0.3", - "@types/util-deprecate": "^1.0.0" + "@types/util-deprecate": "^1.0.0", + "typescript": "~4.6.3" }, "peerDependencies": { "@storybook/mdx2-csf": "^0.0.3", diff --git a/addons/essentials/package.json b/addons/essentials/package.json index cf4a8ce48315..3549486c7fb8 100644 --- a/addons/essentials/package.json +++ b/addons/essentials/package.json @@ -29,6 +29,7 @@ "README.md" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -51,7 +52,8 @@ "devDependencies": { "@babel/core": "^7.12.10", "@storybook/vue": "7.0.0-alpha.8", - "@types/jest": "^26.0.16" + "@types/jest": "^26.0.16", + "typescript": "~4.6.3" }, "peerDependencies": { "@babel/core": "^7.9.6" diff --git a/addons/highlight/package.json b/addons/highlight/package.json index c54acca3f4ab..819b122aba08 100644 --- a/addons/highlight/package.json +++ b/addons/highlight/package.json @@ -33,6 +33,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -42,7 +43,8 @@ "global": "^4.4.0" }, "devDependencies": { - "@types/webpack-env": "^1.16.0" + "@types/webpack-env": "^1.16.0", + "typescript": "~4.6.3" }, "publishConfig": { "access": "public" diff --git a/addons/interactions/package.json b/addons/interactions/package.json index 22e454f2362d..5f66ef43c053 100644 --- a/addons/interactions/package.json +++ b/addons/interactions/package.json @@ -31,6 +31,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -53,7 +54,8 @@ "devDependencies": { "@storybook/jest": "^0.0.5", "@storybook/testing-library": "0.0.14-next.0", - "formik": "^2.2.9" + "formik": "^2.2.9", + "typescript": "~4.6.3" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0", diff --git a/addons/jest/package.json b/addons/jest/package.json index 487a99327f6c..0f9a07fa9441 100644 --- a/addons/jest/package.json +++ b/addons/jest/package.json @@ -37,6 +37,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/addons/links/package.json b/addons/links/package.json index 27ff7e23ce13..2c4c191d62b9 100644 --- a/addons/links/package.json +++ b/addons/links/package.json @@ -31,6 +31,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/addons/measure/package.json b/addons/measure/package.json index ac689c1ff5ae..b7c6d5da781d 100644 --- a/addons/measure/package.json +++ b/addons/measure/package.json @@ -34,6 +34,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/addons/outline/package.json b/addons/outline/package.json index ae4060e537d9..629fab1014f6 100644 --- a/addons/outline/package.json +++ b/addons/outline/package.json @@ -37,6 +37,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/addons/storyshots/storyshots-core/package.json b/addons/storyshots/storyshots-core/package.json index 235aeeccbb3e..46531a7ea57b 100644 --- a/addons/storyshots/storyshots-core/package.json +++ b/addons/storyshots/storyshots-core/package.json @@ -73,6 +73,7 @@ "jest-preset-angular": "^8.3.2", "jest-vue-preprocessor": "^1.7.1", "rxjs": "^6.6.3", + "typescript": "~4.6.3", "vue-jest": "^5.0.0-alpha.8" }, "peerDependencies": { diff --git a/addons/storyshots/storyshots-puppeteer/package.json b/addons/storyshots/storyshots-puppeteer/package.json index 4671b1c5f48c..711dbe6cc505 100644 --- a/addons/storyshots/storyshots-puppeteer/package.json +++ b/addons/storyshots/storyshots-puppeteer/package.json @@ -42,7 +42,8 @@ }, "devDependencies": { "@storybook/csf": "0.0.2--canary.4566f4d.1", - "@types/puppeteer": "^5.4.0" + "@types/puppeteer": "^5.4.0", + "typescript": "~4.6.3" }, "peerDependencies": { "@storybook/addon-storyshots": "7.0.0-alpha.8", diff --git a/addons/storysource/package.json b/addons/storysource/package.json index cd11fde859f1..9f03595d617a 100644 --- a/addons/storysource/package.json +++ b/addons/storysource/package.json @@ -31,6 +31,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -48,7 +49,8 @@ }, "devDependencies": { "@types/react": "^16.14.23", - "@types/react-syntax-highlighter": "11.0.5" + "@types/react-syntax-highlighter": "11.0.5", + "typescript": "~4.6.3" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0", diff --git a/addons/toolbars/package.json b/addons/toolbars/package.json index 82c9929ee219..e4998dd406a7 100644 --- a/addons/toolbars/package.json +++ b/addons/toolbars/package.json @@ -35,6 +35,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/addons/viewport/package.json b/addons/viewport/package.json index 75f6e09c9ba1..38011a5d0266 100644 --- a/addons/viewport/package.json +++ b/addons/viewport/package.json @@ -32,6 +32,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/frameworks/angular/package.json b/frameworks/angular/package.json index 0f14e3938168..040605dbee5e 100644 --- a/frameworks/angular/package.json +++ b/frameworks/angular/package.json @@ -30,6 +30,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/frameworks/ember/package.json b/frameworks/ember/package.json index 7fa3390cab88..c6cb592e759f 100644 --- a/frameworks/ember/package.json +++ b/frameworks/ember/package.json @@ -26,6 +26,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -41,6 +42,9 @@ "read-pkg-up": "^7.0.1", "ts-dedent": "^2.0.0" }, + "devDependencies": { + "typescript": "~4.6.3" + }, "peerDependencies": { "@babel/core": "*", "babel-plugin-ember-modules-api-polyfill": "^2.12.0", diff --git a/frameworks/html-webpack5/package.json b/frameworks/html-webpack5/package.json index e9244728fb9b..8c834a491177 100644 --- a/frameworks/html-webpack5/package.json +++ b/frameworks/html-webpack5/package.json @@ -46,6 +46,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -60,7 +61,8 @@ "react-dom": "16.14.0" }, "devDependencies": { - "@digitak/esrun": "^3.2.2" + "@digitak/esrun": "^3.2.2", + "typescript": "~4.6.3" }, "peerDependencies": { "@babel/core": "*" diff --git a/frameworks/preact-webpack5/package.json b/frameworks/preact-webpack5/package.json index 443a0e917e47..b9a4aa962c5b 100644 --- a/frameworks/preact-webpack5/package.json +++ b/frameworks/preact-webpack5/package.json @@ -46,6 +46,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -60,7 +61,8 @@ }, "devDependencies": { "@digitak/esrun": "^3.2.2", - "preact": "^10.5.13" + "preact": "^10.5.13", + "typescript": "~4.6.3" }, "peerDependencies": { "@babel/core": "*", diff --git a/frameworks/react-webpack5/package.json b/frameworks/react-webpack5/package.json index 68bd12f1cfb2..057b5956a7fe 100644 --- a/frameworks/react-webpack5/package.json +++ b/frameworks/react-webpack5/package.json @@ -47,6 +47,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -58,7 +59,8 @@ }, "devDependencies": { "@digitak/esrun": "^3.2.2", - "jest-specific-snapshot": "^4.0.0" + "jest-specific-snapshot": "^4.0.0", + "typescript": "~4.6.3" }, "peerDependencies": { "@babel/core": "^7.11.5", diff --git a/frameworks/server-webpack5/package.json b/frameworks/server-webpack5/package.json index 1f58a1f4c03b..c88500184c8b 100644 --- a/frameworks/server-webpack5/package.json +++ b/frameworks/server-webpack5/package.json @@ -46,6 +46,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -59,7 +60,8 @@ "react-dom": "16.14.0" }, "devDependencies": { - "@digitak/esrun": "^3.2.2" + "@digitak/esrun": "^3.2.2", + "typescript": "~4.6.3" }, "engines": { "node": ">=10.13.0" diff --git a/frameworks/svelte-webpack5/package.json b/frameworks/svelte-webpack5/package.json index aafadb06ef82..34b134f18a1e 100644 --- a/frameworks/svelte-webpack5/package.json +++ b/frameworks/svelte-webpack5/package.json @@ -47,6 +47,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -61,7 +62,8 @@ "devDependencies": { "@digitak/esrun": "^3.2.2", "svelte": "^3.48.0", - "svelte-loader": "^3.1.2" + "svelte-loader": "^3.1.2", + "typescript": "~4.6.3" }, "peerDependencies": { "@babel/core": "*", diff --git a/frameworks/vue-webpack5/package.json b/frameworks/vue-webpack5/package.json index b4988e9e81ea..510071cd698c 100644 --- a/frameworks/vue-webpack5/package.json +++ b/frameworks/vue-webpack5/package.json @@ -46,6 +46,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -60,6 +61,7 @@ }, "devDependencies": { "@digitak/esrun": "^3.2.2", + "typescript": "~4.6.3", "vue": "^2.6.12", "vue-loader": "^15.7.0", "vue-template-compiler": "^2.6.14" diff --git a/frameworks/vue3-webpack5/package.json b/frameworks/vue3-webpack5/package.json index 927048f66e89..e18c89a4a617 100644 --- a/frameworks/vue3-webpack5/package.json +++ b/frameworks/vue3-webpack5/package.json @@ -46,6 +46,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -61,6 +62,7 @@ "devDependencies": { "@digitak/esrun": "^3.2.2", "@vue/compiler-sfc": "3.0.0", + "typescript": "~4.6.3", "vue": "3.0.0" }, "peerDependencies": { diff --git a/frameworks/web-components-webpack5/package.json b/frameworks/web-components-webpack5/package.json index 213a884e9124..94d69bc71d88 100644 --- a/frameworks/web-components-webpack5/package.json +++ b/frameworks/web-components-webpack5/package.json @@ -48,6 +48,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -63,7 +64,8 @@ }, "devDependencies": { "@digitak/esrun": "^3.2.2", - "lit-html": "2.0.2" + "lit-html": "2.0.2", + "typescript": "~4.6.3" }, "peerDependencies": { "lit-html": "^1.4.1 || ^2.0.0" diff --git a/lib/addons/package.json b/lib/addons/package.json index 2da2ba56514e..a50d0e5e263c 100644 --- a/lib/addons/package.json +++ b/lib/addons/package.json @@ -30,6 +30,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/lib/api/package.json b/lib/api/package.json index 9034971a3b2c..fefab0bc7a10 100644 --- a/lib/api/package.json +++ b/lib/api/package.json @@ -28,6 +28,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -54,7 +55,8 @@ "@types/semver": "^7.3.4", "flush-promises": "^1.0.2", "preval.macro": "^5.0.0", - "qs": "^6.10.1" + "qs": "^6.10.1", + "typescript": "~4.6.3" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0", diff --git a/lib/builder-manager/package.json b/lib/builder-manager/package.json index 96f219e1c819..738efb6a2753 100644 --- a/lib/builder-manager/package.json +++ b/lib/builder-manager/package.json @@ -37,6 +37,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -57,7 +58,8 @@ "rollup-plugin-node-polyfills": "^0.2.1" }, "devDependencies": { - "@digitak/esrun": "^3.2.2" + "@digitak/esrun": "^3.2.2", + "typescript": "~4.6.3" }, "publishConfig": { "access": "public" diff --git a/lib/builder-manager/tsconfig.json b/lib/builder-manager/tsconfig.json index 0df9a38cec4f..ed0154e53912 100644 --- a/lib/builder-manager/tsconfig.json +++ b/lib/builder-manager/tsconfig.json @@ -1,7 +1,8 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "strict": true + "strict": true, + "skipLibCheck": true }, "include": [ "src/**/*", diff --git a/lib/builder-webpack5/package.json b/lib/builder-webpack5/package.json index c9d600c6fe7f..c84db4113d50 100644 --- a/lib/builder-webpack5/package.json +++ b/lib/builder-webpack5/package.json @@ -29,6 +29,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -79,7 +80,8 @@ "@types/terser-webpack-plugin": "^5.2.0", "@types/webpack-dev-middleware": "^5.3.0", "@types/webpack-hot-middleware": "^2.25.6", - "@types/webpack-virtual-modules": "^0.1.1" + "@types/webpack-virtual-modules": "^0.1.1", + "typescript": "~4.6.3" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0", diff --git a/lib/channel-postmessage/package.json b/lib/channel-postmessage/package.json index 1b60376d2483..040b210b6cab 100644 --- a/lib/channel-postmessage/package.json +++ b/lib/channel-postmessage/package.json @@ -30,6 +30,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/lib/channel-websocket/package.json b/lib/channel-websocket/package.json index 834ef005a1a4..b749c2ba56e8 100644 --- a/lib/channel-websocket/package.json +++ b/lib/channel-websocket/package.json @@ -30,6 +30,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/lib/channels/package.json b/lib/channels/package.json index 2e47bfde6ef8..1daba426a724 100644 --- a/lib/channels/package.json +++ b/lib/channels/package.json @@ -30,6 +30,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/lib/cli-sb/package.json b/lib/cli-sb/package.json index 6998219029fe..7f9c30b9b26c 100644 --- a/lib/cli-sb/package.json +++ b/lib/cli-sb/package.json @@ -21,6 +21,7 @@ "license": "MIT", "bin": "./index.js", "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/lib/cli-storybook/package.json b/lib/cli-storybook/package.json index 840e7bb14a0c..acd8dc16049b 100644 --- a/lib/cli-storybook/package.json +++ b/lib/cli-storybook/package.json @@ -24,6 +24,7 @@ "storybook": "./index.js" }, "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/lib/cli/package.json b/lib/cli/package.json index 56da60616ae6..3ce2a54e1b2f 100644 --- a/lib/cli/package.json +++ b/lib/cli/package.json @@ -41,6 +41,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js", "test": "jest test/**/*.test.js" }, @@ -86,6 +87,7 @@ "@types/shelljs": "^0.8.7", "@types/update-notifier": "^5.0.0", "strip-json-comments": "^3.1.1", + "typescript": "~4.6.3", "update-notifier": "^5.0.1" }, "publishConfig": { diff --git a/lib/client-api/package.json b/lib/client-api/package.json index fdf62cd9748a..98c37c86dc33 100644 --- a/lib/client-api/package.json +++ b/lib/client-api/package.json @@ -30,6 +30,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/lib/client-logger/package.json b/lib/client-logger/package.json index f8be650c9c62..52da4143fa6c 100644 --- a/lib/client-logger/package.json +++ b/lib/client-logger/package.json @@ -30,6 +30,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/lib/codemod/package.json b/lib/codemod/package.json index 5f5516d441a7..a63651f4bc7f 100644 --- a/lib/codemod/package.json +++ b/lib/codemod/package.json @@ -38,6 +38,7 @@ "!__testfixtures__" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -56,7 +57,8 @@ }, "devDependencies": { "jest": "^26.6.3", - "jest-specific-snapshot": "^4.0.0" + "jest-specific-snapshot": "^4.0.0", + "typescript": "~4.6.3" }, "publishConfig": { "access": "public" diff --git a/lib/components/package.json b/lib/components/package.json index e829b622efd4..05adfc7a0681 100644 --- a/lib/components/package.json +++ b/lib/components/package.json @@ -47,6 +47,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -79,7 +80,8 @@ "react-popper-tooltip": "^3.1.1", "react-syntax-highlighter": "^15.4.5", "react-textarea-autosize": "^8.3.0", - "ts-dedent": "^2.0.0" + "ts-dedent": "^2.0.0", + "typescript": "~4.6.3" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0", diff --git a/lib/core-client/package.json b/lib/core-client/package.json index 6bb669f988a5..7044e9ba49ca 100644 --- a/lib/core-client/package.json +++ b/lib/core-client/package.json @@ -30,6 +30,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/lib/core-common/package.json b/lib/core-common/package.json index aed93bef1a8a..3403eca42053 100644 --- a/lib/core-common/package.json +++ b/lib/core-common/package.json @@ -42,6 +42,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -103,7 +104,8 @@ "@types/interpret": "^1.1.1", "@types/mock-fs": "^4.13.0", "@types/picomatch": "^2.3.0", - "mock-fs": "^4.13.0" + "mock-fs": "^4.13.0", + "typescript": "~4.6.3" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0", diff --git a/lib/core-events/package.json b/lib/core-events/package.json index 05d712c4eedd..cfadd98c2f3b 100644 --- a/lib/core-events/package.json +++ b/lib/core-events/package.json @@ -30,6 +30,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/lib/core-server/package.json b/lib/core-server/package.json index b053c9c25af2..5a072bb07ac7 100644 --- a/lib/core-server/package.json +++ b/lib/core-server/package.json @@ -29,6 +29,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -82,7 +83,8 @@ "@types/ip": "^1.1.0", "@types/serve-favicon": "^2.5.2", "@types/ws": "^8", - "jest-specific-snapshot": "^4.0.0" + "jest-specific-snapshot": "^4.0.0", + "typescript": "~4.6.3" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0", diff --git a/lib/core-webpack/package.json b/lib/core-webpack/package.json index b87b47f5a64f..8cde83c51da3 100644 --- a/lib/core-webpack/package.json +++ b/lib/core-webpack/package.json @@ -30,6 +30,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/lib/csf-tools/package.json b/lib/csf-tools/package.json index 6f96affa0c49..fe44682ed334 100644 --- a/lib/csf-tools/package.json +++ b/lib/csf-tools/package.json @@ -30,6 +30,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -49,7 +50,8 @@ "devDependencies": { "@storybook/mdx2-csf": "^0.0.3", "@types/fs-extra": "^9.0.6", - "js-yaml": "^3.14.1" + "js-yaml": "^3.14.1", + "typescript": "~4.6.3" }, "publishConfig": { "access": "public" diff --git a/lib/docs-tools/package.json b/lib/docs-tools/package.json index 6e4c61358df2..9684cbf32cd4 100644 --- a/lib/docs-tools/package.json +++ b/lib/docs-tools/package.json @@ -30,6 +30,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -42,7 +43,8 @@ }, "devDependencies": { "jest-specific-snapshot": "^4.0.0", - "require-from-string": "^2.0.2" + "require-from-string": "^2.0.2", + "typescript": "~4.6.3" }, "publishConfig": { "access": "public" diff --git a/lib/instrumenter/package.json b/lib/instrumenter/package.json index d9904aa07a38..eeab8e2c3071 100644 --- a/lib/instrumenter/package.json +++ b/lib/instrumenter/package.json @@ -37,6 +37,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/lib/node-logger/package.json b/lib/node-logger/package.json index 0443666b0c5b..62448dbd10b0 100644 --- a/lib/node-logger/package.json +++ b/lib/node-logger/package.json @@ -30,6 +30,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -40,7 +41,8 @@ "pretty-hrtime": "^1.0.3" }, "devDependencies": { - "@types/pretty-hrtime": "^1.0.0" + "@types/pretty-hrtime": "^1.0.0", + "typescript": "~4.6.3" }, "publishConfig": { "access": "public" diff --git a/lib/postinstall/package.json b/lib/postinstall/package.json index 29cc75ecdc40..c0aa1f7b34f3 100644 --- a/lib/postinstall/package.json +++ b/lib/postinstall/package.json @@ -31,6 +31,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -39,7 +40,8 @@ "devDependencies": { "jest": "^26.6.3", "jest-specific-snapshot": "^4.0.0", - "jscodeshift": "^0.13.1" + "jscodeshift": "^0.13.1", + "typescript": "~4.6.3" }, "publishConfig": { "access": "public" diff --git a/lib/preview-web/package.json b/lib/preview-web/package.json index 1f61b0f74e4d..b3e0964f0961 100644 --- a/lib/preview-web/package.json +++ b/lib/preview-web/package.json @@ -37,6 +37,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/lib/router/package.json b/lib/router/package.json index 739070f458da..6ce85498f97e 100644 --- a/lib/router/package.json +++ b/lib/router/package.json @@ -30,6 +30,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "ts-node ../../scripts/prebundle.ts" }, "dependencies": { @@ -46,7 +47,8 @@ "react-router": "6.0.2", "react-router-dom": "6.0.2", "ts-dedent": "^2.0.0", - "ts-node": "^10.4.0" + "ts-node": "^10.4.0", + "typescript": "~4.6.3" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0", diff --git a/lib/source-loader/package.json b/lib/source-loader/package.json index 8774109984e0..6aac83e52a29 100644 --- a/lib/source-loader/package.json +++ b/lib/source-loader/package.json @@ -31,6 +31,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/lib/store/package.json b/lib/store/package.json index 5e8f3be7ddf6..bf20b11a9339 100644 --- a/lib/store/package.json +++ b/lib/store/package.json @@ -37,6 +37,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/lib/telemetry/package.json b/lib/telemetry/package.json index ded56d895a3e..f0189395d3cb 100644 --- a/lib/telemetry/package.json +++ b/lib/telemetry/package.json @@ -30,6 +30,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { diff --git a/lib/theming/package.json b/lib/theming/package.json index c3f1d3efaa70..39418c9e7cf4 100644 --- a/lib/theming/package.json +++ b/lib/theming/package.json @@ -38,6 +38,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -56,7 +57,8 @@ "global": "^4.4.0", "polished": "^4.2.2", "ts-dedent": "^2.0.0", - "ts-node": "^10.4.0" + "ts-node": "^10.4.0", + "typescript": "~4.6.3" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0", diff --git a/lib/ui/package.json b/lib/ui/package.json index 46f55c256c66..e69903c478c8 100644 --- a/lib/ui/package.json +++ b/lib/ui/package.json @@ -48,6 +48,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ./scripts/generate-exports-file.ts && esrun ../../scripts/prepare/bundle.ts" }, "devDependencies": { @@ -88,6 +89,7 @@ "resolve-from": "^5.0.0", "store2": "^2.12.0", "ts-dedent": "^2.0.0", + "typescript": "~4.6.3", "util": "^0.12.4" }, "publishConfig": { diff --git a/lib/ui/src/globals/definitions.ts b/lib/ui/src/globals/definitions.ts index d9e606654e01..078c178e5c21 100644 --- a/lib/ui/src/globals/definitions.ts +++ b/lib/ui/src/globals/definitions.ts @@ -9,10 +9,7 @@ const createModuleInfo = (m: keyof typeof Keys): Required => ({ defaultExport: true, }); -export const definitions: Definitions = Object.keys(Keys).reduce( - (acc, key: keyof typeof Keys) => { - acc[key] = createModuleInfo(key); - return acc; - }, - {} as Definitions -); +export const definitions: Definitions = Object.keys(Keys).reduce((acc, key) => { + acc[key as keyof typeof Keys] = createModuleInfo(key as keyof typeof Keys); + return acc; +}, {} as Definitions); diff --git a/package.json b/package.json index e6ac688793c3..892eda8a985b 100644 --- a/package.json +++ b/package.json @@ -58,6 +58,7 @@ "build-storybooks": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true node -r esm ./scripts/build-storybooks.js", "changelog": "pr-log --sloppy --cherry-pick", "changelog:next": "pr-log --sloppy --since-prerelease", + "check": "NODE_ENV=production node ./scripts/check-package.js", "clean:dist": "del **/dist", "coverage": "codecov", "danger": "danger", diff --git a/presets/html-webpack/package.json b/presets/html-webpack/package.json index 4446a5a1503b..dc932a50a43e 100644 --- a/presets/html-webpack/package.json +++ b/presets/html-webpack/package.json @@ -46,6 +46,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -58,7 +59,8 @@ "webpack": "5" }, "devDependencies": { - "@digitak/esrun": "^3.2.2" + "@digitak/esrun": "^3.2.2", + "typescript": "~4.6.3" }, "peerDependencies": { "@babel/core": "*" diff --git a/presets/preact-webpack/package.json b/presets/preact-webpack/package.json index 407a47858e69..47a3ab80851c 100644 --- a/presets/preact-webpack/package.json +++ b/presets/preact-webpack/package.json @@ -46,6 +46,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -58,7 +59,8 @@ }, "devDependencies": { "@digitak/esrun": "^3.2.2", - "preact": "^10.5.13" + "preact": "^10.5.13", + "typescript": "~4.6.3" }, "peerDependencies": { "@babel/core": "*", diff --git a/presets/react-webpack/package.json b/presets/react-webpack/package.json index 123ac1916574..ab6f2448c48f 100644 --- a/presets/react-webpack/package.json +++ b/presets/react-webpack/package.json @@ -67,6 +67,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -88,7 +89,8 @@ }, "devDependencies": { "@digitak/esrun": "^3.2.2", - "@types/util-deprecate": "^1.0.0" + "@types/util-deprecate": "^1.0.0", + "typescript": "~4.6.3" }, "peerDependencies": { "@babel/core": "^7.11.5", diff --git a/presets/server-webpack/package.json b/presets/server-webpack/package.json index 1f361bd8ad10..ca4f523d35bf 100644 --- a/presets/server-webpack/package.json +++ b/presets/server-webpack/package.json @@ -51,6 +51,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -70,6 +71,7 @@ "@digitak/esrun": "^3.2.2", "fs-extra": "^9.0.1", "jest-specific-snapshot": "^4.0.0", + "typescript": "~4.6.3", "yaml": "^1.10.0" }, "engines": { diff --git a/presets/svelte-webpack/package.json b/presets/svelte-webpack/package.json index 1f7b0f2a8013..8d37ff37a379 100644 --- a/presets/svelte-webpack/package.json +++ b/presets/svelte-webpack/package.json @@ -61,6 +61,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -75,7 +76,8 @@ "devDependencies": { "@digitak/esrun": "^3.2.2", "svelte": "^3.31.2", - "svelte-loader": "^3.1.2" + "svelte-loader": "^3.1.2", + "typescript": "~4.6.3" }, "peerDependencies": { "@babel/core": "*", diff --git a/presets/vue-webpack/package.json b/presets/vue-webpack/package.json index 58751b92219b..2af2d2ed2eba 100644 --- a/presets/vue-webpack/package.json +++ b/presets/vue-webpack/package.json @@ -56,6 +56,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -72,6 +73,7 @@ }, "devDependencies": { "@digitak/esrun": "^3.2.2", + "typescript": "~4.6.3", "vue": "^2.6.12", "vue-loader": "^15.7.0", "vue-template-compiler": "^2.6.14", diff --git a/presets/vue3-webpack/package.json b/presets/vue3-webpack/package.json index a585d73aec0e..6640aefdeb63 100644 --- a/presets/vue3-webpack/package.json +++ b/presets/vue3-webpack/package.json @@ -57,6 +57,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -75,6 +76,7 @@ "devDependencies": { "@digitak/esrun": "^3.2.2", "@vue/compiler-sfc": "^3.2.33", + "typescript": "~4.6.3", "vue": "^3.2.33" }, "peerDependencies": { diff --git a/presets/web-components-webpack/package.json b/presets/web-components-webpack/package.json index 72fff73c86eb..33a7e6c6d7ea 100644 --- a/presets/web-components-webpack/package.json +++ b/presets/web-components-webpack/package.json @@ -48,6 +48,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -64,7 +65,8 @@ }, "devDependencies": { "@digitak/esrun": "^3.2.2", - "lit-html": "2.0.2" + "lit-html": "2.0.2", + "typescript": "~4.6.3" }, "peerDependencies": { "lit-html": "^1.4.1 || ^2.0.0" diff --git a/renderers/html/package.json b/renderers/html/package.json index fa4b877de4cf..aea37d0fbcdb 100644 --- a/renderers/html/package.json +++ b/renderers/html/package.json @@ -46,6 +46,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -62,7 +63,8 @@ "ts-dedent": "^2.0.0" }, "devDependencies": { - "@digitak/esrun": "^3.2.2" + "@digitak/esrun": "^3.2.2", + "typescript": "~4.6.3" }, "peerDependencies": { "@babel/core": "*" diff --git a/renderers/preact/package.json b/renderers/preact/package.json index e1b865605380..71597e4b8869 100644 --- a/renderers/preact/package.json +++ b/renderers/preact/package.json @@ -46,6 +46,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -61,7 +62,8 @@ }, "devDependencies": { "@digitak/esrun": "^3.2.2", - "preact": "^10.5.13" + "preact": "^10.5.13", + "typescript": "~4.6.3" }, "peerDependencies": { "preact": "^8.0.0||^10.0.0" diff --git a/renderers/react/package.json b/renderers/react/package.json index 7640c50b93c3..740b0f525364 100644 --- a/renderers/react/package.json +++ b/renderers/react/package.json @@ -47,6 +47,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -74,7 +75,8 @@ "devDependencies": { "@babel/core": "^7.11.5", "@digitak/esrun": "^3.2.2", - "@types/util-deprecate": "^1.0.0" + "@types/util-deprecate": "^1.0.0", + "typescript": "~4.6.3" }, "peerDependencies": { "jest-specific-snapshot": "^4.0.0", diff --git a/renderers/server/package.json b/renderers/server/package.json index 4116bc5d8650..c927f65983bb 100644 --- a/renderers/server/package.json +++ b/renderers/server/package.json @@ -46,6 +46,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -61,7 +62,8 @@ "ts-dedent": "^2.0.0" }, "devDependencies": { - "@digitak/esrun": "^3.2.2" + "@digitak/esrun": "^3.2.2", + "typescript": "~4.6.3" }, "engines": { "node": ">=10.13.0" diff --git a/renderers/svelte/package.json b/renderers/svelte/package.json index 1341beac4ad9..3ffc5bdd004e 100644 --- a/renderers/svelte/package.json +++ b/renderers/svelte/package.json @@ -50,6 +50,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -67,7 +68,8 @@ }, "devDependencies": { "@digitak/esrun": "^3.2.2", - "svelte": "^3.31.2" + "svelte": "^3.31.2", + "typescript": "~4.6.3" }, "peerDependencies": { "@babel/core": "*", diff --git a/renderers/vue/package.json b/renderers/vue/package.json index 1460fa35b403..a6c63095148d 100644 --- a/renderers/vue/package.json +++ b/renderers/vue/package.json @@ -46,6 +46,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -63,6 +64,7 @@ }, "devDependencies": { "@digitak/esrun": "^3.2.2", + "typescript": "~4.6.3", "vue": "^2.6.12" }, "peerDependencies": { diff --git a/renderers/vue3/package.json b/renderers/vue3/package.json index 6f43269cc4af..78dccd62f030 100644 --- a/renderers/vue3/package.json +++ b/renderers/vue3/package.json @@ -47,6 +47,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -63,6 +64,7 @@ }, "devDependencies": { "@digitak/esrun": "^3.2.2", + "typescript": "~4.6.3", "vue": "3.0.0" }, "peerDependencies": { diff --git a/renderers/web-components/package.json b/renderers/web-components/package.json index ddc332386616..83116c072e76 100644 --- a/renderers/web-components/package.json +++ b/renderers/web-components/package.json @@ -48,6 +48,7 @@ "*.d.ts" ], "scripts": { + "check": "tsc --noEmit", "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { @@ -67,7 +68,8 @@ }, "devDependencies": { "@digitak/esrun": "^3.2.2", - "lit-html": "2.0.2" + "lit-html": "2.0.2", + "typescript": "~4.6.3" }, "peerDependencies": { "lit-html": "^1.4.1 || ^2.0.0" diff --git a/scripts/check-package.js b/scripts/check-package.js new file mode 100644 index 000000000000..fa91559614d0 --- /dev/null +++ b/scripts/check-package.js @@ -0,0 +1,119 @@ +#!/usr/bin/env node + +/* eslint-disable global-require */ +const { resolve } = require('path'); +const { readJSON } = require('fs-extra'); + +const getStorybookPackages = async () => { + const workspaceJSON = await readJSON(resolve(__dirname, '..', 'workspace.json')); + return Object.entries(workspaceJSON.projects).map(([k, v]) => ({ location: v.root, name: k })); +}; + +async function run() { + const prompts = require('prompts'); + const program = require('commander'); + const chalk = require('chalk'); + + const packages = await getStorybookPackages(); + const packageTasks = packages + .map((package) => { + return { + ...package, + suffix: package.name.replace('@storybook/', ''), + defaultValue: false, + helpText: `check only the ${package.name} package`, + }; + }) + .reduce((acc, next) => { + acc[next.name] = next; + return acc; + }, {}); + + const tasks = { + watch: { + name: `watch`, + defaultValue: false, + suffix: '--watch', + helpText: 'check on watch mode', + }, + ...packageTasks, + }; + + const main = program.version('5.0.0').option('--all', `check everything ${chalk.gray('(all)')}`); + + Object.keys(tasks) + .reduce((acc, key) => acc.option(tasks[key].suffix, tasks[key].helpText), main) + .parse(process.argv); + + Object.keys(tasks).forEach((key) => { + // checks if a flag is passed e.g. yarn check --@storybook/addon-docs --watch + const containsFlag = program.rawArgs.includes(tasks[key].suffix); + tasks[key].value = containsFlag || program.all; + }); + + let selection; + let watchMode = false; + if ( + !Object.keys(tasks) + .map((key) => tasks[key].value) + .filter(Boolean).length + ) { + selection = await prompts([ + { + type: 'toggle', + name: 'mode', + message: 'Start in watch mode', + initial: false, + active: 'yes', + inactive: 'no', + }, + { + type: 'autocompleteMultiselect', + message: 'Select the packages to check', + name: 'todo', + min: 1, + hint: 'You can also run directly with package name like `yarn check core`, or `yarn check --all` for all packages!', + optionsPerPage: require('window-size').height - 3, // 3 lines for extra info + choices: packages.map(({ name: key }) => ({ + value: key, + title: tasks[key].name || key, + selected: (tasks[key] && tasks[key].defaultValue) || false, + })), + }, + ]).then(({ mode, todo }) => { + watchMode = mode; + return todo?.map((key) => tasks[key]); + }); + } else { + // hits here when running yarn check --packagename + watchMode = process.argv.includes('--watch'); + selection = Object.keys(tasks) + .map((key) => tasks[key]) + .filter((item) => item.name !== 'watch' && item.value === true); + } + + selection?.filter(Boolean).forEach(async (v) => { + const commmand = (await readJSON(resolve(v.location, 'package.json'))).scripts.check; + const cwd = resolve(__dirname, '..', v.location); + const sub = require('execa').command(`yarn ${commmand}${watchMode ? ' --watch' : ''}`, { + cwd, + buffer: false, + shell: true, + env: { + NODE_ENV: 'production', + }, + }); + + sub.stdout.on('data', (data) => { + process.stdout.write(`${chalk.cyan(v.name)}:\n${data}`); + }); + sub.stderr.on('data', (data) => { + process.stderr.write(`${chalk.red(v.name)}:\n${data}`); + }); + }); +} + +run().catch((e) => { + console.log(e); + process.exit(1); +}); diff --git a/yarn.lock b/yarn.lock index 23f57619c356..4f6e9aad6413 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6947,6 +6947,7 @@ __metadata: lodash: ^4.17.21 react-sizeme: ^3.0.1 ts-dedent: ^2.0.0 + typescript: ~4.6.3 util-deprecate: ^1.0.2 peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -6980,6 +6981,7 @@ __metadata: react-inspector: ^5.1.0 telejson: ^6.0.8 ts-dedent: ^2.0.0 + typescript: ~4.6.3 util-deprecate: ^1.0.2 uuid-browser: ^3.1.0 peerDependencies: @@ -7083,6 +7085,7 @@ __metadata: remark-external-links: ^8.0.0 remark-slug: ^6.0.0 ts-dedent: ^2.0.0 + typescript: ~4.6.3 util-deprecate: ^1.0.2 peerDependencies: "@storybook/mdx2-csf": ^0.0.3 @@ -7120,6 +7123,7 @@ __metadata: "@types/jest": ^26.0.16 core-js: ^3.8.2 ts-dedent: ^2.0.0 + typescript: ~4.6.3 peerDependencies: "@babel/core": ^7.9.6 peerDependenciesMeta: @@ -7159,6 +7163,7 @@ __metadata: "@types/webpack-env": ^1.16.0 core-js: ^3.8.2 global: ^4.4.0 + typescript: ~4.6.3 languageName: unknown linkType: soft @@ -7184,6 +7189,7 @@ __metadata: jest-mock: ^27.0.6 polished: ^4.2.2 ts-dedent: ^2.2.0 + typescript: ~4.6.3 peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -7315,6 +7321,7 @@ __metadata: "@types/puppeteer": ^5.4.0 core-js: ^3.8.2 jest-image-snapshot: ^4.3.0 + typescript: ~4.6.3 peerDependencies: "@storybook/addon-storyshots": 7.0.0-alpha.8 puppeteer: ^2.0.0 || ^3.0.0 @@ -7362,6 +7369,7 @@ __metadata: read-pkg-up: ^7.0.1 rxjs: ^6.6.3 ts-dedent: ^2.0.0 + typescript: ~4.6.3 vue-jest: ^5.0.0-alpha.8 peerDependencies: "@angular/core": ">=6.0.0" @@ -7431,6 +7439,7 @@ __metadata: estraverse: ^5.2.0 prop-types: ^15.7.2 react-syntax-highlighter: ^15.4.5 + typescript: ~4.6.3 peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -7685,6 +7694,7 @@ __metadata: store2: ^2.12.0 telejson: ^6.0.8 ts-dedent: ^2.0.0 + typescript: ~4.6.3 util-deprecate: ^1.0.2 peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -7836,6 +7846,7 @@ __metadata: fs-extra: ^9.0.1 readdirp: ^3.6.0 rollup-plugin-node-polyfills: ^0.2.1 + typescript: ~4.6.3 languageName: unknown linkType: soft @@ -7883,6 +7894,7 @@ __metadata: style-loader: ^3.3.1 terser-webpack-plugin: ^5.3.1 ts-dedent: ^2.0.0 + typescript: ~4.6.3 util: ^0.12.4 util-deprecate: ^1.0.2 webpack: 5 @@ -8008,6 +8020,7 @@ __metadata: shelljs: ^0.8.5 strip-json-comments: ^3.1.1 ts-dedent: ^2.0.0 + typescript: ~4.6.3 update-notifier: ^5.0.1 bin: getstorybook: ./bin/index.js @@ -8101,6 +8114,7 @@ __metadata: lodash: ^4.17.21 prettier: ">=2.2.1 <=2.3.0" recast: ^0.19.0 + typescript: ~4.6.3 languageName: unknown linkType: soft @@ -8135,6 +8149,7 @@ __metadata: react-syntax-highlighter: ^15.4.5 react-textarea-autosize: ^8.3.0 ts-dedent: ^2.0.0 + typescript: ~4.6.3 util-deprecate: ^1.0.2 peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -8230,6 +8245,7 @@ __metadata: slash: ^3.0.0 telejson: ^6.0.8 ts-dedent: ^2.0.0 + typescript: ~4.6.3 util-deprecate: ^1.0.2 peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -8323,6 +8339,7 @@ __metadata: slash: ^3.0.0 telejson: ^6.0.8 ts-dedent: ^2.0.0 + typescript: ~4.6.3 util-deprecate: ^1.0.2 watchpack: ^2.2.0 webpack: 5 @@ -8370,6 +8387,7 @@ __metadata: global: ^4.4.0 js-yaml: ^3.14.1 ts-dedent: ^2.0.0 + typescript: ~4.6.3 languageName: unknown linkType: soft @@ -8456,6 +8474,7 @@ __metadata: jest-specific-snapshot: ^4.0.0 lodash: ^4.17.21 require-from-string: ^2.0.2 + typescript: ~4.6.3 languageName: unknown linkType: soft @@ -8486,6 +8505,7 @@ __metadata: react-dom: 16.14.0 read-pkg-up: ^7.0.1 ts-dedent: ^2.0.0 + typescript: ~4.6.3 peerDependencies: "@babel/core": "*" babel-plugin-ember-modules-api-polyfill: ^2.12.0 @@ -8622,6 +8642,7 @@ __metadata: global: ^4.4.0 react: 16.14.0 react-dom: 16.14.0 + typescript: ~4.6.3 peerDependencies: "@babel/core": "*" languageName: unknown @@ -8643,6 +8664,7 @@ __metadata: react: 16.14.0 react-dom: 16.14.0 ts-dedent: ^2.0.0 + typescript: ~4.6.3 peerDependencies: "@babel/core": "*" languageName: unknown @@ -8782,6 +8804,7 @@ __metadata: core-js: ^3.8.2 npmlog: ^5.0.1 pretty-hrtime: ^1.0.3 + typescript: ~4.6.3 languageName: unknown linkType: soft @@ -8806,6 +8829,7 @@ __metadata: jest: ^26.6.3 jest-specific-snapshot: ^4.0.0 jscodeshift: ^0.13.1 + typescript: ~4.6.3 languageName: unknown linkType: soft @@ -8823,6 +8847,7 @@ __metadata: preact: ^10.5.13 react: 16.14.0 react-dom: 16.14.0 + typescript: ~4.6.3 peerDependencies: "@babel/core": "*" preact: ^8.0.0||^10.0.0 @@ -8844,6 +8869,7 @@ __metadata: react: 16.14.0 react-dom: 16.14.0 ts-dedent: ^2.0.0 + typescript: ~4.6.3 peerDependencies: preact: ^8.0.0||^10.0.0 languageName: unknown @@ -8879,6 +8905,7 @@ __metadata: html-loader: ^3.1.0 react: 16.14.0 react-dom: 16.14.0 + typescript: ~4.6.3 webpack: 5 peerDependencies: "@babel/core": "*" @@ -8897,6 +8924,7 @@ __metadata: preact: ^10.5.13 react: 16.14.0 react-dom: 16.14.0 + typescript: ~4.6.3 peerDependencies: "@babel/core": "*" preact: ^8.0.0||^10.0.0 @@ -8924,6 +8952,7 @@ __metadata: core-js: ^3.8.2 fs-extra: ^9.0.1 react-refresh: ^0.11.0 + typescript: ~4.6.3 peerDependencies: "@babel/core": ^7.11.5 jest-specific-snapshot: ^4.0.0 @@ -8967,6 +8996,7 @@ __metadata: react-dom: 16.14.0 safe-identifier: ^0.4.1 ts-dedent: ^2.0.0 + typescript: ~4.6.3 yaml: ^1.10.0 yaml-loader: ^0.8.0 languageName: unknown @@ -8986,6 +9016,7 @@ __metadata: svelte-loader: ^3.1.2 sveltedoc-parser: 4.1.0 ts-dedent: ^2.0.0 + typescript: ~4.6.3 peerDependencies: "@babel/core": "*" svelte: ^3.1.0 @@ -9005,6 +9036,7 @@ __metadata: react: 16.14.0 react-dom: 16.14.0 ts-loader: ^9.2.8 + typescript: ~4.6.3 vue: ^2.6.12 vue-docgen-api: ^4.44.23 vue-docgen-loader: ^1.5.1 @@ -9034,6 +9066,7 @@ __metadata: react: 16.14.0 react-dom: 16.14.0 ts-loader: ^9.2.8 + typescript: ~4.6.3 vue: ^3.2.33 vue-docgen-api: ^4.46.0 vue-docgen-loader: ^1.5.1 @@ -9063,6 +9096,7 @@ __metadata: lit-html: 2.0.2 react: 16.14.0 react-dom: 16.14.0 + typescript: ~4.6.3 peerDependencies: lit-html: ^1.4.1 || ^2.0.0 languageName: unknown @@ -9118,6 +9152,7 @@ __metadata: "@types/node": ^14.14.20 || ^16.0.0 core-js: ^3.8.2 jest-specific-snapshot: ^4.0.0 + typescript: ~4.6.3 peerDependencies: "@babel/core": ^7.11.5 react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -9156,6 +9191,7 @@ __metadata: prop-types: ^15.7.2 react-element-to-jsx-string: ^14.3.4 ts-dedent: ^2.0.0 + typescript: ~4.6.3 util-deprecate: ^1.0.2 peerDependencies: jest-specific-snapshot: ^4.0.0 @@ -9455,6 +9491,7 @@ __metadata: react-router-dom: 6.0.2 ts-dedent: ^2.0.0 ts-node: ^10.4.0 + typescript: ~4.6.3 peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -9538,6 +9575,7 @@ __metadata: core-js: ^3.8.2 react: 16.14.0 react-dom: 16.14.0 + typescript: ~4.6.3 languageName: unknown linkType: soft @@ -9556,6 +9594,7 @@ __metadata: react: 16.14.0 react-dom: 16.14.0 ts-dedent: ^2.0.0 + typescript: ~4.6.3 languageName: unknown linkType: soft @@ -9615,6 +9654,7 @@ __metadata: react-dom: 16.14.0 svelte: ^3.48.0 svelte-loader: ^3.1.2 + typescript: ~4.6.3 peerDependencies: "@babel/core": "*" svelte: ^3.48.0 @@ -9639,6 +9679,7 @@ __metadata: react-dom: 16.14.0 svelte: ^3.31.2 sveltedoc-parser: 4.1.0 + typescript: ~4.6.3 peerDependencies: "@babel/core": "*" svelte: ^3.1.0 @@ -9707,6 +9748,7 @@ __metadata: polished: ^4.2.2 ts-dedent: ^2.0.0 ts-node: ^10.4.0 + typescript: ~4.6.3 peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -9806,6 +9848,7 @@ __metadata: resolve-from: ^5.0.0 store2: ^2.12.0 ts-dedent: ^2.0.0 + typescript: ~4.6.3 util: ^0.12.4 languageName: unknown linkType: soft @@ -9823,6 +9866,7 @@ __metadata: core-js: ^3.8.2 react: 16.14.0 react-dom: 16.14.0 + typescript: ~4.6.3 vue: ^2.6.12 vue-loader: ^15.7.0 vue-template-compiler: ^2.6.14 @@ -9850,6 +9894,7 @@ __metadata: core-js: ^3.8.2 react: 16.14.0 react-dom: 16.14.0 + typescript: ~4.6.3 vue: 3.0.0 peerDependencies: "@babel/core": "*" @@ -9874,6 +9919,7 @@ __metadata: react: 16.14.0 react-dom: 16.14.0 ts-dedent: ^2.0.0 + typescript: ~4.6.3 vue: 3.0.0 peerDependencies: "@babel/core": "*" @@ -9898,6 +9944,7 @@ __metadata: react: 16.14.0 react-dom: 16.14.0 ts-dedent: ^2.0.0 + typescript: ~4.6.3 vue: ^2.6.12 peerDependencies: "@babel/core": "*" @@ -9922,6 +9969,7 @@ __metadata: lit-html: 2.0.2 react: 16.14.0 react-dom: 16.14.0 + typescript: ~4.6.3 peerDependencies: lit-html: ^1.4.1 || ^2.0.0 languageName: unknown @@ -9946,6 +9994,7 @@ __metadata: react: 16.14.0 react-dom: 16.14.0 ts-dedent: ^2.0.0 + typescript: ~4.6.3 peerDependencies: lit-html: ^1.4.1 || ^2.0.0 languageName: unknown