标签:asc robot lis font play normal imp port mon
{
"private": true,
"workspaces": [
"workspace-a",
"workspace-b"
]
}
Note that the private: true
is required! Workspaces are not meant to be published, so we’ve added this safety measure to make sure that nothing can accidentaly expose them.
After this file has been created, create two new subfolders named workspace-a
and workspace-b
. In each of them, create another package.json
file with the following content:
{
"name": "workspace-a",
"version": "1.0.0",
"dependencies": {
"cross-env": "5.0.5"
}
}
{
"name": "workspace-b",
"version": "1.0.0",
"dependencies": {
"cross-env": "5.0.5",
"workspace-a": "1.0.0"
}
}
yarn install
somewhere, ideally inside the workspace root. If everything works well, you should now have a similar file hierarchy:标签:asc robot lis font play normal imp port mon
原文地址:http://www.cnblogs.com/rongfengliang/p/7815927.html