Skip to content

Updated extension-types location #7097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

Make sure to configure your TypeScript compiler so it includes the Global Types from the Backoffice. This enables you to utilize the declared Extension Types. If your project is using other Packages that provides their Extension Types then please list these as well.

In your `tsconfig.json` file. Add the array `types` inside `compilerOptions`, with the entry of `@umbraco-cms/backoffice/extension-types`:
In your `tsconfig.json` file. Add the array `types` inside `compilerOptions`, with the entry of `@umbraco-cms/backoffice/dist-cms/packages/extension-types`:

```json
{
"compilerOptions": {
...
"types": [
"@umbraco-cms/backoffice/extension-types"
"@umbraco-cms/backoffice/dist-cms/packages/extension-types"
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ npm install --legacy-peer-deps -D @umbraco-cms/backoffice
This disables IntelliSense for external references but keeps the install lean.

7. Open the `tsconfig.json` file.
8. Add the array `types` inside `compilerOptions`, with the entry of `@umbraco-cms/backoffice/extension-types`:
8. Add the array `types` inside `compilerOptions`, with the entry of `@umbraco-cms/backoffice/dist-cms/packages/extension-types`:

```json
{
"compilerOptions": {
...
"types": [
"@umbraco-cms/backoffice/extension-types"
"@umbraco-cms/backoffice/dist-cms/packages/extension-types"
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ export const manifests: Array<UmbExtensionManifest> = [
{% endcode %}

{% hint style="info" %}
Ensure you have set up your `tsconfig.json` to include the extension-types as global types. Like this:
Ensure you have set up your `tsconfig.json` to include the `extension-types` as global types. Like this:

```json
{
"compilerOptions": {
...
"types": [
"@umbraco-cms/backoffice/extension-types"
"@umbraco-cms/backoffice/dist-cms/packages/extension-types"
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions 16/umbraco-cms/customizing/development-flow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ This will add a package to your devDependencies containing the TypeScript defini

Make sure to configure your TypeScript compiler so it includes the Global Types from the Backoffice. This enables you to utilize the declared Extension Types. If your project is using other Packages that provide their Extension Types, list these as well.

In your `tsconfig.json` file, add the array `types` inside `compilerOptions`, with the entry of `@umbraco-cms/backoffice/extension-types`:
In your `tsconfig.json` file, add the array `types` inside `compilerOptions`, with the entry of `@umbraco-cms/backoffice/dist-cms/packages/extension-types`:

```json
{
"compilerOptions": {
...
"types": [
"@umbraco-cms/backoffice/extension-types"
"@umbraco-cms/backoffice/dist-cms/packages/extension-types"
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ npm install --legacy-peer-deps -D @umbraco-cms/backoffice@x.x.x
This disables IntelliSense for external references but keeps the install lean.

7. Open the `tsconfig.json` file.
8. Add the array `types` inside `compilerOptions`, with the entry of `@umbraco-cms/backoffice/extension-types`:
8. Add the array `types` inside `compilerOptions`, with the entry of `@umbraco-cms/backoffice/dist-cms/packages/extension-types`:

```json
{
"compilerOptions": {
...
"types": [
"@umbraco-cms/backoffice/extension-types"
"@umbraco-cms/backoffice/dist-cms/packages/extension-types"
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ export const manifests: Array<UmbExtensionManifest> = [
{% endcode %}

{% hint style="info" %}
Ensure you have set up your `tsconfig.json` to include the extension-types as global types. Like this:
Ensure you have set up your `tsconfig.json` to include the `extension-types` as global types. Like this:

```json
{
"compilerOptions": {
...
"types": [
"@umbraco-cms/backoffice/extension-types"
"@umbraco-cms/backoffice/dist-cms/packages/extension-types"
]
}
}
Expand Down