Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
Added cache/extension-types to typeRoots for easy sharing extension t…
Browse files Browse the repository at this point in the history
…ypes
  • Loading branch information
tjcouch-sil committed Dec 1, 2023
1 parent cf799ec commit 9586325
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,29 @@
"node_modules/@types",
// Include papi-dts type declarations (for papi.d.ts)
"../paranext-core/lib",
// Include other extensions' type declarations
// Include core extensions' type declarations
"../paranext-core/extensions/src",
// Include this extension's type declarations. It's in this location so there aren't any
// unexpected files there for typeRoots to include
"src/types"
"src/types",

/**
* Add extension repos' `src/types` folders here if you want to use local development type
* declarations. These will override the cached extension type declarations included in
* final entry in this array. Note that running extensions' local development type
* declaration files get copied into the cached extension type declarations while running
* Platform.Bible in development, but adding extension repos' `src/types` folders here means
* the local development type declarations will always be up-to-date instead of only when
* Platform.Bible is running in development.
*
* @example Adding `"../paranext-extension-word-list/src/types",` includes the local version
* of the Word List extension's type declarations. Then, your extension can use types from the
* local build of the Word List extension.
*/

// Include cached extension type declarations in case this extension needs to depend on them
// These are last, so any modules in the above typeRoots take precedence.
"../paranext-core/dev-appdata/cache/extension-types"
],
// Papi exposes decorators for use in classes
"experimentalDecorators": true,
Expand Down

0 comments on commit 9586325

Please sign in to comment.