From 739ecfcd9642f349556b6726d24775b4ad8f192b Mon Sep 17 00:00:00 2001 From: Harry Hogg Date: Sat, 5 Oct 2024 08:52:48 +0100 Subject: [PATCH] chore(dev): Run prettier on pictograms after generation --- workspaces/package/vite.config.ts | 5 +---- workspaces/site/package.json | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/workspaces/package/vite.config.ts b/workspaces/package/vite.config.ts index de898e07..823bb985 100644 --- a/workspaces/package/vite.config.ts +++ b/workspaces/package/vite.config.ts @@ -5,10 +5,7 @@ import dts from 'vite-plugin-dts'; // https://vitejs.dev/config/ export default defineConfig(() => ({ - plugins: [ - react(), - dts(), - ], + plugins: [react(), dts()], build: { sourcemap: true, lib: { diff --git a/workspaces/site/package.json b/workspaces/site/package.json index d4a0b463..1d3a16c3 100644 --- a/workspaces/site/package.json +++ b/workspaces/site/package.json @@ -9,7 +9,7 @@ "build": "yarn run build:client && yarn run build:server && yarn run ssg", "build:client": "vite build --outDir dist/client", "build:svgs": "yarn build:svgs:pictograms", - "build:svgs:pictograms": "yarn svgr -d ./src/docs/catalog/pictograms ./src/assets/pictogram-svgs --ext tsx --config-file .svgrrc.pictograms.cjs", + "build:svgs:pictograms": "yarn svgr -d ./src/docs/catalog/pictograms ./src/assets/pictogram-svgs --ext tsx --config-file .svgrrc.pictograms.cjs && prettier --write ./src/docs/catalog/pictograms/*.tsx", "build:server": "vite build --ssr src/entry-server.tsx --outDir dist/server", "serve": "superstatic dist/client --port 8080 --host 127.0.0.1", "ssg": "node prerender"