From 4fba0ef387b7b5996c9c3e64f43719124a164f09 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sat, 21 May 2022 13:54:56 +0800 Subject: [PATCH] feat(create-vite): add `type: module` to all templates --- packages/create-vite/template-lit-ts/package.json | 1 + packages/create-vite/template-lit/package.json | 1 + packages/create-vite/template-preact-ts/package.json | 1 + packages/create-vite/template-preact/package.json | 1 + packages/create-vite/template-react-ts/package.json | 1 + packages/create-vite/template-react/package.json | 1 + packages/create-vite/template-vanilla-ts/package.json | 1 + packages/create-vite/template-vanilla/package.json | 1 + packages/create-vite/template-vue-ts/package.json | 1 + packages/create-vite/template-vue/package.json | 1 + 10 files changed, 10 insertions(+) diff --git a/packages/create-vite/template-lit-ts/package.json b/packages/create-vite/template-lit-ts/package.json index 40b05d66af64f2..2fb4d0fa8f87dd 100644 --- a/packages/create-vite/template-lit-ts/package.json +++ b/packages/create-vite/template-lit-ts/package.json @@ -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" diff --git a/packages/create-vite/template-lit/package.json b/packages/create-vite/template-lit/package.json index ca610090e22759..11ed30f62ba5ab 100644 --- a/packages/create-vite/template-lit/package.json +++ b/packages/create-vite/template-lit/package.json @@ -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" diff --git a/packages/create-vite/template-preact-ts/package.json b/packages/create-vite/template-preact-ts/package.json index dfff04ee49f099..3520c96d336090 100644 --- a/packages/create-vite/template-preact-ts/package.json +++ b/packages/create-vite/template-preact-ts/package.json @@ -2,6 +2,7 @@ "name": "vite-preact-ts-starter", "private": true, "version": "0.0.0", + "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", diff --git a/packages/create-vite/template-preact/package.json b/packages/create-vite/template-preact/package.json index 90cf6755ee8907..f553de26f761aa 100644 --- a/packages/create-vite/template-preact/package.json +++ b/packages/create-vite/template-preact/package.json @@ -2,6 +2,7 @@ "name": "vite-preact-starter", "private": true, "version": "0.0.0", + "type": "module", "scripts": { "dev": "vite", "build": "vite build", diff --git a/packages/create-vite/template-react-ts/package.json b/packages/create-vite/template-react-ts/package.json index 5a6ffff172f3ab..46bd2692cbd07e 100644 --- a/packages/create-vite/template-react-ts/package.json +++ b/packages/create-vite/template-react-ts/package.json @@ -2,6 +2,7 @@ "name": "vite-react-typescript-starter", "private": true, "version": "0.0.0", + "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", diff --git a/packages/create-vite/template-react/package.json b/packages/create-vite/template-react/package.json index 92f2dee91fdc48..c33619eb28b7e3 100644 --- a/packages/create-vite/template-react/package.json +++ b/packages/create-vite/template-react/package.json @@ -2,6 +2,7 @@ "name": "vite-react-starter", "private": true, "version": "0.0.0", + "type": "module", "scripts": { "dev": "vite", "build": "vite build", diff --git a/packages/create-vite/template-vanilla-ts/package.json b/packages/create-vite/template-vanilla-ts/package.json index 8dd9deee768e4c..a728cdde027dbf 100644 --- a/packages/create-vite/template-vanilla-ts/package.json +++ b/packages/create-vite/template-vanilla-ts/package.json @@ -2,6 +2,7 @@ "name": "vite-typescript-starter", "private": true, "version": "0.0.0", + "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", diff --git a/packages/create-vite/template-vanilla/package.json b/packages/create-vite/template-vanilla/package.json index b1ce70c284540f..2427afbe8f5a5e 100644 --- a/packages/create-vite/template-vanilla/package.json +++ b/packages/create-vite/template-vanilla/package.json @@ -2,6 +2,7 @@ "name": "vite-starter", "private": true, "version": "0.0.0", + "type": "module", "scripts": { "dev": "vite", "build": "vite build", diff --git a/packages/create-vite/template-vue-ts/package.json b/packages/create-vite/template-vue-ts/package.json index 38f22b1ff17513..4bc4b2bf2349c3 100644 --- a/packages/create-vite/template-vue-ts/package.json +++ b/packages/create-vite/template-vue-ts/package.json @@ -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", diff --git a/packages/create-vite/template-vue/package.json b/packages/create-vite/template-vue/package.json index dd12fbbfda53a9..8fb43bda0ebeac 100644 --- a/packages/create-vite/template-vue/package.json +++ b/packages/create-vite/template-vue/package.json @@ -2,6 +2,7 @@ "name": "vite-vue-starter", "private": true, "version": "0.0.0", + "type": "module", "scripts": { "dev": "vite", "build": "vite build",