@slip-stream-kit/config 0.38.0 → 0.39.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.
|
@@ -136,4 +136,13 @@ export interface DeployToolkit {
|
|
|
136
136
|
deployFrontendUi: (options: DeployFrontendUiOptions) => Promise<void>;
|
|
137
137
|
/** Synchronous `aws lambda invoke`s, failing on the handler's error, not only the CLI's exit code. */
|
|
138
138
|
invokeLambdas: (options: DeployInvokeLambdasOptions) => Promise<void>;
|
|
139
|
+
/**
|
|
140
|
+
* Imports a package as code inside `appDir` would, e.g. `<root>/out/apps/client/ui` after `pruneAndBuild`.
|
|
141
|
+
* A plain `import()` resolves from the deploy script, which is loaded from the root checkout that is never
|
|
142
|
+
* installed. A hook gets the same function bound to its own app as `context.importFromApp`.
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* const { publishSiteIndexManifest } = await importFromApp<typeof SiteIndexDeploy>(appDir, '@wl/site-index/deploy')
|
|
146
|
+
*/
|
|
147
|
+
importFromApp: <T>(appDir: string, specifier: string) => Promise<T>;
|
|
139
148
|
}
|