From bfad6b3d090841a6bd08dd3277c6400fd47fc42f Mon Sep 17 00:00:00 2001 From: junners Date: Sat, 25 Jan 2025 22:08:30 -0800 Subject: [PATCH] chore: modify postversion for new publish directory structure --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 920c9fd..a16abe5 100644 --- a/package.json +++ b/package.json @@ -15,11 +15,11 @@ "prepare": "husky", "precommit": "lint-staged", "lint": "eslint {src,tests}", - "prepack": "npm run build && cp ./readme.md ./package.json ./src/index.d.ts ./out/src && cp -R ./media ./out/src", + "prepack": "npm run build && cp ./readme.md ./package*.json ./src/index.d.ts ./out/src && cp -R ./media ./out/src", "rollup": "rollup --config", "uglify": "uglifyjs dist/index.js --compress -o dist/index.min.js", "dist": "npm run rollup && npm run uglify", - "postversion": "cp package.json .. && cp package-lock.json .." + "postversion": "cp package.json ../.. && cp package-lock.json ../.." }, "keywords": [], "license": "MIT",