mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix: failed to register cli bin
This commit is contained in:
parent
fd38bbd17b
commit
89a801b3d7
2
.gitignore
vendored
2
.gitignore
vendored
@ -16,5 +16,5 @@ es
|
|||||||
lib
|
lib
|
||||||
dist
|
dist
|
||||||
vetur
|
vetur
|
||||||
**/site
|
**/site-dist
|
||||||
changelog.generated.md
|
changelog.generated.md
|
||||||
|
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`
|
- 站点构建产物的目录由 `site` 调整为 `site-dist`
|
||||||
- 不再支持 webpack.config.js 配置文件
|
- 不再支持 webpack.config.js 配置文件
|
||||||
- 不再支持 less import 语法中使用波浪号
|
- 不再支持 less import 语法中使用波浪号
|
||||||
|
- 不再在 demo 文件中自动注册组件
|
||||||
- 移除 build 命令的 --watch 参数
|
- 移除 build 命令的 --watch 参数
|
||||||
- 移除内置的 babel-plugin-import 插件
|
- 移除内置的 babel-plugin-import 插件
|
||||||
- 由于不再使用 html-webpack-plugin, 因此移除了 site.htmlPluginOptions 配置项
|
- 由于不再使用 html-webpack-plugin, 因此移除了 site.htmlPluginOptions 配置项
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"typings": "lib/index.d.ts",
|
"typings": "lib/index.d.ts",
|
||||||
"bin": {
|
"bin": {
|
||||||
"vant-cli": "./lib/bin.js"
|
"vant-cli": "./bin.js"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
@ -22,6 +22,7 @@
|
|||||||
"lib",
|
"lib",
|
||||||
"site",
|
"site",
|
||||||
"template",
|
"template",
|
||||||
|
"bin.js",
|
||||||
"preset.js"
|
"preset.js"
|
||||||
],
|
],
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import { Command } from 'commander';
|
import { Command } from 'commander';
|
||||||
|
|
||||||
import {
|
import {
|
Loading…
x
Reference in New Issue
Block a user