Hacky fix for pnpm issue

This commit is contained in:
Sidharth Vinod 2022-11-11 02:41:03 +05:30
parent ab92b5c100
commit 1f68ea4058
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
4 changed files with 2945 additions and 1134 deletions

View File

@ -4,7 +4,7 @@
"version": "9.2.2",
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",
"type": "module",
"packageManager": "pnpm@7.13.2",
"packageManager": "pnpm@7.15.0",
"keywords": [
"diagram",
"markdown",
@ -41,6 +41,7 @@
"test:coverage": "vitest --coverage",
"prepublishOnly": "pnpm build && pnpm test",
"prepare": "concurrently \"husky install\" \"pnpm build\"",
"postinstall": "./scripts/fixPnpmLock.sh",
"pre-commit": "lint-staged"
},
"repository": {
@ -101,7 +102,7 @@
"jsdom": "^20.0.1",
"lint-staged": "^13.0.3",
"markdown-it": "^13.0.1",
"pnpm": "^7.13.2",
"pnpm": "^7.15.0",
"prettier": "^2.7.1",
"prettier-plugin-jsdoc": "^0.4.2",
"remark": "^14.0.2",

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
packages:
# all packages in direct subdirs of packages/
- 'packages/*'
# - 'tests/*'
- 'tests/*'

3
scripts/fixPnpmLock.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
sed "/mermaid: ''/d" pnpm-lock.yaml > temp.yaml;
mv temp.yaml pnpm-lock.yaml