diff --git a/packages/create-vant-cli-app/generators/vue3/babel.config.js b/packages/create-vant-cli-app/generators/vue3/babel.config.js deleted file mode 100644 index fa5ee221e..000000000 --- a/packages/create-vant-cli-app/generators/vue3/babel.config.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - presets: ['@vant/cli/preset'], -}; diff --git a/packages/create-vant-cli-app/generators/vue3/package.json.tpl b/packages/create-vant-cli-app/generators/vue3/package.json.tpl index 47764cd62..ee3136dc9 100644 --- a/packages/create-vant-cli-app/generators/vue3/package.json.tpl +++ b/packages/create-vant-cli-app/generators/vue3/package.json.tpl @@ -3,20 +3,23 @@ "version": "1.0.0", "description": "", "main": "lib/<%= name %>.js", + "module": "es/index.js", "style": "lib/index.css", + "typings": "lib/index.d.ts", "files": [ "lib", "es" ], "scripts": { "dev": "vant-cli dev", - "test": "vant-cli test", "lint": "vant-cli lint", + "test": "vant-cli test", "build": "vant-cli build", - "prepare": "husky install", - "release": "vant-cli release", - "test:coverage": "open test/coverage/index.html", - "build-site": "vant-cli build-site && gh-pages -d site-dist" + "build:site": "vant-cli build-site", + "release": "vant-cli release --tag next", + "release:site": "pnpm build:site && gh-pages -d site-dist", + "test:watch": "vant-cli test --watch", + "test:coverage": "open test/coverage/index.html" }, "author": "", "license": "MIT", @@ -30,8 +33,9 @@ "vue": "^3.0.0" }, "devDependencies": { - "@vant/cli": "^3.9.0", - "vue": "^3.0.0" + "@vant/cli": "^4.0.0", + "vue": "^3.0.0", + "sass": "^1.49.7" }, "eslintConfig": { "root": true, diff --git a/packages/create-vant-cli-app/generators/vue3/vant.config.js b/packages/create-vant-cli-app/generators/vue3/vant.config.mjs similarity index 97% rename from packages/create-vant-cli-app/generators/vue3/vant.config.js rename to packages/create-vant-cli-app/generators/vue3/vant.config.mjs index 749ef1a35..314aa23e8 100644 --- a/packages/create-vant-cli-app/generators/vue3/vant.config.js +++ b/packages/create-vant-cli-app/generators/vue3/vant.config.mjs @@ -1,4 +1,4 @@ -module.exports = { +export default { name: '<%= name %>', build: { css: {