Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown option: 'vue3-quick-start:commitizen_path' #3386

Closed
wei-zone opened this issue Jul 9, 2023 · 3 comments
Closed

Unknown option: 'vue3-quick-start:commitizen_path' #3386

wei-zone opened this issue Jul 9, 2023 · 3 comments

Comments

@wei-zone
Copy link

wei-zone commented Jul 9, 2023

复现地址 https://github.com/wforguo/vue3-quick-start
报错actions https://github.com/wforguo/vue3-quick-start/actions/runs/5499619042/jobs/10021945783

不知道有没有遇到这个问题的

vue3 项目,

在github actions中执行"build": "run-p type-check build-only"

报错如下:

Run pnpm run build

> [email protected] build /home/runner/work/vue3-quick-start/vue3-quick-start
> run-p type-check build-only

 ERROR   ERROR  Unknown option: 'vue3-quick-start:commitizen_path'
For help, run: pnpm help run
 ERROR   ERROR  Unknown option: 'vue3-quick-start:commitizen_path'
For help, run: pnpm help run
ERROR: "type-check" exited with 1.
 ELIFECYCLE  Command failed with exit code 1.
Error: Process completed with exit code 1.

@so1ve
Copy link
Member

so1ve commented Jul 9, 2023

Does it work whe you run pnpm run type-check?

@wei-zone
Copy link
Author

单独执行
pnpm run type-checkpnpm run build都是OK的,
但是执行 pnpm run build,两个一起就不行了,也是只存在于 github actions当中,我再排查看看,是否别的包影响了

我在另外一个项目 当中是没有这种情况的,当然那个项目比较早的

vue3-app

使用 "vue-tsc": "^0.40.7" + "typescript": "^4.7.4"

执行 "build": "run-p type-check build-only"正常,

package.json如下:

{
    "scripts": {
        "dev": "vite",
        "build": "run-p type-check build-only",
        "build-only": "vite build",
        "type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
        "lint": "eslint  --ext .vue,.js,.jsx,.ts,.tsx --fix src --ignore-path .eslintignore"
    },
    "dependencies": {
        "element-plus": "^2.2.0",
        "vue": "^3.2.45",
        "vue-router": "^4.1.5",
    },
    "devDependencies": {
        "@rushstack/eslint-patch": "^1.1.4",
        "@types/jsdom": "^21.1.0",
        "@types/mockjs": "^1.0.7",
        "@types/node": "^18.15.0",
        "@vitejs/plugin-vue": "^4.0.0",
        "@vitejs/plugin-vue-jsx": "^3.0.0",
        "@vue/eslint-config-prettier": "^7.0.0",
        "@vue/eslint-config-typescript": "^11.0.0",
        "@vue/test-utils": "^2.0.2",
        "@vue/tsconfig": "^0.1.3",
        "cypress": "^10.7.0",
        "eslint": "^8.22.0",
        "eslint-plugin-cypress": "^2.12.1",
        "eslint-plugin-vue": "^9.3.0",
        "jsdom": "^20.0.0",
        "npm-run-all": "^4.1.5",
        "prettier": "^2.7.1",
        "sass": "^1.51.0",
        "start-server-and-test": "^1.14.0",
        "typescript": "^4.7.4",
        "vite": "^4.0.3",
        "vite-plugin-externals": "^0.5.1",
        "vite-plugin-html-config": "^1.0.11",
        "vite-plugin-mock": "^2.9.6",
        "vite-plugin-vue-inspector": "^3.3.2",
        "vitest": "^0.23.0",
        "vue-tsc": "^0.40.7"
    }
}

@wei-zone
Copy link
Author

应该是 npm run all的问题,有对应issues
Unknown option: 'xxxx:commitizen_path' with pnpm

我去看看

@so1ve so1ve closed this as not planned Won't fix, can't repro, duplicate, stale Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants