From ac17f69eab001070ed4dafddd4bd7a3b2062401e Mon Sep 17 00:00:00 2001 From: riccardoperra Date: Sat, 14 Sep 2024 11:37:34 +0200 Subject: [PATCH] add setup job action --- apps/website/tsconfig.json | 2 +- packages/highlight/rollup.config.js | 4 ++++ pnpm-lock.yaml | 14 +++++++------- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/apps/website/tsconfig.json b/apps/website/tsconfig.json index 4801983cc..98dd0451e 100644 --- a/apps/website/tsconfig.json +++ b/apps/website/tsconfig.json @@ -13,5 +13,5 @@ "paths": { "~/*": ["./src/*"] } - } + }, } diff --git a/packages/highlight/rollup.config.js b/packages/highlight/rollup.config.js index 1e4dc1762..fbc803cf3 100644 --- a/packages/highlight/rollup.config.js +++ b/packages/highlight/rollup.config.js @@ -56,6 +56,10 @@ export default defineConfig({ entryFileNames: source => { const path = normalize(source.facadeModuleId).replaceAll('\\', '/'); if (source.isEntry) { + if (source.name === 'index') { + return '[name].js'; + } + const theme = themes.find(_ => path.includes(`lib/themes/${_}`)); if (theme) { return `lib/themes/${theme}/index.js` diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0ca37293c..331968b65 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13352,8 +13352,8 @@ snapshots: dependencies: '@vanilla-extract/integration': 6.0.1 outdent: 0.8.0 - postcss: 8.4.33 - postcss-load-config: 3.1.4(postcss@8.4.33)(ts-node@10.9.1(@types/node@20.12.7)(typescript@5.3.2)) + postcss: 8.4.45 + postcss-load-config: 3.1.4(postcss@8.4.45)(ts-node@10.9.1(@types/node@20.12.7)(typescript@5.3.2)) vite: 3.2.5(@types/node@20.12.7)(sass@1.61.0)(terser@5.17.1) transitivePeerDependencies: - babel-plugin-macros @@ -17721,21 +17721,21 @@ snapshots: possible-typed-array-names@1.0.0: {} - postcss-load-config@3.1.4(postcss@8.4.33)(ts-node@10.9.1(@types/node@20.12.7)(typescript@5.3.2)): + postcss-load-config@3.1.4(postcss@8.4.45)(ts-node@10.9.1(@types/node@18.16.17)(typescript@5.3.2)): dependencies: lilconfig: 2.1.0 yaml: 1.10.2 optionalDependencies: - postcss: 8.4.33 - ts-node: 10.9.1(@types/node@20.12.7)(typescript@5.3.2) + postcss: 8.4.45 + ts-node: 10.9.1(@types/node@18.16.17)(typescript@5.3.2) - postcss-load-config@3.1.4(postcss@8.4.45)(ts-node@10.9.1(@types/node@18.16.17)(typescript@5.3.2)): + postcss-load-config@3.1.4(postcss@8.4.45)(ts-node@10.9.1(@types/node@20.12.7)(typescript@5.3.2)): dependencies: lilconfig: 2.1.0 yaml: 1.10.2 optionalDependencies: postcss: 8.4.45 - ts-node: 10.9.1(@types/node@18.16.17)(typescript@5.3.2) + ts-node: 10.9.1(@types/node@20.12.7)(typescript@5.3.2) postcss-load-config@4.0.2(postcss@8.4.33)(ts-node@10.9.1(@types/node@18.11.0)(typescript@5.3.2)): dependencies: