Skip to content

Commit

Permalink
Merge pull request #2006 from umbraco/v14/chore/bundle-health-check-p…
Browse files Browse the repository at this point in the history
…ackage

Chore: Bundle health check package
  • Loading branch information
leekelleher committed Jun 20, 2024
2 parents 631a217 + f157933 commit 5aa64c5
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
8 changes: 7 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@
"./src/packages/dictionary",
"./src/packages/language",
"./src/packages/umbraco-news",
"./src/packages/webhook"
"./src/packages/webhook",
"./src/packages/health-check"
],
"scripts": {
"backoffice:test:e2e": "npx playwright test",
Expand Down
1 change: 0 additions & 1 deletion src/packages/health-check/index.ts

This file was deleted.

8 changes: 8 additions & 0 deletions src/packages/health-check/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@umbraco-backoffice/health-check",
"private": true,
"type": "module",
"scripts": {
"build": "vite build"
}
}
12 changes: 12 additions & 0 deletions src/packages/health-check/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from 'vite';
import { rmSync } from 'fs';
import { getDefaultConfig } from '../../vite-config-base';

const dist = '../../../dist-cms/packages/health-check';

// delete the unbundled dist folder
rmSync(dist, { recursive: true, force: true });

export default defineConfig({
...getDefaultConfig({ dist, entry: ['manifests.ts', 'umbraco-package.ts'] }),
});

0 comments on commit 5aa64c5

Please sign in to comment.