Skip to content

Commit

Permalink
fix: revert directory mapping of node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
keonik authored Oct 15, 2021
1 parent 9bf8d57 commit b090a83
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ generator erd {

Extensions

- svg (default: `./prisma/ERD.svg`)
- png
- pdf
- md
- svg (default: `./prisma/ERD.svg`)
- png
- pdf
- md

### Theme

Theme selection
Expand All @@ -64,7 +65,7 @@ generator erd {

Options

- default (default)
- forest
- dark
- neutral
- default (default)
- forest
- dark
- neutral
4 changes: 2 additions & 2 deletions package-lock.json

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

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.5.0",
"version": "0.5.2-0",
"license": "MIT",
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
Expand Down Expand Up @@ -61,8 +61,7 @@
"@babel/preset-typescript": "^7.15.0"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown",
"**/*.ts": "npm run unit:test"
"**/*": "prettier --write --ignore-unknown"
},
"dependencies": {
"@mermaid-js/mermaid-cli": "^8.13.2",
Expand Down
2 changes: 1 addition & 1 deletion src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default async (options: GeneratorOptions) => {
);

const mermaidCliNodePath = path.resolve(
path.join(__dirname, '../node_modules', '.bin', 'mmdc')
path.join('node_modules', '.bin', 'mmdc')
);

child_process.execSync(
Expand Down

0 comments on commit b090a83

Please sign in to comment.