conductor-install 0.0.2 → 0.0.3

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.
@@ -175,9 +175,11 @@ async function getTemplateRoot(repo, branch) {
175
175
  return getCacheDir(repo, branch);
176
176
  }
177
177
  async function loadTemplate(templatePath, repo, branch) {
178
- const bundledPath = (0, import_path.resolve)(getBundledTemplateRoot(), templatePath);
179
- if (await import_fs_extra.default.pathExists(bundledPath)) {
180
- return (0, import_promises.readFile)(bundledPath, "utf-8");
178
+ if (!repo && !branch) {
179
+ const bundledPath = (0, import_path.resolve)(getBundledTemplateRoot(), templatePath);
180
+ if (await import_fs_extra.default.pathExists(bundledPath)) {
181
+ return (0, import_promises.readFile)(bundledPath, "utf-8");
182
+ }
181
183
  }
182
184
  if (!repo && !branch) {
183
185
  console.log(
@@ -148,9 +148,11 @@ async function getTemplateRoot(repo, branch) {
148
148
  return getCacheDir(repo, branch);
149
149
  }
150
150
  async function loadTemplate(templatePath, repo, branch) {
151
- const bundledPath = resolve(getBundledTemplateRoot(), templatePath);
152
- if (await fs.pathExists(bundledPath)) {
153
- return readFile(bundledPath, "utf-8");
151
+ if (!repo && !branch) {
152
+ const bundledPath = resolve(getBundledTemplateRoot(), templatePath);
153
+ if (await fs.pathExists(bundledPath)) {
154
+ return readFile(bundledPath, "utf-8");
155
+ }
154
156
  }
155
157
  if (!repo && !branch) {
156
158
  console.log(
package/dist/index.cjs CHANGED
@@ -175,9 +175,11 @@ async function getTemplateRoot(repo, branch) {
175
175
  return getCacheDir(repo, branch);
176
176
  }
177
177
  async function loadTemplate(templatePath, repo, branch) {
178
- const bundledPath = (0, import_path.resolve)(getBundledTemplateRoot(), templatePath);
179
- if (await import_fs_extra.default.pathExists(bundledPath)) {
180
- return (0, import_promises.readFile)(bundledPath, "utf-8");
178
+ if (!repo && !branch) {
179
+ const bundledPath = (0, import_path.resolve)(getBundledTemplateRoot(), templatePath);
180
+ if (await import_fs_extra.default.pathExists(bundledPath)) {
181
+ return (0, import_promises.readFile)(bundledPath, "utf-8");
182
+ }
181
183
  }
182
184
  if (!repo && !branch) {
183
185
  console.log(
package/dist/index.js CHANGED
@@ -148,9 +148,11 @@ async function getTemplateRoot(repo, branch) {
148
148
  return getCacheDir(repo, branch);
149
149
  }
150
150
  async function loadTemplate(templatePath, repo, branch) {
151
- const bundledPath = resolve(getBundledTemplateRoot(), templatePath);
152
- if (await fs.pathExists(bundledPath)) {
153
- return readFile(bundledPath, "utf-8");
151
+ if (!repo && !branch) {
152
+ const bundledPath = resolve(getBundledTemplateRoot(), templatePath);
153
+ if (await fs.pathExists(bundledPath)) {
154
+ return readFile(bundledPath, "utf-8");
155
+ }
154
156
  }
155
157
  if (!repo && !branch) {
156
158
  console.log(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-install",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Conductor spec-driven development CLI - Install Conductor in any project with npx conductor-install",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {