Skip to content

Commit 9b80e4d

Browse files
madsrasmusseniOvergaard
authored andcommitted
add package json + vite config
1 parent 33d8bd2 commit 9b80e4d

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

src/packages/dictionary/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "@umbraco-backoffice/dictionary",
3+
"private": true,
4+
"type": "module",
5+
"scripts": {
6+
"build": "vite build"
7+
}
8+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { defineConfig } from 'vite';
2+
import { rmSync } from 'fs';
3+
4+
const dist = '../../../dist-cms/packages/dictionary';
5+
6+
// delete the unbundled dist folder
7+
rmSync(dist, { recursive: true, force: true });
8+
9+
export default defineConfig({
10+
build: {
11+
lib: {
12+
entry: ['index.ts', 'manifests.ts', 'umbraco-package.ts'],
13+
formats: ['es'],
14+
},
15+
outDir: dist,
16+
//sourcemap: true,
17+
rollupOptions: {
18+
external: [/^@umbraco/],
19+
},
20+
},
21+
});

0 commit comments

Comments
 (0)