2.0.4 • Published 1 month ago

workspace-linker v2.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

workspace-linker

workspace-linker is a tool to create links between your workspaces.

Links are defined in package.json of each workspace and root package.json. Each package.json can specify its own local links and workspaces from which links will be imported. Imports are specified by its path relative to root package.json.

Links will be linked to node_modules. Optionally paths in jsconfig.json and tsconfig.json can be updated according to resolved links.

Example:

{
  "name": "ws1",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "workspaceLinks": {
    "local": {
      "@/ws1Src": "./src"
    },
  }
}
{
  "name": "ws2",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "workspaceLinks": {
    "local": {
      "@/ws2Src": "./src"
    },
    "imports": [
      "ws/ws1"
    ]
  }
}

This will create directory structure in ws2 workspace like

./package.json
./src
./node_modules/@/ws1Src -> ../../../ws1/src
./node_modules/@/ws2Src -> ../../src
2.0.3

1 month ago

2.0.2

1 month ago

2.0.4

1 month ago

2.0.1

1 month ago

1.0.9

2 months ago

1.0.11

2 months ago

1.0.10

2 months ago

1.0.15

2 months ago

1.0.14

2 months ago

1.0.13

2 months ago

1.0.12

2 months ago

1.0.8

3 months ago

1.0.7

3 months ago

1.0.6

3 months ago

1.0.5

3 months ago

1.0.4

3 months ago

1.0.3

3 months ago

1.0.2

3 months ago

1.0.1

3 months ago

1.0.0

3 months ago