From 9e8ac0c367522922b5d8442b5a3cc508666978af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=B6=E8=BF=9C=E6=96=B9?= Date: Tue, 12 Mar 2024 21:46:26 +0800 Subject: [PATCH] chore(playground): save `tsconfig.json` to the root directory; update Node.js version requirement (#9086) Co-authored-by: Haoqun Jiang --- packages/sfc-playground/src/download/download.ts | 2 +- packages/sfc-playground/src/download/template/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sfc-playground/src/download/download.ts b/packages/sfc-playground/src/download/download.ts index f981134a701..28d836edb11 100644 --- a/packages/sfc-playground/src/download/download.ts +++ b/packages/sfc-playground/src/download/download.ts @@ -27,7 +27,7 @@ export async function downloadProject(store: ReplStore) { const files = store.getFiles() for (const file in files) { - if (file !== 'import-map.json') { + if (file !== 'import-map.json' && file !== 'tsconfig.json') { src.file(file, files[file]) } else { zip.file(file, files[file]) diff --git a/packages/sfc-playground/src/download/template/README.md b/packages/sfc-playground/src/download/template/README.md index 39c47d255ae..9c43370cb8a 100644 --- a/packages/sfc-playground/src/download/template/README.md +++ b/packages/sfc-playground/src/download/template/README.md @@ -1,6 +1,6 @@ # Vite Vue Starter -This is a project template using [Vite](https://vitejs.dev/). It requires [Node.js](https://nodejs.org) v12+. +This is a project template using [Vite](https://vitejs.dev/). It requires [Node.js](https://nodejs.org) version 18+, 20+. To start: