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

if my package.json type: 'module' #199

Open
davidchen27 opened this issue Jul 17, 2022 · 13 comments · May be fixed by #209
Open

if my package.json type: 'module' #199

davidchen27 opened this issue Jul 17, 2022 · 13 comments · May be fixed by #209

Comments

@davidchen27
Copy link

when my package.json type is 'module'
i run 'git cz', it will report:
image

if i change the config file's name: .cz-config.cjs, and modify package.json
image

it will report:
image

does it not support .cjs config file?

@SelinaYu
Copy link

SelinaYu commented Aug 2, 2022

same question

@hezhongfeng
Copy link

same question

3 similar comments
@ammyliumei
Copy link

same question

@general-guan
Copy link

same question

@ND-LJQ
Copy link

ND-LJQ commented Dec 2, 2022

same question

@gyhyfj
Copy link

gyhyfj commented Dec 3, 2022

same question, wish it could recognize .cz-config.cjs, like eslint and stylelint

@tansan-dev tansan-dev linked a pull request Dec 6, 2022 that will close this issue
@patrickcate
Copy link

Running into the same issue.

@Dr-Frame
Copy link

same question

@patrickcate
Copy link

Just a followup. I have found a workaround using the package.json config option.

  1. Rename .cz-config.js to .cz-config.cjs
  2. In package.json add the following:
"config": {
    "cz-customizable": {
        "config": ".cz-config.cjs"
    }
}

@daiwanxing
Copy link

Just a followup. I have found a workaround using the package.json config option.

  1. Rename .cz-config.js to .cz-config.cjs
  2. In package.json add the following:
"config": {
    "cz-customizable": {
        "config": ".cz-config.cjs"
    }
}

It's work for me. Thanks

@Yark-yao
Copy link

it's works for me , thanks a lot.

@Yark-yao
Copy link

Just a followup. I have found a workaround using the package.json config option.

  1. Rename .cz-config.js to .cz-config.cjs
  2. In package.json add the following:
"config": {
    "cz-customizable": {
        "config": ".cz-config.cjs"
    }
}

it's works for me , thanks a lot.

@rainTai rainTai mentioned this issue Jul 27, 2023
@linpengteng
Copy link

To solve this same problem, I created cz-message-helper npm package, hope it helps.

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

Successfully merging a pull request may close this issue.