Hello i have pulumi.ComponentResource called(Appl...
# typescript
r
Hello i have pulumi.ComponentResource called(Application) defined in a git repo A i want to import that ComponentResource into git repo B something like import { Application} from "git repo ";
b
You'll need to reference it in your package manager as well
r
i am currently using git submodule and using import { Application} from "./assets/foo";
was checking if there is a simpler way instead of maintaining the submodule version
b
Are you using typescript?
r
yes
l
You can publish the package to your local package registry (or to GitHub's / GitLab's / ...), and the resolve it in the normal way using npm or yarn. But if both repos are under regular development, you might be better off leaving it as-is for now. Switch to publishing packages later, when you're making fewer changes.
👍 1
You can also use yarn workspaces, typescript paths, and a number of other non-Pulumi-specific solutions.
👍 1