@@ -171,10 +171,14 @@ other wireit scripts, and can never be run directly.
171171### Cross-package dependencies
172172
173173Dependencies can refer to scripts in other npm packages by using a relative path
174- with the syntax ` <relative-path>: <script-name> ` . All cross-package dependencies
174+ with the syntax ` <relative-path># <script-name> ` . All cross-package dependencies
175175should start with a ` "." ` . Cross-package dependencies work well for npm
176176workspaces, as well as in other kinds of monorepos.
177177
178+ > [ !NOTE] The ` : ` character also be used as a delimiter instead of ` # ` (e.g.
179+ > ` "../other-package:build ` ), but ` # ` is preferred since February 2025 because
180+ > it is less ambiguous given the prevalence of ` : ` in npm script names.
181+
178182``` json
179183{
180184 "scripts" : {
@@ -183,7 +187,7 @@ workspaces, as well as in other kinds of monorepos.
183187 "wireit" : {
184188 "build" : {
185189 "command" : " tsc" ,
186- "dependencies" : [" ../other-package: build" ]
190+ "dependencies" : [" ../other-package# build" ]
187191 }
188192 }
189193}
@@ -534,7 +538,7 @@ expected to exit by itself, set `"service": true`.
534538 "dependencies": [
535539 "build:server",
536540 {
537- "script": "../assets: build",
541+ "script": "../assets# build",
538542 "cascade": false
539543 }
540544 ]
@@ -691,7 +695,7 @@ There are two main reasons you might want to set `cascade` to `false`:
691695 "dependencies": [
692696 "build:server",
693697 {
694- "script": "../assets: build",
698+ "script": "../assets# build",
695699 "cascade": false
696700 }
697701 ],
@@ -853,7 +857,7 @@ The following properties can be set inside `wireit.<script>` objects in
853857| ------------------------- | ---------------------------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
854858| `command` | `string` | `undefined` | The shell command to run. |
855859| `dependencies` | `string[] \| object[]` | `[]` | [Scripts that must run before this one](#dependencies). |
856- | `dependencies[i].script` | `string` | `undefined` | [The name of the script, when the dependency is an object. ](#dependencies). |
860+ | `dependencies[i].script` | `string` | `undefined` | [The name of the script, when the dependency is an object](#dependencies). |
857861| `dependencies[i].cascade` | `boolean` | `true` | [Whether this dependency always causes this script to re-execute](#execution-cascade). |
858862| `files` | `string[]` | `undefined` | Input file [glob patterns](#glob-patterns), used to determine the [fingerprint](#fingerprint). |
859863| `output` | `string[]` | `undefined` | Output file [glob patterns](#glob-patterns), used for [caching](#caching) and [cleaning](#cleaning-output). |
0 commit comments