mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
fix: failed to register cli bin
This commit is contained in:
2
packages/vant-cli/bin.js
Executable file
2
packages/vant-cli/bin.js
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
require('./lib/cli');
|
@@ -8,6 +8,7 @@
|
||||
- 站点构建产物的目录由 `site` 调整为 `site-dist`
|
||||
- 不再支持 webpack.config.js 配置文件
|
||||
- 不再支持 less import 语法中使用波浪号
|
||||
- 不再在 demo 文件中自动注册组件
|
||||
- 移除 build 命令的 --watch 参数
|
||||
- 移除内置的 babel-plugin-import 插件
|
||||
- 由于不再使用 html-webpack-plugin, 因此移除了 site.htmlPluginOptions 配置项
|
||||
|
@@ -4,7 +4,7 @@
|
||||
"main": "lib/index.js",
|
||||
"typings": "lib/index.d.ts",
|
||||
"bin": {
|
||||
"vant-cli": "./lib/bin.js"
|
||||
"vant-cli": "./bin.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
@@ -22,6 +22,7 @@
|
||||
"lib",
|
||||
"site",
|
||||
"template",
|
||||
"bin.js",
|
||||
"preset.js"
|
||||
],
|
||||
"keywords": [
|
||||
|
@@ -1,4 +1,3 @@
|
||||
#!/usr/bin/env node
|
||||
import { Command } from 'commander';
|
||||
|
||||
import {
|
Reference in New Issue
Block a user