From 836df04c53ae84c4e69d4424cb087e2fe266b6d6 Mon Sep 17 00:00:00 2001 From: Eimi Okuno Date: Wed, 11 Sep 2019 16:24:12 +0100 Subject: [PATCH] simplifying package command with /bin/cp -rf --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 19479bc1..743ab91c 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "build:storybook": "rimraf build && build-storybook -c .storybook -o build", "build:storybook:serve": "npx serve build", "deploy:ghpages": "rimraf build && npm run build:storybook && gh-pages -d build", - "pre:publish": "npm run build:component && rm ./dist/package.json || true && cp package.json ./dist/package.json && rm ./dist/README.md || true && cp README.md ./dist/README.md || true ", + "pre:publish": "npm run build:component && /bin/cp -rf package.json dist && /bin/cp -rf README.md dist", "publish:public": "npm run pre:publish && npm publish dist --access public", "publish:dry:run": "npm publish --dry-run" },