chore: Copy readme before publish

This commit is contained in:
Sidharth Vinod 2024-08-22 15:45:20 +05:30
parent c892a89536
commit c4b92069ba
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
3 changed files with 7 additions and 8 deletions

View File

@ -24,8 +24,9 @@
"dev": "tsx .esbuild/server.ts",
"dev:vite": "tsx .vite/server.ts",
"dev:coverage": "pnpm coverage:cypress:clean && VITE_COVERAGE=true pnpm dev:vite",
"copy-readme": "cpy './README.*' ./packages/mermaid/ --cwd=.",
"changeset:version": "changeset version && pnpm build && pnpm --filter mermaid run docs:release-version && pnpm --filter mermaid run docs:build && git add --all",
"changeset:publish": "changeset publish",
"changeset:publish": "pnpm copy-readme && changeset publish",
"lint": "eslint --quiet --stats --cache --cache-strategy content . && pnpm lint:jison && prettier --cache --check .",
"lint:fix": "eslint --cache --cache-strategy content --fix . && prettier --write . && tsx scripts/fixCSpell.ts",
"lint:jison": "tsx ./scripts/jison/lint.mts",
@ -83,6 +84,7 @@
"chokidar": "^3.6.0",
"concurrently": "^8.2.2",
"cors": "^2.8.5",
"cpy-cli": "^5.0.0",
"cross-env": "^7.0.3",
"cspell": "^8.6.0",
"cypress": "^13.11.0",

View File

@ -47,9 +47,7 @@
"docs:verify-version": "tsx scripts/update-release-version.mts --verify",
"types:build-config": "tsx scripts/create-types-from-json-schema.mts",
"types:verify-config": "tsx scripts/create-types-from-json-schema.mts --verify",
"checkCircle": "npx madge --circular ./src",
"release": "pnpm build",
"prepublishOnly": "cpy '../../README.*' ./ --cwd=. && pnpm docs:release-version && pnpm -w run build"
"checkCircle": "npx madge --circular ./src"
},
"repository": {
"type": "git",
@ -106,7 +104,6 @@
"ajv": "^8.12.0",
"chokidar": "^3.6.0",
"concurrently": "^8.2.2",
"cpy-cli": "^5.0.0",
"csstree-validator": "^3.0.0",
"globby": "^14.0.1",
"jison": "^0.4.18",

6
pnpm-lock.yaml generated
View File

@ -74,6 +74,9 @@ importers:
cors:
specifier: ^2.8.5
version: 2.8.5
cpy-cli:
specifier: ^5.0.0
version: 5.0.0
cross-env:
specifier: ^7.0.3
version: 7.0.3
@ -312,9 +315,6 @@ importers:
concurrently:
specifier: ^8.2.2
version: 8.2.2
cpy-cli:
specifier: ^5.0.0
version: 5.0.0
csstree-validator:
specifier: ^3.0.0
version: 3.0.0