@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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slip-stream-kit/config",
3
3
  "type": "module",
4
- "version": "0.38.0",
4
+ "version": "0.39.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ArthurSaenz/infra-kit.git",