Hacky fix for pnpm issue

This commit is contained in:
Sidharth Vinod
2022-11-11 02:41:03 +05:30
parent ab92b5c100
commit 1f68ea4058
4 changed files with 2945 additions and 1134 deletions

View File

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

4069
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,4 @@
packages: packages:
# all packages in direct subdirs of packages/ # all packages in direct subdirs of packages/
- '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