Skip to content

Commit e734e21

Browse files
committed
chore: tweak lit-element template
1 parent 830f3d3 commit e734e21

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

docs/guide/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ Supported template presets include:
3737
- `react-ts`
3838
- `preact`
3939
- `preact-ts`
40+
- `lit-element`
41+
- `lit-element-ts`
4042

4143
See [@vitejs/create-app](https://github.com/vitejs/vite/tree/main/packages/create-app) for more details on each template.
4244

packages/create-app/template-lit-element-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"scripts": {
1414
"dev": "vite",
15-
"build": "tsc --emitDeclarationOnly && vite build"
15+
"build": "tsc && vite build"
1616
},
1717
"dependencies": {
1818
"lit-element": "^2.4.0"

packages/create-app/template-lit-element-ts/tsconfig.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
"compilerOptions": {
33
"module": "esnext",
44
"lib": ["es2017", "dom", "dom.iterable"],
5-
"declaration": true,
6-
"declarationMap": true,
7-
"sourceMap": true,
5+
"types": ["vite/client"],
6+
"emitDeclarationOnly": true,
87
"outDir": "./types",
98
"rootDir": "./src",
109
"strict": true,

0 commit comments

Comments
 (0)