@rohal12/twee-ts 1.15.3 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -12,6 +12,11 @@ type SourceInput = string | InlineSource;
12
12
  interface CompileOptions {
13
13
  /** Files, directories, or inline sources to compile. */
14
14
  sources: SourceInput[];
15
+ /**
16
+ * Glob patterns for files to leave out of `sources`, matched against each file's
17
+ * path relative to the working directory (as `stats.files` lists it). Modules are not affected.
18
+ */
19
+ exclude?: string[];
15
20
  /** Output mode. Default: 'html'. */
16
21
  outputMode?: OutputMode;
17
22
  /** Story format directory ID (e.g. 'sugarcube-2'). */
@@ -195,6 +200,7 @@ interface FileCacheEntry {
195
200
  }
196
201
  interface TweeTsConfig {
197
202
  sources?: string[];
203
+ exclude?: string[];
198
204
  output?: string;
199
205
  outputMode?: OutputMode;
200
206
  formatId?: string;
@@ -254,7 +260,8 @@ interface StoryMap {
254
260
  /**
255
261
  * Map of passage name → passage names it links to.
256
262
  * Parses `[[target]]`, `[[display->target]]`, `[[display|target]]`,
257
- * and SugarCube's `<<goto "target">>` / `<<link "display" "target">>`.
263
+ * and SugarCube's `<<goto "target">>` / `<<link "display" "target">>`,
264
+ * whose arguments are read as SugarCube 2 reads them (see `sugarcube-macros.ts`).
258
265
  */
259
266
  links: Map<string, string[]>;
260
267
  /** Broken links: `{ from, to }` pairs where `to` doesn't exist as a passage. */
package/dist/index.d.ts CHANGED
@@ -12,6 +12,11 @@ type SourceInput = string | InlineSource;
12
12
  interface CompileOptions {
13
13
  /** Files, directories, or inline sources to compile. */
14
14
  sources: SourceInput[];
15
+ /**
16
+ * Glob patterns for files to leave out of `sources`, matched against each file's
17
+ * path relative to the working directory (as `stats.files` lists it). Modules are not affected.
18
+ */
19
+ exclude?: string[];
15
20
  /** Output mode. Default: 'html'. */
16
21
  outputMode?: OutputMode;
17
22
  /** Story format directory ID (e.g. 'sugarcube-2'). */
@@ -195,6 +200,7 @@ interface FileCacheEntry {
195
200
  }
196
201
  interface TweeTsConfig {
197
202
  sources?: string[];
203
+ exclude?: string[];
198
204
  output?: string;
199
205
  outputMode?: OutputMode;
200
206
  formatId?: string;
@@ -254,7 +260,8 @@ interface StoryMap {
254
260
  /**
255
261
  * Map of passage name → passage names it links to.
256
262
  * Parses `[[target]]`, `[[display->target]]`, `[[display|target]]`,
257
- * and SugarCube's `<<goto "target">>` / `<<link "display" "target">>`.
263
+ * and SugarCube's `<<goto "target">>` / `<<link "display" "target">>`,
264
+ * whose arguments are read as SugarCube 2 reads them (see `sugarcube-macros.ts`).
258
265
  */
259
266
  links: Map<string, string[]>;
260
267
  /** Broken links: `{ from, to }` pairs where `to` doesn't exist as a passage. */