MCPcopy Create free account
hub / github.com/google/wireit / BaseScriptConfig

Interface BaseScriptConfig

src/config.ts:138–213  ·  view source on GitHub ↗

* The name and location of a script, along with its full configuration.

Source from the content-addressed store, hash-verified

136 * The name and location of a script, along with its full configuration.
137 */
138interface BaseScriptConfig extends ScriptReference {
139 state: 'valid';
140
141 /**
142 * Scripts that must run before this one.
143 *
144 * Note that the {@link Analyzer} returns dependencies sorted by package
145 * directory + script name, but the {@link Executor} then randomizes the order
146 * during execution.
147 */
148 dependencies: Array<Dependency>;
149
150 /**
151 * The services that need to be started before we can run.
152 */
153 services: Array<ServiceScriptConfig>;
154
155 /**
156 * Input file globs for this script.
157 *
158 * If undefined, the input files are unknown (meaning the script cannot safely
159 * be cached). If defined but empty, there are no input files (meaning the
160 * script can safely be cached).
161 */
162 files: ArrayNode<string> | undefined;
163
164 /**
165 * Output file globs for this script.
166 */
167 output: ArrayNode<string> | undefined;
168
169 /**
170 * When to clean output:
171 *
172 * - true: Before the script executes, and before restoring from cache.
173 * - false: Before restoring from cache.
174 * - "if-file-deleted": If an input file has been deleted, and before restoring from
175 * cache.
176 */
177 clean: boolean | 'if-file-deleted';
178
179 /**
180 * Whether the script should run in service mode.
181 */
182 service: ServiceConfig | undefined;
183
184 /**
185 * The command string in the scripts section. i.e.:
186 *
187 * ```json
188 * "scripts": {
189 * "build": "tsc"
190 * ~~~~~
191 * }
192 * ```
193 */
194 scriptAstNode: NamedAstNode<string> | undefined;
195

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…