diff --git a/package.json b/package.json index 16c3f11..0f22038 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,10 @@ "main": "n/a", "scripts": { "develop": "gatsby develop", - "build": "npm run clean & gatsby build & copy", + "build": "gatsby build", "clean:public": "rm -rf public", "clean": "npm run clean:public", - "copy:files": "cp pages/*.{pdf,txt,png,jpg,jpeg,gif} public/", + "copy:files": "find ./pages -maxdepth 1 -type f -regextype posix-extended -regex '.+\\.(pdf|txt|png|jpg|jpeg|gif)$' -exec cp -v {} ./public ';'", "copy": "npm run copy:files", "lint": "./node_modules/.bin/eslint --ext .js,.jsx --ignore-pattern public .", "test": "echo \"Error: no test specified\" && exit 1",