Fix storybook after TS changes (https://github.com/woocommerce/woocommerce-blocks/pull/3938)
This commit is contained in:
parent
aa8e19b12e
commit
29dd816e1d
|
@ -12,7 +12,7 @@ const {
|
|||
getMainConfig,
|
||||
getStylingConfig,
|
||||
} = require( '../bin/webpack-configs.js' );
|
||||
const tsConfig = require( '../tsconfig.json' );
|
||||
const tsConfig = require( '../tsconfig.base.json' );
|
||||
|
||||
const aliases = Object.keys( tsConfig.compilerOptions.paths ).reduce(
|
||||
( acc, key ) => {
|
||||
|
|
|
@ -6,10 +6,8 @@
|
|||
"baseUrl": ".",
|
||||
"module": "esnext",
|
||||
"emitDeclarationOnly": true,
|
||||
// Import non-ES modules as default imports.
|
||||
"esModuleInterop": true,
|
||||
"resolveJsonModule": true,
|
||||
// Preserve JSX, allows compatibility with wp-element jsx babel transforms
|
||||
"jsx": "preserve",
|
||||
"target": "esnext",
|
||||
"allowJs": true,
|
||||
|
@ -41,6 +39,7 @@
|
|||
"@woocommerce/block-hocs": [ "assets/js/hocs" ],
|
||||
"@woocommerce/blocks-registry": [ "assets/js/blocks-registry" ],
|
||||
"@woocommerce/blocks-checkout": [ "packages/checkout" ],
|
||||
"@woocommerce/price-format": [ "packages/prices" ],
|
||||
"@woocommerce/block-settings": [ "assets/js/settings/blocks" ],
|
||||
"@woocommerce/e2e-tests": [ "node_modules/woocommerce/tests/e2e" ],
|
||||
"@woocommerce/icons": [ "assets/js/icons" ],
|
||||
|
|
Loading…
Reference in New Issue