Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix storybook and jest build
dominik-zeglen7d70ebc5378f
diff --git a/package.json b/package.jsonindex 86c2ce5cf4..6edd7a0a2b 100644--- a/package.json+++ b/package.json@@ -196,7 +196,10 @@"jsx","json","node"- ]+ ],+ "moduleNameMapper": {+ "@saleor(.*)$": "<rootDir>/saleor/static/dashboard-next/$1"+ }},"scripts": {"build-assets": "webpack -p",diff --git a/saleor/static/dashboard-next/storybook/webpack.config.js b/saleor/static/dashboard-next/storybook/webpack.config.jsindex 340a93aa42..0d43178042 100644--- a/saleor/static/dashboard-next/storybook/webpack.config.js+++ b/saleor/static/dashboard-next/storybook/webpack.config.js@@ -1,5 +1,6 @@/* eslint-disable */-const CheckerPlugin = require('fork-ts-checker-webpack-plugin');+const CheckerPlugin = require("fork-ts-checker-webpack-plugin");+const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");module.exports = (baseConfig, env, config) => {config.module.rules.push({@@ -15,6 +16,11 @@ module.exports = (baseConfig, env, config) => {config.optimization.removeEmptyChunks = false;config.optimization.splitChunks = false;config.resolve.extensions.push(".ts", ".tsx");+ config.resolve.plugins = [+ new TsconfigPathsPlugin({+ configFile: "./tsconfig.json"+ })+ ];config.plugins.push(new CheckerPlugin());return config;};diff --git a/tsconfig.json b/tsconfig.jsonindex 2d421253eb..2781b9b124 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -8,8 +8,7 @@"noUnusedLocals": true,"noUnusedParameters": true,"paths": {- "@saleor-components/*": ["./saleor/static/dashboard-next/components/*"],- "@saleor-hooks/*": ["./saleor/static/dashboard-next/hooks/*"]+ "@saleor/*": ["./saleor/static/dashboard-next/*"]}},"exclude": ["node_modules"]diff --git a/tslint.json b/tslint.jsonindex 75592ca712..5d6525a200 100644--- a/tslint.json+++ b/tslint.json@@ -7,6 +7,6 @@"no-console": [true, "log"],"no-implicit-dependencies": false,"no-shadowed-variable": false,- "no-submodule-imports": [true, "@material-ui"]+ "no-submodule-imports": [true, "@material-ui", "@saleor"]}}