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

在node_modules下的package.json中运行脚本 #18

Open
zuobaiquan opened this issue Jan 6, 2022 · 0 comments
Open

在node_modules下的package.json中运行脚本 #18

zuobaiquan opened this issue Jan 6, 2022 · 0 comments

Comments

@zuobaiquan
Copy link
Owner

zuobaiquan commented Jan 6, 2022

track跟踪问题:

npx cross-env NODE_OPTIONS="--trace-warnings" npm run build

npm run build是执行脚本

如果你想一个子模块内运行一个命令,你可以使用explore命令,如解释在这里:

npm explore submodule -- npm run subscript

似乎yarn没有等效的命令,但是有一个cwd选项(尚未充分说明)可以让您选择工作目录:

yarn --cwd node_modules/submodule/ run subscript

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

1 participant