diff --git a/www/package.json b/www/package.json index 45c4e4d82..85153d671 100644 --- a/www/package.json +++ b/www/package.json @@ -32,8 +32,10 @@ "license": "MIT", "main": "n/a", "scripts": { - "copybuild": "mkdirp public/dist && cpy ../dist/*.js public/dist", - "build": "npm run copybuild && gatsby build", + "copy:build": "mkdirp public/dist && cpy ../dist/*.js public/dist", + "copy:src": "mkdirp public/src && cpy ../src/**/*.ts public/src --parents", + "copy": "npm run copy:build && npm run copy:src", + "build": "npm run copy && gatsby build", "start": "gatsby develop", "test": "echo \"Error: no test specified\" && exit 1" }