Skip to content

Commit

Permalink
updated build config for storybook / tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
dfee committed Dec 21, 2018
1 parent 23676fb commit e0059c1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 94 deletions.
5 changes: 0 additions & 5 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
const path = require("path");

const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");

module.exports = (baseConfig, env, config) => {
config.module.rules.push(
{
Expand All @@ -17,8 +15,5 @@ module.exports = (baseConfig, env, config) => {
}
);
config.resolve.extensions.push(".ts", ".tsx");
config.resolve.plugins = [
new TsconfigPathsPlugin({ configFile: "tsconfig.json" })
];
return config;
};
80 changes: 1 addition & 79 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@
"resolve-url-loader": "3.0.0",
"rimraf": "^2.6.2",
"rollup": "^0.67.4",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-sass": "^0.9.3",
"rollup-plugin-size-snapshot": "^0.7.0",
"rollup-plugin-sourcemaps": "^0.4.2",
Expand All @@ -108,7 +107,6 @@
"ts-jest": "^23.10.5",
"ts-loader": "^5.3.1",
"ts-node": "^7.0.1",
"tsconfig-paths-webpack-plugin": "^3.2.0",
"tslib": "^1.9.3",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.17.0",
Expand Down
11 changes: 4 additions & 7 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import resolve from "rollup-plugin-node-resolve";
import sass from "rollup-plugin-sass";
import { sizeSnapshot } from "rollup-plugin-size-snapshot";
import sourceMaps from "rollup-plugin-sourcemaps";
Expand Down Expand Up @@ -35,15 +34,12 @@ export default {
}
],
plugins: [
resolve({
customResolveOptions: {
moduleDirectory: "compiled"
}
}),
sass({ output: "dist/index.css" }),
typescript({
tsconfig: "tsconfig.json",
tsconfigOverride: {
compilerOptions: {
declaration: true
},
include: ["src"],
exclude: [
"node_modules",
Expand All @@ -54,6 +50,7 @@ export default {
]
}
}),
sass({ output: "dist/index.css" }),
sizeSnapshot(),
sourceMaps()
]
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"declaration": true,
"esModuleInterop": true,
"jsx": "react",
"lib": ["es6", "dom"],
Expand Down

0 comments on commit e0059c1

Please sign in to comment.