diff --git a/.prettierignore b/.prettierignore index b384c5ce..cc27166c 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,4 +2,5 @@ dist node_modules coverage -build \ No newline at end of file +build +/src/frontend/hooks/api-hooks.tsx diff --git a/Dockerfile b/Dockerfile index c982c326..f02ddcc5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,8 +29,6 @@ RUN \ COPY \ .parcelrc \ - .prettierignore \ - .prettierrc \ .sassrc \ .terserrc \ tsconfig.json \ @@ -51,6 +49,8 @@ ENV NODE_ENV=development COPY \ .gitignore \ + .prettierignore \ + .prettierrc \ .proxyrc \ docker-entrypoint.sh \ ./ diff --git a/package.json b/package.json index 524dc2d6..ee172df9 100644 --- a/package.json +++ b/package.json @@ -54,8 +54,7 @@ "build:scripts": "rimraf dist/scripts && npm run build:scripts:migrations && npm run build:scripts:init", "build:hooks:spec": "node dist/scripts/genSpec.js", "build:hooks:import": "restful-react import --file ./dist/openapi.json --output ./src/frontend/hooks/api-hooks.tsx", - "build:hooks:prettify": "prettier ./src/frontend/hooks/api-hooks.tsx --write", - "build:hooks": "npm run build:scripts:spec && npm run build:hooks:spec && npm run build:hooks:import && rimraf dist/openapi.json && npm run build:hooks:prettify", + "build:hooks": "npm run build:scripts:spec && npm run build:hooks:spec && npm run build:hooks:import && rimraf dist/openapi.json", "build:templates": "copyfiles -u 2 src/backend/templates/email/**/*.hbs dist/backend", "db": "mikro-orm", "db:migrations": "node dist/scripts/dbMigrations.js",