fix(cli): fix crate-type hint

This commit is contained in:
Hana 2021-12-23 03:10:44 +08:00 committed by GitHub
parent bfa454f94d
commit 894334e8f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -199,7 +199,7 @@ export class BuildCommand extends Command {
if (!tomlContent.lib?.['crate-type']?.includes?.('cdylib')) { if (!tomlContent.lib?.['crate-type']?.includes?.('cdylib')) {
throw new TypeError( throw new TypeError(
`Missing ${chalk.green('create-type = ["cdylib"]')} in ${chalk.green( `Missing ${chalk.green('crate-type = ["cdylib"]')} in ${chalk.green(
'[lib]', '[lib]',
)}`, )}`,
) )