We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 (!json) { json = { "name": 'template', "version": '1.0.0', "dependencies": { "tmodjs": "1.0.0" }, "tmodjs-config": {} }; } var targetVersion = json.dependencies.tmodjs.replace(/^~/, '');
这里如果项目本身只有devDependencies而没有dependencies时会出现tmodjs of undefined的错误。建议添加一下容错的逻辑:
if (!json.dependencies) { json.dependencies = json.devDependencies; }
The text was updated successfully, but these errors were encountered:
能否把你的修改 Pull requests ?
Sorry, something went wrong.
@aui 好,稍后我来搞一下
No branches or pull requests
这里如果项目本身只有devDependencies而没有dependencies时会出现tmodjs of undefined的错误。建议添加一下容错的逻辑:
The text was updated successfully, but these errors were encountered: