Skip to content

Commit

Permalink
feat(create-vite): add type: module to all templates (#8251)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 23, 2022
1 parent 30a7acc commit c3ec60c
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/create-vite/template-lit-ts/package.json
Expand Up @@ -2,6 +2,7 @@
"name": "vite-lit-ts-starter",
"private": true,
"version": "0.0.0",
"type": "module",
"main": "dist/my-element.es.mjs",
"exports": {
".": "./dist/my-element.es.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/create-vite/template-lit/package.json
Expand Up @@ -2,6 +2,7 @@
"name": "vite-lit-starter",
"private": true,
"version": "0.0.0",
"type": "module",
"main": "dist/my-element.es.mjs",
"exports": {
".": "./dist/my-element.es.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/create-vite/template-preact-ts/package.json
Expand Up @@ -2,6 +2,7 @@
"name": "vite-preact-ts-starter",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
Expand Down
1 change: 1 addition & 0 deletions packages/create-vite/template-preact/package.json
Expand Up @@ -2,6 +2,7 @@
"name": "vite-preact-starter",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down
1 change: 1 addition & 0 deletions packages/create-vite/template-react-ts/package.json
Expand Up @@ -2,6 +2,7 @@
"name": "vite-react-typescript-starter",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
Expand Down
1 change: 1 addition & 0 deletions packages/create-vite/template-react/package.json
Expand Up @@ -2,6 +2,7 @@
"name": "vite-react-starter",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down
1 change: 1 addition & 0 deletions packages/create-vite/template-vanilla-ts/package.json
Expand Up @@ -2,6 +2,7 @@
"name": "vite-typescript-starter",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
Expand Down
1 change: 1 addition & 0 deletions packages/create-vite/template-vanilla/package.json
Expand Up @@ -2,6 +2,7 @@
"name": "vite-starter",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down
1 change: 1 addition & 0 deletions packages/create-vite/template-vue-ts/package.json
Expand Up @@ -2,6 +2,7 @@
"name": "vite-vue-typescript-starter",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
Expand Down
1 change: 1 addition & 0 deletions packages/create-vite/template-vue/package.json
Expand Up @@ -2,6 +2,7 @@
"name": "vite-vue-starter",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down

0 comments on commit c3ec60c

Please sign in to comment.