You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`urlTemplate`| URL template for artifact download links in the manifest. Supports `{{version}}`, `{{file}}`, and `{{revision}}` variables. Primarily for apps and CDN-hosted assets—not needed for SDK packages installed from public registries (npm, PyPI, etc.) |
24
24
|`linkPrereleases`| Update for preview releases. Default: `false`|
25
25
|`checksums`| List of checksum configs |
26
26
|`onlyIfPresent`| Only run if matching file exists |
27
27
|`name`| Human-readable name (used when creating new packages) |
28
+
|`sdkName`| SDK identifier matching the SDK's `sdk_info.name` field in Sentry events (e.g., `sentry.javascript.react`). Will create the `sdks/` symlink. (used when creating new packages) |
28
29
|`packageUrl`| Link to package registry page, e.g., npmjs.com (used when creating new packages) |
29
30
|`mainDocsUrl`| Link to main documentation (used when creating new packages) |
30
31
|`apiDocsUrl`| Link to API documentation (used when creating new packages) |
@@ -59,14 +60,17 @@ targets:
59
60
60
61
## Creating New Packages
61
62
62
-
When you introduce a new package that doesn't yet exist in the release registry, Craft will automatically create the required directory structure and initial manifest.
63
+
When you introduce a new package that doesn't yet exist in the release registry, Craft will automatically create the required directory structure and initial manifest on the first publish.
64
+
65
+
Supply `name`, `packageUrl`, `sdkName` and `mainDocsUrl` so the release registry entry is added to the registry for the first time (existing packages just need `onlyIfPresent` since the manifest already exists):
@@ -90,4 +94,4 @@ The value is always overwritten on every publish, so it stays in sync with the a
90
94
91
95
### Other metadata
92
96
93
-
When specified, the metadata fields (`name`, `packageUrl`, `mainDocsUrl`, `apiDocsUrl`) are applied to every release, allowing you to update package metadata by changing your `.craft.yml` configuration.
97
+
When specified, the metadata fields (`name`, `sdkName`, `packageUrl`, `mainDocsUrl`, `apiDocsUrl`) are applied to every release, allowing you to update package metadata by changing your `.craft.yml` configuration.
/** SDK identifier used in the `sdk_info.name` field of the event (e.g. "sentry.javascript.react"). Used to create an entry in the registry's sdks/ directory. */
71
+
sdkName?: string;
70
72
/** Link to package registry (PyPI, npm, etc.) */
71
73
packageUrl?: string;
72
74
/** Link to main documentation */
@@ -459,6 +461,7 @@ export class RegistryTarget extends BaseTarget {
/** SDK identifier used in the `sdk_info.name` field of the event (e.g. "sentry.javascript.react"). Used to create an entry in the registry's sdks/ directory. */
33
+
sdkName?: string;
32
34
}
33
35
34
36
/**
@@ -108,6 +110,18 @@ export async function getPackageManifest(
108
110
mkdirSync(fullPackageDir,{recursive: true});
109
111
}
110
112
113
+
// Create the sdks/ symlink when an sdkName is provided
0 commit comments