Skip to content
This repository has been archived by the owner on Dec 5, 2018. It is now read-only.

Commit

Permalink
fix(alias): Added $PACKAGE_NAME as a valid alias for the current base…
Browse files Browse the repository at this point in the history
… dir
  • Loading branch information
Gitlab-CI committed Jul 30, 2018
1 parent b4b03c8 commit c88d2e4
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 28 deletions.
63 changes: 37 additions & 26 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
"lint-staged": "^4.1.3",
"pre-commit": "^1.2.2",
"raf": "^3.4.0",
"react-styleguidist": "^7.1.0",
"react-styleguidist": "^7.1.1",
"react-test-renderer": "^16.3.2",
"rollup": "^0.57.1",
"rollup-plugin-babel": "^3.0.3",
Expand All @@ -214,7 +214,7 @@
"rollup-plugin-uglify": "^3.0.0",
"rollup-plugin-visualizer": "^0.5.0",
"rollup-watch": "^4.3.1",
"semantic-release": "^15.8.0",
"semantic-release": "^15.8.1",
"sinon": "^2.3.2",
"toctoc": "^0.3.0"
},
Expand Down
1 change: 1 addition & 0 deletions src/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export default function createConfig(userConfig = {}, options = {}) {
],
resolve: {
alias: {
$PACKAGE_NAME: path.resolve(pkgBase),
[pkg.name]: path.resolve(pkgBase),
styleguide: path.resolve(styleguideBase),
},
Expand Down

0 comments on commit c88d2e4

Please sign in to comment.