小编nic*_*_42的帖子

package.json 中的“exports”属性在工作区中是否有效?

我有一个 npm 包设置如下

project
|
|-- package.json
|
|-- workspace_a
|   |-- package.json
|   |-- index.js
|
|-- workspace_b
|   |-- package.json
|   |
|   |-- src
|   |   |-- index.js
|   |   |
|   |   |-- folder_1
|   |   |   |-- index.js
|   |   |
|   |   |-- folder_2
|   |       |-- index.js
|   |
|   |-- dist
|       |-- index.js
|       |
|       |-- folder_1
|       |   |-- index.js
|       |
|       |-- folder_2
|           |-- index.js
Run Code Online (Sandbox Code Playgroud)

主项目文件已针对工作区进行了正确配置,工作区的project.json …

javascript node.js npm node-modules npm-workspaces

5
推荐指数
0
解决办法
231
查看次数

标签 统计

javascript ×1

node-modules ×1

node.js ×1

npm ×1

npm-workspaces ×1